PageSourceSearch

https://fr8ight.co.kr/layout/basic/js/cookie.js

js fr8ight.co.kr collected 2026-10-04 19:04:04 UTC 1,007 bytes, 39 lines download raw bytes

1var getCookie = function (cname) {
2    var name = cname + "=";
3    var ca = document.cookie.split(';');
4    for(var i=0; i<ca.length; i++) {
5        var c = ca[i];
6        while (c.charAt(0)==' ') c = c.substring(1);
7        if (c.indexOf(name) != -1) return c.substring(name.length,c.length);
8    }
9    return "";
10}
11
12var setCookie = function (cname, cvalue, exdays) {
13    var todayDate = new Date();
14    todayDate.setTime(todayDate.getTime() + (exdays*24*60*60*1000));    
15    var expires = "expires=" + todayDate.toUTCString();
16
17    document.cookie = cname + "=" + cvalue + "; " + expires;
18}
19
20var couponClose = function(){
21    setCookie("close", "Y", 1);
22    $('.pop').hide();
23}
24
25$(document).ready(function(){
26    var cookiedata = document.cookie;
27
28    if(cookiedata.indexOf("close=Y") < 0){
29        $('.pop').show();
30    }else{
31        $('.pop').hide();
32    }
33    $(".pop .day-off").click(function(){
34        couponClose();
35    });
36	$(".pop .clos2").click(function(){
37       $('.pop').hide();
38    });
39});

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.