Sha256: c1652d367db37009fbbf0c741d73725af56467e14ac58c74d41a87d6ae3d7068

Contents?: true

Size: 576 Bytes

Versions: 1

Compression:

Stored size: 576 Bytes

Contents

var theme_sel = document.getElementById("themes"),
	stylesheet = document.getElementById("cal_style"),
	themes = [
		"material_blue", "material_red", "material_orange", "material_green",
		"dark",
		"airbnb",
		"confetti",
		"base16_flat"
	];

for(var i = 0; i < themes.length; i++){
	var opt = document.createElement("option");
	opt.value = "." + themes[i];
	opt.innerText = themes[i].replace(/_/g," ");
	theme_sel.appendChild(opt);
}

theme_sel.addEventListener("change", function(e){
	stylesheet.href="dist/flatpickr" + e.target.value +".min.css";
	theme_sel.blur();
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
date_picker-0.0.9 test/dummy/vendor/assets/components/flatpickr/assets/js/themer.js