PageSourceSearch

https://mynewart.dk/modules/n45xspeed/js/expresscache.js

js mynewart.dk collected 2026-10-07 03:09:17 UTC 1,806 bytes, 87 lines download raw bytes

1/* Shows the live editor based on cookie */
2
3function getCookie(name) {
4	var value = "; " + document.cookie;
5	var parts = value.split("; " + name + "=");
6	if (parts.length == 2) return parts.pop().split(";").shift();
7		return null;
8}
9
10
11function checkECCookie() {
12	var myCookie = getCookie("expresscache_advcachemgmt");
13	// console.log(myCookie);
14
15	if (myCookie == null) {
16		// do cookie doesn't exist stuff;
17	} else {
18		$(function() { $('#expresscache_liveeditor').show();});
19	}
20}
21
22function loadElementsOnView($custom_selector){
23	var $windowHeight = $(window).height();
24	var $windowScroll = $(window).scrollTop();
25
26	var $scrolledY = $windowScroll + $windowHeight;
27
28	var $default_selector = '.preload_element, img[data-src]';
29
30	if(typeof $custom_selector != 'undefined'){
31		$default_selector = $custom_selector;
32	}
33
34	$($default_selector).each(function(){
35		var $that = $(this);
36		var $elemPosition = $that.offset();
37
38		if($scrolledY <= $elemPosition.top)
39			return;
40
41		if(this.tagName == 'IMG'){
42			var $realSource = $that.data('src');
43
44			$that.attr('src', $realSource).removeAttr('data-src');
45		}
46
47		$that.animate({
48			opacity: 1
49		}, 20);
50	});
51}
52
53checkECCookie();
54
55$(document).ready(function(){
56	$('.donwuphideshow').click(function(){
57		var that = $(this);
58		var parent = that.parent();
59		var hasClass = parent.hasClass('closed');
60
61		if(!hasClass){
62			parent.addClass('closed');
63
64			parent.animate({
65				height:0,
66				overflow:'visible',
67				padding:0
68			});
69
70			that.html('&#5169;');
71		}else{
72			parent.removeClass('closed');
73
74			parent.animate({
75				height:183,
76				overflow:'visible',
77				padding:10
78			});
79
80			that.html('&#5167;');
81		}
82	});
83});
84
85$(window).bind('load scroll', function(){
86	loadElementsOnView();
87});

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.