materio-d9/web/themes/custom/materiotheme/assets/scripts/main.js

29 lines
572 B
JavaScript
Raw Normal View History

2019-03-25 18:27:56 +01:00
(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);