PageSourceSearch

https://www.perstima.com.my/js/common.js

js perstima.com.my collected 2026-10-05 23:18:50 UTC 2,193 bytes, 85 lines download raw bytes

1<!--
2
3function copyValue(source, target) {
4
5    var textbox1 = document.getElementById(source);
6    var textbox2 = document.getElementById(target);
7
8    textbox2.value = textbox1.value;
9}
10
11function addLoadEvent(func){
12    var oldonload = window.onload;
13    
14    if(typeof window.onload != 'function'){
15        window.onload = func;
16    }
17    else {
18        window.onload  = function() {
19            if(oldonload) {
20                oldonload();
21            }
22            
23            func();
24        }
25    }
26}
27function slideActionCat(targetContainer, targetSlideContainer) {
28    $('#' + targetContainer).hover(
29        function() {
30            var obj = $(this);
31            obj.addClass("active");
32            setTimeout(function() {
33                if (obj.hasClass('active')) {
34                    $('#' + targetSlideContainer).slideDown(500);
35                }
36            }, 300);
37        },
38        function() {
39            var obj = $(this);
40            obj.removeClass("active");
41            $('#' + targetSlideContainer).slideUp(500);
42        }
43    );
44}
45
46// blinking text
47var intIntervalBlink = 0;
48var intCounter = 0;
49
50function blink(target, showClass, hideClass) {
51    if ($(target).is(':visible')) {
52        //clearInterval(intIntervalBlink);
53        intIntervalBlink = setInterval(function() { blinkText(target, showClass, hideClass) }, 500);        
54    }
55    else {
56        $(target).removeClass(showClass);
57        $(target).removeClass(hideClass);
58        clearInterval(intIntervalBlink);
59    }    
60}
61
62function blinkText(target, showClass, hideClass) {
63    if(intCounter == 19) 
64    {
65        clearInterval(intIntervalBlink);
66        intCounter = 0;
67    } 
68    else 
69    {
70        if($(target).hasClass(showClass)) {
71            $(target).removeClass(showClass);
72            $(target).addClass(hideClass);
73        }
74        else if($(target).hasClass(hideClass)) {
75            $(target).removeClass(hideClass);
76            $(target).addClass(showClass);
77        }
78        else {
79            $(target).addClass(hideClass);
80        }
81        intCounter++;
82    }
83}
84// end of blinking text
85//-->

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.