PageSourceSearch

https://www.1001malam.com/js/afmtrack.js

js 1001malam.com collected 2026-10-03 19:08:28 UTC 3,544 bytes, 142 lines download raw bytes

1
2var parts = document.referrer.split('://')[1].split('www.')[1].split('/');
3var affiliate = parts[0];
4
5var newURL = window.location.protocol + "//" + window.location.host;
6var url = newURL.split('://')[1].split('www.')[1].split('/');
7
8
9
10var months = ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember'];
11var myDays = ['Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jumat', 'Sabtu'];
12var date = new Date();
13var day = date.getDate();
14var month = date.getMonth();
15var thisDay = date.getDay(),
16    thisDay = myDays[thisDay];
17var yy = date.getYear();
18var year = (yy < 1000) ? yy + 1900 : yy;
19var tanggal = thisDay + ', ' + day + '-' + months[month] + '-' + year;
20
21var a_p = "";
22var d = new Date();
23var curr_hour = d.getHours();
24if (curr_hour < 12) {
25    a_p = "AM";
26} else {
27    a_p = "PM";
28}
29if (curr_hour == 0) {
30    curr_hour = 12;
31}
32if (curr_hour > 12) {
33    curr_hour = curr_hour - 12;
34}
35
36var curr_min = d.getMinutes();
37curr_min = curr_min + "";
38if (curr_min.length == 1) {
39    curr_min = "0" + curr_min;
40}
41var jam = curr_hour + ":" + curr_min + a_p;
42
43var waktu = tanggal + " " + jam;
44
45
46var pathArray = window.location.pathname.split( '/' );
47
48function setCookie(cname,cvalue,exdays) {
49    var d = new Date();
50    d.setTime(d.getTime() + (exdays*24*60*60*1000));
51    var expires = "expires=" + d.toGMTString();
52    document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
53}
54
55function setHitCookie(cname,cvalue,exdays) {
56    var d = new Date();
57    d.setTime(d.getTime() + (exdays*24*60*60*1000));
58    var expires = "expires=" + d.toGMTString();
59    document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
60}
61
62function getCookie(cname) {
63    var name = cname + "=";
64    var decodedCookie = decodeURIComponent(document.cookie);
65    var ca = decodedCookie.split(';');
66    for(var i = 0; i < ca.length; i++) {
67        var c = ca[i];
68        while (c.charAt(0) == ' ') {
69            c = c.substring(1);
70        }
71        if (c.indexOf(name) == 0) {
72            return c.substring(name.length, c.length);
73        }
74    }
75    return "";
76}
77
78function checkCookie() {
79  
80  //alert(affiliate);
81  
82    var user=getCookie("affiliate_id");
83    if (user != "") {
84      //setHitCookie(user, waktu, 365);
85      $.ajax({
86        type: 'POST',
87        //async: false,
88        url: '/affiliatehit/getAffiliateHit',
89        data: {
90          web: user,
91          waktu: waktu
92        },
93        error: function (xhr) {
94          if (affiliate != "1001malam.com") {
95            alert(xhr.status);
96          }
97        }
98      });
99    }
100   
101    $.ajax({
102      type: 'POST',
103      //async: false,
104      url: '/affiliatecek/getAffiliateUser',
105      data: {
106        user: affiliate
107      },
108      dataType: "json",
109      success:function(data){
110        //console.log(data.length);
111        for (var i = 0; i < data.length; i++)
112        {
113          html = data[i].id;
114        }
115  
116        if (data.length > 0)
117        {
118          if (affiliate != "1001malam.com") {
119            setCookie("affiliate_id", affiliate, 365);
120          }
121        }
122      },
123      error: function (xhr) {
124          if (affiliate != "1001malam.com") {
125            alert(xhr.status);
126          }
127      }
128    });
129    
130    /*
131    if (user == "") {
132      if (affiliate != "seribusatumalam.com") {
133       setCookie("affiliate_id", affiliate, 365);
134      }
135    }*/
136}
137
138function deleteCookie() {
139  document.cookie = "affiliate_id=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
140}
141
142window.onload = checkCookie;

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.