2015-01-20 01:53:18 -05:00
|
|
|
var FFZ = window.FrankerFaceZ,
|
2015-11-01 17:28:19 -05:00
|
|
|
constants = require('../constants'),
|
|
|
|
styles = require('../styles');
|
2015-01-20 01:53:18 -05:00
|
|
|
|
|
|
|
FFZ.prototype.setup_css = function() {
|
2015-10-17 18:05:44 -04:00
|
|
|
document.body.classList.toggle('ffz-flip-dashboard', this.settings.flip_dashboard);
|
|
|
|
|
2015-01-20 01:53:18 -05:00
|
|
|
this.log("Injecting main FrankerFaceZ CSS.");
|
|
|
|
|
2015-11-01 17:28:19 -05:00
|
|
|
var s = this._main_style = document.createElement('style');
|
2015-01-20 01:53:18 -05:00
|
|
|
|
2015-11-01 17:28:19 -05:00
|
|
|
s.textContent = styles.style;
|
2015-01-20 01:53:18 -05:00
|
|
|
s.id = "ffz-ui-css";
|
2015-10-27 21:22:54 -04:00
|
|
|
|
2015-01-20 01:53:18 -05:00
|
|
|
document.head.appendChild(s);
|
|
|
|
|
2015-10-17 18:05:44 -04:00
|
|
|
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() {}
|
|
|
|
}
|
|
|
|
};
|
2015-01-12 17:58:07 -05:00
|
|
|
}
|