
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@aligilan/loading
Advanced tools
Very simple and light-weight loading with vanilla-js
npm install @aligilan/loading --save
Add @aligilan/loading/style.css
in header.
Or
In your sass file add @import "~@aligilan/loading/style.css";
let loading = require('@alilan/loading');
let normal_loading = new loading();
normal_loading.toggle(target)
Import:
path: resources/app.js
window.Loading = require('@aligilan/loading');
In your page script tag:let normal_loading = new Loading;
Example:
Use in header tag, when DOM is ready
document.addEventListener("DOMContentLoaded", function(){ normal_loading.toggle('#my-element') });
Or
Use when window loaded:
window.onload = function(){ normal_loading.toggle('#my-element') }
target
Valid target element types are: query-select-string, element-object, element-objects
Now when ever call normal_loading.toggle(target)
, for first time, that shows loading-spinner (spinner with overlay are inside the target and isn't clickable)
and at the next call loading-spinner will disappear.
Or normal_loading.show(target)
then normal_loading.hide(target)
.
FAQs
Very light-weight loading package with vanillajs
The npm package @aligilan/loading receives a total of 1 weekly downloads. As such, @aligilan/loading popularity was classified as not popular.
We found that @aligilan/loading 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.