PageSourceSearch

https://inspiredeconomist.com/wp-content/plugins/ad-ace/assets/js/slideup.js?ver=1.3.1

js inspiredeconomist.com collected 2026-09-24 10:02:15 UTC 1,731 bytes, 72 lines download raw bytes

1/* global jQuery */
2/* global document */
3
4(function($) {
5
6	'use strict';
7
8	$(document).ready(function(){
9		slideUp();
10	});
11
12	var createCookie = function (name, value, time) {
13        var expires;
14
15        if (time) {
16            var date = new Date();
17            var ms = time;
18
19            if (typeof time === 'object') {
20                ms = time.value;
21
22                switch (time.type) {
23                    case 'days':
24                        ms = ms * 24 * 60 * 60 * 1000;
25                        break;
26                }
27            }
28
29            date.setTime(date.getTime() + ms);
30            expires = '; expires=' + date.toGMTString();
31        }
32        else {
33            expires = '';
34        }
35
36        document.cookie = name + '=' + value + expires + '; path=/';
37	};
38	var readCookie = function (name) {
39        var nameEQ = name + '=';
40        var ca = document.cookie.split(';');
41
42        for (var i = 0; i < ca.length; i += 1) {
43            var c = ca[i];
44            while (c.charAt(0) === ' ') {
45                c = c.substring(1, c.length);
46            }
47
48            if (c.indexOf(nameEQ) === 0) {
49                return c.substring(nameEQ.length, c.length);
50            }
51        }
52
53        return null;
54    };
55
56	var slideUp = function() {
57		var
58	 	$slideUpSlotWrap = $('.adace-slideup-slot-wrap'),
59		$slideUpCloserBtn = $slideUpSlotWrap.find('.adace-slideup-slot-closer'),
60		SlideupCookie = readCookie('adace_slideup_disabled');
61		$slideUpCloserBtn.on('click', function(e) {
62			e.preventDefault();
63			$slideUpSlotWrap.addClass('hidden');
64			createCookie('adace_slideup_disabled', 1, 24 * 60 * 60 * 1000);
65		});
66
67		if ( SlideupCookie ) {
68            $slideUpSlotWrap.remove();
69        }
70	};
71
72})(jQuery);

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.