
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.
A simple jQuery route manager for fake SPA scripts, to be implemented in a fake SPA scenarios.
When you make a single script in webpack but you need to execute the scripts on exact pages, how do you do?
Download the production version or the development version.
In your web page:
<script src="jquery.js"></script>
<script src="dist/jetroute.min.js"></script>
<script>
$.jetRoute.settings = {
routes: {"[Custom Route Name]", "[Custom Route]"},
routeType: ,
cookieName:
};
$(document).ready(function(){
$.jetRoute("[Custom Route Name]", function (){
});
});
</script>
Default Configuration
$.jetRoute.settings = {
routes: {"[Custom Route Name]", "[Custom Route]"},
routeType: "window"
};
Cookie Based
$.jetRoute.settings = {
routes: {"[Custom Route Name]", "[Custom Route]"},
routeType: "cookie",
cookieName: "[Cookie Name]"
};
Function Based
$.jetRoute.settings = {
routes: {"[Custom Route Name]", "[Custom Route]"},
routeType: function(){
return "[URL Route as Paths]"
}
};
You can call the plugin everywhere. When you need to know if the route it's the one you are on pass the callback as "return true;". When you are using it at a $(document).ready(function(){}); you can pass the callback that will be executed if it's the route you are on.
$.jetRoute("[Custom Route Name]", function (){ [Callback] });
Apache 2.0 © Heitor Ramon Ribeiro
FAQs
jetRoute - Simple Route Manager
We found that jetroute 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.