_notes.txt https://jquery.com/download/ npm install jquery npm install jquery@3.1.1 ----------------------------------- - Letteralmente modello a oggetti del documento, è una forma di rappresentazione dei documenti strutturati come modello orientato agli oggetti. È lo standard ufficiale del W3C per la rappresentazione di documenti strutturati in maniera da essere neutrali sia per la lingua che per la piattaforma. È inoltre la base per una vasta gamma di interfacce di programmazione delle applicazioni; alcune di esse sono standardizzate dal W3C. Un classico esempio di albero DOM è quello generato da un browser web nell'interpretazione di un documento HTML. - document ready function Code included inside $( document ).ready() will only run once the page Document Object Model (DOM) is ready for JavaScript code to execute. will run once the entire page (images or iframes), not just the DOM, is ready. For other libraries using the dollar sign $ $(docuemnt).ready( function() { }) - short form: $(function(){ }) $(function() { $("h1").hide(); }) - mantain jquery functionalty in this scope. When using other js libraries that use the the same sintax ($) ( function($) { $('h1').hide(); }(jQuery) ) - Window object is one level up from document object