libs/nanobar.js
// add required css in head div
add required css in head div
add required css in head div
function addCss() {
	var s = document.getElementById("nanobarcss");
	if (s === null) {
		s = document.createElement("style");
		s.type = "text/css";
		s.id = "nanobarcss";
		document.head.insertBefore(s, document.head.firstChild);
		if (!s.styleSheet) return s.appendChild(document.createTextNode(css));
		s.styleSheet.cssText = css;
	}
}
function addCss ( ) { var s = document . getElementById ( "nanobarcss" ) ; if ( s === null ) { s = document . createElement ( "style" ) ; s . type = "text/css" ; s . id = "nanobarcss" ; document . head . insertBefore ( s , document . head . firstChild ) ; if ( ! s . styleSheet ) return s . appendChild ( document . createTextNode ( css ) ) ; s . styleSheet . cssText = css ; } }
add required css in head div
add required css in head div
// check whether style tag is already inserted // the world // IE