PageSourceSearch

https://getdpd.com/sales/js/menu_subpage.js

js getdpd.com collected 2026-09-24 08:49:05 UTC 2,275 bytes, 82 lines download raw bytes

1var showRight_1 = document.getElementById( "showRight_1" ),
2hideRight = document.getElementById( 'hideRight' ),
3menuRight = document.getElementById( 'cbp-spmenu-s2' ),
4body = document.body;
5nav_open = false;
6
7
8showRight_1.onclick = function(event) {
9	event.preventDefault();
10    classie.toggle( this, 'active' );
11    classie.add( menuRight, 'cbp-spmenu-open' );
12    nav_open = true;
13    return false; };
14
15hideRight.onclick = function(event) {
16	event.preventDefault();
17    classie.toggle( this, 'active' );
18    classie.remove( menuRight, 'cbp-spmenu-open' );
19    nav_open = false;
20    return false; };
21    
22showRight_1.ontouchend = function(event) {
23	event.preventDefault();
24    classie.toggle( this, 'active' );
25    classie.add( menuRight, 'cbp-spmenu-open' );
26    nav_open = true;
27    return false; };
28
29hideRight.ontouchend = function(event) {
30	event.preventDefault();
31    classie.toggle( this, 'active' );
32    classie.remove( menuRight, 'cbp-spmenu-open' );
33    nav_open = false;
34    return false; };
35    
36
37var hasParent = function(el, id){
38if (el) {
39    do {
40        if (el.id === id) {
41            return true;
42        }
43        if (el.nodeType === 9) {
44            break;
45        }
46    }
47    while((el = el.parentNode));
48} return false; };
49
50
51document.addEventListener('click', function(e) {
52        if (nav_open && !hasParent(e.target, 'cbp-spmenu-s2') ) {
53            e.preventDefault();
54            classie.remove( menuRight, 'cbp-spmenu-open' );
55            nav_open = false;
56        }}, true );
57
58document.addEventListener('touchend', function(e){
59        if (nav_open && !hasParent(e.target, 'cbp-spmenu-s2') ) {
60            e.preventDefault();
61            classie.remove( menuRight, 'cbp-spmenu-open' );
62            nav_open = false;
63            return false;
64        }}, true );         
65
66window.onpageshow = function () {
67	classie.remove( menuRight, 'cbp-spmenu-open' );
68	}    
69
70$(function(){
71  function passwordAnimate(){
72    $('input[type="password"]').each(function(){
73      if($(this).css('background-color') == "rgb(250, 255, 189)") {
74        $(this).siblings('label').addClass('active');
75      }
76    })
77  }
78  setTimeout(passwordAnimate, 500);
79  setTimeout(passwordAnimate, 1000);
80  setTimeout(passwordAnimate, 1500);
81  setTimeout(passwordAnimate, 2000);
82});

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.