22 lines
416 B
JavaScript
22 lines
416 B
JavaScript
|
var cj = cj ? cj : {};
|
||
|
(function($) {
|
||
|
$.extend(cj, {
|
||
|
pageReadyClass: function() {
|
||
|
var self = this;
|
||
|
|
||
|
self.settings.$html.addClass('page-ready');
|
||
|
},
|
||
|
pageLoadedClass: function() {
|
||
|
var self = this;
|
||
|
|
||
|
self.settings.$html.addClass('page-loaded');
|
||
|
}
|
||
|
});
|
||
|
$.subscribe('pageReady', function() {
|
||
|
cj.pageReadyClass();
|
||
|
});
|
||
|
$.subscribe('pageLoaded', function() {
|
||
|
cj.pageLoadedClass();
|
||
|
});
|
||
|
}(jQuery));
|