PageSourceSearch

https://www.consulate-montreal.com/js/main.js

js consulate-montreal.com collected 2026-10-08 00:18:53 UTC 1,102 bytes, 42 lines download raw bytes

1
2// Fireup the plugins
3$(document).ready(function(){
4	
5	// initialise  slideshow
6	 $('.flexslider').flexslider({
7        animation: "slide",
8        start: function(slider){
9          $('body').removeClass('loading');
10        }
11      });
12
13});
14/**
15 * Handles toggling the navigation menu for small screens.
16 */
17( function() {
18	var button = document.getElementById( 'topnav' ).getElementsByTagName( 'div' )[0],
19	    menu   = document.getElementById( 'topnav' ).getElementsByTagName( 'ul' )[0];
20
21	if ( undefined === button )
22		return false;
23
24	// Hide button if menu is missing or empty.
25	if ( undefined === menu || ! menu.childNodes.length ) {
26		button.style.display = 'none';
27		return false;
28	}
29
30	button.onclick = function() {
31		if ( -1 == menu.className.indexOf( 'srt-menu' ) )
32			menu.className = 'srt-menu';
33
34		if ( -1 != button.className.indexOf( 'toggled-on' ) ) {
35			button.className = button.className.replace( ' toggled-on', '' );
36			menu.className = menu.className.replace( ' toggled-on', '' );
37		} else {
38			button.className += ' toggled-on';
39			menu.className += ' toggled-on';
40		}
41	};
42} )();

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.