Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
chartist-html
Advanced tools
html store and no-JavaScript input syntax for Chartist.js charts. Includes JavaScript code that brings static html snippets back to life once they are rendered.
Proposal for a JS-less input syntax for Chartist.js charts, written in pure HTML. ChartistHtml
brings static html snippets back to life on command, including tooltips, custom high-level options and number formatting using numeral
.
Simply install using bower:
bower install --save chartist-html
Create your first chart and include it your html:
<div class="cts" data-type="bar" data-options="stacked|horizontal">
<ul>
<li class="cts__labels">May|June|July|August|September</li>
<li class="cts__series" data-name="Federal">1|2|3|4|5</li>
<li class="cts__series" data-name="State">1|2|3|4|5</li>
<li class="cts__series" data-name="Local">1|2|3|4|5</li>
</ul>
</div>
Add the script once document is loaded:
ChartistHtml.render();
The unordered list tag is now hidden (in case you didn't readily style it so), and has the fully rendered Chartist.js chart as its sibling:
<div class="cts" data-type="bar" data-options="stacked|horizontal">
<ul>...</ul>
<div class="ct-chart">
<svg><!-- --></svg>
</div>
</div>
This library gives you the option to store all chart data in your html without having to add any JavaScript dependencies. This will come in handy if:
Features:
FAQs
html store and no-JavaScript input syntax for Chartist.js charts. Includes JavaScript code that brings static html snippets back to life once they are rendered.
We found that chartist-html 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.