Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@eotl/theme-bootstrap

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eotl/theme-bootstrap - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

dist/images/network.svg

45

dist/js/eotl.js

@@ -169,1 +169,46 @@ /*!

})
/* showLeafs() - based on code taken from source https://micro.blog/about */
const colors = [ "#008000", "#00b000", "#76a147", "#9af092", "#cacd4c", "#6ec100", "#258341", "#5a6429", "#be9132", "#b6975f" ];
function hexToRGBA(hex, opacity) {
hex = hex.replace(/^#/, ""); // remove "#" if present
var r = parseInt(hex.substring(0, 2), 16);
var g = parseInt(hex.substring(2, 4), 16);
var b = parseInt(hex.substring(4, 6), 16);
return "rgba(" + r + "," + g + "," + b + "," + opacity + ")";
}
function showLeafs() {
// hide the button and show features
document.getElementById("feature_showmore").style.display = "none";
document.getElementById("feature_bubbles").style.display = "block";
// get all spans with ids 1 to 87
var spans = [];
for (var i = 1; i <= 87; i++) {
spans.push(document.getElementById(i.toString()));
}
f
// make first item visible right away
var first_item = spans[0];
first_item.style.opacity = 1;
// loop over each span
for (var i = 0; i < spans.length; i++) {
(function(i) {
var span = spans[i];
var random_color = colors[i % colors.length]; // cycle through colors if there are more spans than colors
// set color right away, half opacity
span.style.backgroundColor = hexToRGBA(random_color, 0.5);
// random delay between 0 and 3 seconds
var random_delay = Math.random() * 3000;
// set a timeout to change the background color after the random delay
setTimeout(function() {
span.style.opacity = 1;
}, random_delay);
})(i);
}
}

2

package.json
{
"name": "@eotl/theme-bootstrap",
"version": "0.3.2",
"version": "0.3.3",
"description": "Bootstrap 4 theme for EOTL collective",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc