Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
jquery-slideoutpanel
Advanced tools
jQuery SlideOutPanel is a jQuery Plugin to add a sliding out panel.
#jQuery SlideOutPanel
Simple jQuery Plugin to add a sliding out panel.
The html must be set up with the proper id and internal elements.
Allowed tags: <header>
<section>
<footer>
Optional tags: <header>
<footer>
Required tag: <section>
<div id="slide-out-panel" class="slide-out-panel">
<header>Panel Title</header>
<section>Panel content section</section>
<footer>Panel footer</footer>
</div>
Name | Type | Default | Options | Description |
---|---|---|---|---|
bodyPush | boolean | false | true false | Enables pushing the body when the tab opens (works with slideFrom right and left |
closeBtn | html | ✕ ✕ | Add a custom close button instead of the default | |
closeBtnSize | String | 12px | Adjust the close button size | |
enableEscapeKey | Boolean | false | true false | Enables the esc key to close all panels |
offsetTop | String | 0 | Offset the top of the panel | |
screenClose | Boolean | true | true false | Enables closing of panels by clicking on the background screen. |
screenOpacity | String | 0.5 | Set the background screen's opacity | |
screenZindex | String | 9998 | Set the background screen's z-index | |
showScreen | Boolean | true | true false | Enable/Disable showing the background screen |
slideFrom | String | right | top right bottom left | Set to choose where the panel should slide out from |
transition | String | ease | Set the transition-timing-function. Accepts the standard values used with CSS. | |
transitionDuration | String | 0.35s | Set the duration of the transitions. Adding "s" is optional. | |
width | String | 350px | Set the panels width |
$('#slide-out-panel').SlideOutPanel({
bodyPush: false,
closeBtn: '<i class="fas fa-times"></i>',
closeBtnSize: '',
enableEscapeKey: true,
offsetTop: '50px',
screenClose: false,
screenOpacity: '1',
screenZindex: '9998',
showScreen: false,
slideFrom: 'right',
transition: 'ease',
transitionDuration: '0.35s',
width: '350px',
});
Name | Description |
---|---|
rendered | Fired after the panel is finished building |
beforeOpen | Fired before panel opens |
afterOpen | Fired after panel has opened |
beforeClosed | Fired before panel is closed |
afterClosed | Fired after the panel is closed |
$('#slide-out-panel').SlideOutPanel({
rendered() {
// Some code...
},
beforeOpen() {
// Some code...
},
afterOpen() {
// Some code...
},
beforeClosed() {
// Some code...
},
afterClosed() {
// Some code...
},
});
Name | Description |
---|---|
open | Open's the panel |
close | Closes the panel |
toggle | Toggles the panel open/close |
destroy | Removes the panel from the DOM |
const slideOutPanel = $('#slide-out-panel').SlideOutPanel();
slideOutPanel.open();
slideOutPanel.close();
slideOutPanel.toggle();
slideOutPanel.destroy();
Changing the direction the panel slides out from:
$('#slide-out-panel').SlideOutPanel({
slideFrom: 'top',
});
$('#slide-out-panel').SlideOutPanel({
slideFrom: 'right',
});
$('#slide-out-panel').SlideOutPanel({
slideFrom: 'bottom',
});
$('#slide-out-panel').SlideOutPanel({
slideFrom: 'left',
});
Close button customization:
$('#slide-out-panel').SlideOutPanel({
closeBtn: '<i class="fas fa-times"></i>',
closeBtnSize: '18px',
});
Background screen customization:
$('#slide-out-panel').SlideOutPanel({
screenClose: true,
screenOpacity: '0.5',
screenZindex: '9998',
showScreen: true,
});
jQuery
Copyright (c) 2020 WebDevNerdStuff
Licensed under the MIT license.
FAQs
jQuery SlideOutPanel is a jQuery Plugin to add a sliding out panel.
We found that jquery-slideoutpanel 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.