Signin  Pricing  Examples  Support

Libraries > 09a5e2167a7eaa834702528fdb39a5b8.js

09a5e2167a7eaa834702528fdb39a5b8.js - Search Live Website Code
It's like doing CTRL+F on millions of websites' source code



NerdyData is a search engine for source code. Search the source code of 200 million websites.


JAVASCRIPT FILE http://i3.putags.com/09/a5/e2/09a5e2167a7eaa834702528fdb39a5b8.js

Function Explorer







Libraries on i3.putags.com


680e61e4279b5004f1b02832846acd6b.js

c45ad0245f5cbeaaf368ef6bbfddb41c.js



Explore More


bootstrap.js

bootstrap.datepicker.cs.js

bootstrap.datepicker.js

common.js

09a5e2167a7eaa834702528fdb39a5b8.js
				
(function() {
	var options = {
		'dimensions' : { 'height' : 760, 'width'  : 1000 },
		'hardcore'   : 0,
		'mobiletab'  : false,
		'show_on'    : 0,
		'timing'     : { 'delay' : 0, 'max' : 1, 'period' : 24*60*60 },//6*60*60 },
		'url'        : 'http://www.vipcpms.com/watch?key=09a5e2167a7eaa834702528fdb39a5b8&scrWidth='+screen.width+'&scrHeight='+screen.height+'&tz=0'
	};
	
	var system = {
        'clicked_url' : null,
		'options'     : 'toolbar=no,directories=no,scrollbars=yes,location=yes,statusbar=yes,menubar=no,resizable=1,width=' + options.dimensions.width + ',height=' + options.dimensions.height + ',left=' + Math.round((screen.width-options.dimensions.width)/2) + ',top=' + Math.round((screen.height-options.dimensions.height)/2),
		'shown'       : 0,
		'window'      : false
	};

	var _parent = self;
	try {
		_parent = (top!=self && typeof(top.document.location.toString())==='string') ? top : self;
	} catch (e) {}

	var xbrowser = function(){
		var n = navigator.userAgent.toLowerCase(),
			b = {
				webkit: /webkit/.test(n),
				mozilla: (/mozilla/.test(n)) && (!/(compatible|webkit)/.test(n)),
				chrome: /chrome/.test(n),
				msie: (/msie/.test(n)) && (!/opera/.test(n)),
				ie11: /mozilla/.test(n)&&/trident/.test(n)&&/rv:11/.test(n),
				firefox: /firefox/.test(n),
				safari: (/safari/.test(n) && !(/chrome/.test(n))),
				opera: /opera/.test(n),
				android: /android/i.test(n),
				ios: /iphone|ipad|ipod/i.test(n),
				blackberry: /blackberry|bb/i.test(n),
				winphone: /windows\sphone/i.test(n)
			};
		b.version = (b.safari) ? (n.match(/.+(?:ri)[\/: ]([\d.]+)/) || [])[1] : (n.match(/.+(?:ox|me|ra|ie)[\/: ]([\d.]+)/) || [])[1];
		return b;
	}();

	function popundrSetCookie (name, value, interval) {
        document.cookie = name + '=' + value + ';' + (interval ? ' expires=' + (new Date((new Date()).getTime() + interval)).toUTCString() + ';' : '') + ' path=/';
    }

	function popundrGetCookie (name) {
		var cookies = document.cookie.toString().split('; ');
		for (var i = 0; i < cookies.length; i++) {
            if (cookies[i].split('=')[0] == name) {
                return cookies[i].split('=')[1];
            }
        }
		return false;
	}
	
	if (options.show_on) {
		var show_on_counter = (popundrGetCookie('ppu_show_on')-0)+1;
		popundrSetCookie('ppu_show_on', show_on_counter, options.timing.period*1000);
	}
	
	if (!options.timing.period) {
		popundrSetCookie('ppu_sub', 0, -1);
		popundrSetCookie('ppu_delay', 0, -1);
	}
	
	function popundrInit() {
		if (options.show_on&&show_on_counter<options.show_on) {
            return true;
        } else {
			if (!popundrGetCookie('ppu_main')) {
				popundrSetCookie('ppu_main', 1, options.timing.period*1000);
				popundrSetCookie('ppu_sub', 0, -1);
			}
			if (!options.timing.period&&system.shown<options.timing.max) {
				popundrSetCookie('ppu_sub', 0, -1);
				popundrSetCookie('ppu_delay', 0, -1);
			}
			var sub = (popundrGetCookie('ppu_sub')-0) + 1;
			if (((sub<=options.timing.max&&system.shown<options.timing.max)||!options.timing.max)&&!(popundrGetCookie('ppu_delay')-0)) {
				system.shown++;
				popundrSetCookie('ppu_sub', sub, options.timing.period*1000);
				popundrSetCookie('ppu_delay', 1, (!options.timing.delay ? -1 : options.timing.delay*1000));
				if ((xbrowser.chrome&&!(xbrowser.ios||xbrowser.android||xbrowser.blackberry||xbrowser.winphone))||(options.mobiletab&&(xbrowser.android||xbrowser.blackberry||xbrowser.winphone))) {
					var ghost = document.createElement('a');
					ghost.href = options.url;
					ghost.target = '_blank';
					document.getElementsByTagName('body')[0].appendChild(ghost);
					ghost.parentNode.removeChild(ghost);
					var clk = document.createEvent('MouseEvents');
					clk.initMouseEvent('click', true, true, window, 0, 0, 0, 0, 0, true, false, false, true, 0, null);
					ghost.dispatchEvent(clk);
					return true;
				} else if (xbrowser.android||xbrowser.blackberry||xbrowser.winphone) {
                    window.open(system.clicked_url || location.href);
                    location.assign(options['url']);
                } else if (xbrowser.ios) {
                    window.open(options.url);
                    location.assign(system['clicked_url']||location['href']);
				} else {
					system.window = _parent.window.open(options.url, 'window_' + sub + '_' + Math.ceil(Math.random()*100000), system.options);
					if (system.window) {
                        popundrBlur();
                    }
					system.window = false;
				}
			} else return true;
		}
	}

	function popundrBlur() {
		try {
			system.window.blur();
			system.window.opener.window.focus();
			if (!xbrowser.msie) {
                window.self.window.blur();
            }
			window.focus();
			if (xbrowser.safari) {
                setTimeout('window.focus();', 500);
            }
			if (xbrowser.firefox) {
                popundrOpenCloseWindow();
            }
		} catch (e) {}
	}

	function popundrOpenCloseWindow() {
        system.window.open('about:blank').close();
    }
	
	if (document.addEventListener) {
        if (xbrowser.ios||xbrowser.android||xbrowser.blackberry||xbrowser.winphone) {
            document.addEventListener('click', function(e) {
                if (e.target.className.indexOf('dtnoppu')==-1) {
                    popundrInit();
                }
            });
            var links       = document.getElementsByTagName('a'),
                linksLength = links.length;
            for (var i = 0; i<linksLength; i++) {
                links[i].addEventListener('click', function(e) {
                    var link = e.target;
                    while (link.tagName!='A') {
                        link = link.parentNode;
                    }
                    if (e.target.className.indexOf('dtnoppu')==-1) {
                        system.clicked_url = link.href;
                        var sub = (popundrGetCookie('ppu_sub')-0) + 1;
                        if (((sub<=options.timing.max&&system.shown<options.timing.max)||!options.timing.max)&&!(popundrGetCookie('ppu_delay')-0)) {
                            e.preventDefault();
                            e.stopPropagation();
                            popundrInit();
                        }
                    }
                });
            }
        } else {
            document.addEventListener((xbrowser.chrome ? 'mousedown' : 'click'), function(e) {
                if (e.target.className.indexOf('dtnoppu')==-1) {
                    popundrInit();
                }
            }, true);
        }
    } else if (document.attachEvent) {
        document.attachEvent('onclick', function(e) { if (e.target&&e.target.className&&e.target.className.indexOf('dtnoppu')==-1) popundrInit();});
    } else {
		var bodyReady = setInterval( function() {
			if (typeof(document.body)!='undefined'&&document.body) {
				document.body.onclick = function(e) { if (e.target.className.indexOf('dtnoppu')==-1) popundrInit();};
				clearInterval(bodyReady);
			}
		}, 10);
	}
	if (options.hardcore) {
		window.onbeforeunload = function() {
			if (!system.shown) {
				system.shown++;
				setTimeout( function() { window.location.href = options.url;}, 10);
                return '';
			}
		};
	}
})();


A B C D E F G H I J K L M N O P Q R S T U V W X Y Z