PageSourceSearch

https://www.udco.com/includes/pageLoad.js

js udco.com collected 2026-10-07 04:04:51 UTC 4,448 bytes, 142 lines download raw bytes

1$(document).ready(function () {
2        
3    $("#mainnav>ul>li").mouseenter(function () {
4        $(this).children('ul,div.megamenu').fadeIn('fast');
5    }).mouseleave(function () {
6        //mouse leave
7        $(this).children('ul,div.megamenu').fadeOut();
8    });
9
10    $("div.megamenu").mouseenter(function (e) {
11        $(this).stop().css('display', 'block');
12    });
13
14    //megamenu hover
15    $("#mainnav a[data-megaid]").mouseenter(function () {
16        var menu = '#megamenu' + $(this).attr('data-megaid');
17
18        $(this).parents('div.megamenu').find('section').hide();
19        $(menu).show();
20    });
21    
22    $("#mainnav > ul > li:first-child").hover(function () {
23        $('.mm-shadow').toggleClass("on");
24    });
25        $(".expand>h1").click(function () {
26        if ($(this).parent().hasClass("open")) {
27            $(this).next().css("display", "block").slideUp("400");
28        } else {
29            $(this).next().slideDown("400");
30        }
31        $(this).parent().toggleClass("open");
32    });
33});
34
35$(document).ready(function () {        
36    // see whether device supports touch events (a bit simplistic, but...)
37    var hasTouch = ("ontouchstart" in window);
38    var iOS5 = /iPad|iPod|iPhone/.test(navigator.platform) && "matchMedia" in 
38window;
39
40    // hook touch events for drop-down menus
41    // NB: if has touch events, then has standards event handling too
42    // but we don't want to run this code on iOS5+
43    if (hasTouch && document.querySelectorAll && !iOS5) {
44        var i, len, element,
45            dropdowns = document.querySelectorAll("#mainnav ul li > a");
46
47
48        function menuTouch(event) {
49            // toggle flag for preventing click for this link
50            var i, len, noclick = !(this.dataNoclick);
51
52            // reset flag on all links
53            for (i = 0, len = dropdowns.length; i < len; ++i) {
54                dropdowns[i].dataNoclick = false;
55            }
56
57            // set new flag value and focus on dropdown menu
58            this.dataNoclick = noclick;
59            this.focus();
60        }
61
62        function menuClick(event) {
63            // if click isn't wanted, prevent it
64            if (this.dataNoclick) {
65                event.preventDefault();
66            }
67        }
68
69        for (i = 0, len = dropdowns.length; i < len; ++i) {
70            element = dropdowns[i];
71            element.dataNoclick = false;
72            element.addEventListener("touchstart", menuTouch, false);
73            element.addEventListener("click", menuClick, false);
74        }
75    }
76});
77
78$(document).ready(function(){
79    $('.main .button').bind('inview', function (event, visible) {
80      if (visible == true) {
81        // element is now visible in the viewport
82        $('.image').addClass('slide');
83      } else {
84        // element has gone out of viewport
85         $('.image').removeClass('slide');
86      }
87    });
88});
89
90$(window).scroll(function () {
91    if ($(window).scrollTop() > 120) {
92        $('body').addClass('scroll');
93    }
94    if ($(window).scrollTop() < 120) {
95        $('body').removeClass('scroll');
96    }
97})
98
99$(function(){
100		var $gallery = $('.gallery a').simpleLightbox();
101		
102		$gallery.on('show.simplelightbox', function(){
103			console.log('Requested for showing');
104		})
105		.on('shown.simplelightbox', function(){
106			console.log('Shown');
107		})
108		.on('close.simplelightbox', function(){
109			console.log('Requested for closing');
110		})
111		.on('closed.simplelightbox', function(){
112			console.log('Closed');
113		})
114		.on('change.simplelightbox', function(){
115			console.log('Requested for change');
116		})
117		.on('next.simplelightbox', function(){
118			console.log('Requested for next');
119		})
120		.on('prev.simplelightbox', function(){
121			console.log('Requested for prev');
122		})
123		.on('nextImageLoaded.simplelightbox', function(){
124			console.log('Next image loaded');
125		})
126		.on('prevImageLoaded.simplelightbox', function(){
127			console.log('Prev image loaded');
128		})
129		.on('changed.simplelightbox', function(){
130			console.log('Image changed');
131		})
132		.on('nextDone.simplelightbox', function(){
133			console.log('Image changed to next');
134		})
135		.on('prevDone.simplelightbox', function(){
136			console.log('Image changed to prev');
137		})
138		.on('error.simplelightbox', function(e){
139			console.log('No image found, go to the next/prev');
140			console.log(e);
141		});
142	});

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.