1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-29 07:45:33 +00:00
FrankerFaceZ/src/ui/styles.js

34 lines
1,012 B
JavaScript
Raw Normal View History

var FFZ = window.FrankerFaceZ,
constants = require('../constants');
//styles = require('../styles');
FFZ.prototype.setup_css = function() {
document.body.classList.toggle('ffz-flip-dashboard', this.settings.flip_dashboard);
this.log("Injecting main FrankerFaceZ CSS.");
var s = this._main_style = document.createElement('link');
s.id = "ffz-main-css";
s.setAttribute('rel', 'stylesheet');
s.setAttribute('href', constants.DIRECT_SERVER + "script/style.css?_=" + (constants.DEBUG ? Date.now() : FFZ.version_info));
document.head.appendChild(s);
/*var s = this._main_style = document.createElement('style');
s.textContent = styles.style;
s.id = "ffz-main-css";
document.head.appendChild(s);*/
if ( window.jQuery && jQuery.noty )
jQuery.noty.themes.ffzTheme = {
name: "ffzTheme",
style: function() {
this.$bar.removeClass().addClass("noty_bar").addClass("ffz-noty").addClass(this.options.type);
},
callback: {
onShow: function() {},
onClose: function() {}
}
};
}