
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
Super tiny jquery plugin for modal windows. JS size 1163 bytes minified, 643 bytes gziped.
Simple default way:
<a href="#" id="some-link">Open popup</a>
<div id="popup" style="display:none">
Window contents
</div>
$(function() {
$('#some-link').click(function() {
$('#popup').m1k();
return false;
});
});
Or you can bind to any links with data attribute:
$('[data=target').click(function() {
$($(this).data('target')).m1k();
return false;
});
so you can do this:
<a href="#" data-target="#popup">Open popup</a>
Or you can load any content:
$('<h1>Hello</h1>').m1k();
It's usefull for ajax:
$.get('/some/url', function(result) {
$(result).m1k();
})
List of options with default values:
{
id : 'm1k', // It's a namespace. Append to every css class name
single: false, // Close other modal windows when open new window
esc: true, // Close window on esc
click: true, // Close window on click in back
close: 'x' // Close button contents. Can be null|undefined
}
There 3 ways to pass options:
$.m1k.defaultm1k({options})<div class='popup' data-esc='false'>$.m1k.close() — close current window
FAQs
Super tiny jquery plugin for modal windows. Less then 1k bytes.
We found that jquery-m1k 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.