1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-25 03:58:30 +00:00

Initial commit for modular FrankerFaceZ rewrite.

This commit is contained in:
SirStendec 2015-01-12 17:58:07 -05:00
parent b74fdaa22b
commit f1377bc989
27 changed files with 2717 additions and 1034 deletions

24
src/ui/styles.js Normal file
View file

@ -0,0 +1,24 @@
var FFZ = window.FrankerFaceZ,
constants = require('../constants');
FFZ.prototype.setup_css = function() {
this.log("Injecting main FrankerFaceZ CSS.");
var s = this._main_style = document.createElement('link');
s.id = "ffz-ui-css";
s.setAttribute('rel', 'stylesheet');
s.setAttribute('href', constants.SERVER + "script/style.css");
document.head.appendChild(s);
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() {}
}
};
}