This repository has been archived on 2023-02-03. You can view files and clone it, but cannot push or open issues or pull requests.
autonomic.zone/js/pageClasses.js

22 lines
416 B
JavaScript
Raw Normal View History

2017-08-31 11:44:57 +00:00
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));