PageSourceSearch

https://citizenpost.fr/wp-content/plugins/ad-ace/assets/js/slideup.js?ver=1.3.14

js citizenpost.fr collected 2026-09-24 11:19:05 UTC 1,743 bytes, 72 lines download raw bytes

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