
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
@orderandchaos/log-slider
Advanced tools
Wrapper class for initialising range slider with optional log scaling.
https://sarcoma.github.io/log-slider/
Include these in your HTML somewhere (update the version number if a new version is available).
script
<script src="https://cdn.jsdelivr.net/npm/@orderandchaos/log-slider@3.0.4/lib/log-slider.js"></script>
stylesheet
<link href="https://cdn.jsdelivr.net/npm/@orderandchaos/log-slider@3.0.4/lib/log-slider.css" rel="stylesheet"/>
js
const handleDemoLogUpdate = (log, value) => {
console.log(log, value);
};
const demoLog = new LogSlider({
id: 'log-scale',
min: 100,
max: 10000,
type: sliderTypes.LOG,
showTab: true,
callback: handleDemoLogUpdate,
});
html
<input type="range" id="log-scale"/>
js
const handleDemoLinearUpdate = (value) => {
console.log(value);
};
const demoLinear = new LogSlider({
id: 'linear-scale',
min: 1,
max: 1000,
showTab: true,
callback: handleDemoLinearUpdate,
});
html
<input type="range" id="linear-scale"/>
js
const handleDemoLinearUpdate = (value) => {
console.log(value);
};
const demoLinearStepped = new LogSlider({
id: 'linear-scale',
min: 1,
max: 100,
type: sliderTypes.LINEAR,
steps: [1, 10, 25, 50, 100],
showTab: true,
callback: handleDemoLinearUpdate,
});
html
<input type="range" id="linear-scale"/>
html
<div class="form-field">
<label for="linear-scale">Linear Scale</label>
<input type="range"
id="linear-scale"
class="slider"
step="1"
min="1"
max="100"
data-steps="1,5,15,50,75,100"
data-decimal-places="2"
data-show-tab="true"
/>
</div>
js
const demoLinear = new LogSlider({
id: 'linear-scale',
callback: (value) => {console.log(value)},
});
html
<div class="form-field">
<label for="log-scale">Log Scale</label>
<input type="range"
id="log-scale"
class="slider"
step="1"
min="1"
max="10000"
data-type="log"
data-show-tab="true"
/>
</div>
js
const demoLog = new LogSlider({
id: 'log-scale',
callback: (log) => {console.log(log)},
});
FAQs
Wrapper class for initialising range slider with optional log scaling.
We found that @orderandchaos/log-slider 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
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.