Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
backbone-tab
Advanced tools
Tab class extends Backbone.js's View object that forms a tab navigation UI.
Readme
Tab class extends Backbone.js's View object that forms a tab navigation UI.
Required elements are tab navigation link list, whole contents wrapper (ex: <div class="contents"/>) and each contents with wrapper (ex: <div class="section"/>). Navigation link element must link to each contents ID.
<div id="tabsection">
<div class="nav">
<ul>
<li class="tab1"><a href="#section1" class="tabstyle">Section 1</a></li>
<li class="tab2"><a href="#section2" class="tabstyle">Section 2</a></li>
<li class="tab3"><a href="#section3" class="tabstyle">Section 3</a></li>
</ul>
<!--/.nav--></div>
<div class="contents">
<div class="section" id="section1">
<!-- some contents -->
<!--/#section1--></div>
<div class="section" id="section2">
<!-- some contents -->
<!--/#section2--></div>
<div class="section" id="section3">
<!-- some contents -->
<!--/#section3--></div>
<!--/.contents--></div>
<!--/.tabsection--></div>
Create instance from $.Tab constructor.
var tab = new $.Tab({
el: '#tabsection .nav a',
effect: false
});
And you can override "show" method of instance.
option name | default value | note |
---|---|---|
onClassName | "on" | Class name that will be added to the activated tab. |
defaultIndex | 0 | Number represents index of content to show when the page is loaded. |
effect | true | Boolean represents contents switching has a fade effect or not. |
.tabsection {
margin: 0 auto;
padding: 40px 0;
width: 600px;
}
.nav {
position: relative;
z-index: 1;
}
.nav ul {
margin: 0;
}
.nav ul:after {
content: "";
display: block;
clear: both;
}
.nav li {
float: left;
width: 140px;
margin-bottom: -1px;
list-style-type: none;
}
.nav a {
display: block;
border-top: 1px solid #ccc;
border-right: 1px solid #ccc;
border-left: 1px solid #ccc;
background-color: #ccc;
margin-right: 10px;
padding: .5em 1em;
color: #333;
text-decoration: none;
}
.nav a.on {
background-color: #fff;
}
.contents {
position: relative;
z-index: 0;
border: 1px solid #ccc;
}
.section {
padding: 50px 100px;
line-height: 1.5;
}
FAQs
Tab class extends Backbone.js's View object that forms a tab navigation UI.
We found that backbone-tab demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.