1(function( $ ) { 2 'use strict'; 3 $( window ).load(function() { 4 setTimeout( 5 function() 6 { 7 $(".alert").hide(3000); 8 }, 10000); 9 10 }); 11 12 13 /** 14 * All of the code for your public-facing JavaScript source 15 * should reside in this file. 16 * 17 * Note: It has been assumed you will write jQuery code here, so the 18 * $ function reference has been prepared for usage within the scope 19 * of this function. 20 * 21 * This enables you to define handlers, for when the DOM is ready: 22 * 23 * $(function() { 24 * 25 * }); 26 * 27 * When the window is loaded: 28 * 29 * $( window ).load(function() { 30 * 31 * }); 32 * 33 * ...and/or other possibilities. 34 * 35 * Ideally, it is not considered best practise to attach more than a 36 * single DOM-ready or window-load handler for a particular page. 37 * Although scripts in the WordPress core, Plugins and Themes may be 38 * practising this, we should strive to set a better example in our own work. 39 */ 40 41})( jQuery );
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.