main.js 572 B

12345678910111213141516171819202122232425262728
  1. (function($, Drupal, drupalSettings) {
  2. MaterioTheme = function(){
  3. var _$body = $('body');
  4. // var _is_front = drupalSettings.path.isFront;
  5. // ___ _ _
  6. // |_ _|_ _ (_) |_
  7. // | || ' \| | _|
  8. // |___|_||_|_|\__|
  9. function init(){
  10. console.log("MaterioTheme init()");
  11. };
  12. init();
  13. } // end MaterioTheme()
  14. $(document).ready(function($) {
  15. if(drupalSettings.path.isFront){
  16. var materiotheme = new MaterioTheme();
  17. }else{
  18. $('body').attr('booted', 'booted');
  19. }
  20. });
  21. })(jQuery, Drupal, drupalSettings);