PageSourceSearch

https://hd.illel.fr/modules/an_cookie_popup/views/js/front.js

js illel.fr collected 2026-10-04 02:48:28 UTC 1,259 bytes, 35 lines download raw bytes

1/**
2 * 2021 Anvanto
3 *
4 * NOTICE OF LICENSE
5 *
6 * This file is not open source! Each license that you purchased is only available for 1 wesite only.
7 * If you want to use this file on more websites (or projects), you need to purchase additional licenses.
8 * You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
9 *
10 *  @author Anvanto <[email protected]>
11 *  @copyright  2021 Anvanto
12 *  @license    Valid for 1 website (or project) for each purchase of license
13 *  International Registered Trademark & Property of Anvanto
14 */
15
16$(document).ready(function(){
17    if (getCookie('an_cookie_banner')!=1) {
18        $('.notification_cookie').show();
19    }
20
21    $('.notification_cookie-accept').on('click', function () {
22		let date = new Date(Date.now() + 86400e3 * 360 * 3);
23		date = date.toUTCString();
24        document.cookie = "an_cookie_banner=1; path=/; expires=" + date;
25        $('.notification_cookie').hide();
26    });
27
28    function getCookie(name)
29    {
30        var matches = document.cookie.match(new RegExp(
31            "(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"
32        ));
33        return matches ? decodeURIComponent(matches[1]) : undefined;
34    }
35});

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.