nordicmaterial2
6/28/2016 - 4:34 PM

Embedding .js in html, versus in Drupal

Embedding .js in html, versus in Drupal

// LINKED TO A SIMPLE HTML PAGE before body close tag:
// <script src="js/jquery-1.11.2.min.js"></script>	
// <script src="js/multitoggle.js"></script>

$(document).ready(function() {
    
//here comes the function
 
});
}); 



//////////////////////////////

// LINKED TO DRUPAL:

(function($) {
    
//here comes the function
 
});

})(jQuery);