started materiO's theme
This commit is contained in:
28
web/themes/custom/materiotheme/assets/scripts/main.js
Normal file
28
web/themes/custom/materiotheme/assets/scripts/main.js
Normal file
@@ -0,0 +1,28 @@
|
||||
(function($, Drupal, drupalSettings) {
|
||||
|
||||
MaterioTheme = function(){
|
||||
var _$body = $('body');
|
||||
// var _is_front = drupalSettings.path.isFront;
|
||||
|
||||
// ___ _ _
|
||||
// |_ _|_ _ (_) |_
|
||||
// | || ' \| | _|
|
||||
// |___|_||_|_|\__|
|
||||
function init(){
|
||||
console.log("MaterioTheme init()");
|
||||
|
||||
};
|
||||
|
||||
|
||||
init();
|
||||
} // end MaterioTheme()
|
||||
|
||||
$(document).ready(function($) {
|
||||
if(drupalSettings.path.isFront){
|
||||
var materiotheme = new MaterioTheme();
|
||||
}else{
|
||||
$('body').attr('booted', 'booted');
|
||||
}
|
||||
});
|
||||
|
||||
})(jQuery, Drupal, drupalSettings);
|
Reference in New Issue
Block a user