1/*! js-cookie v3.0.5 | MIT */ 2!function (e, t) { "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self, function () { var n = e.Cookies, o = e.Cookies = t(); o.noConflict = function () { return e.Cookies = n, o } }()) }(this, (function () { "use strict"; function e(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var o in n) e[o] = n[o] } return e } var t = function t(n, o) { function r(t, r, i) { if ("undefined" != typeof document) { "number" == typeof (i = e({}, o, i)).expires && (i.expires = new Date(Date.now() + 864e5 * i.expires)), i.expires && (i.expires = i.expires.toUTCString()), t = encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape); var c = ""; for (var u in i) i[u] && (c += "; " + u, !0 !== i[u] && (c += "=" + i[u].split(";")[0])); return document.cookie = t + "=" + n.write(r, t) + c } } return Object.create({ set: r, get: function (e) { if ("undefined" != typeof document && (!arguments.length || e)) { for (var t = document.cookie ? document.cookie.split("; ") : [], o = {}, r = 0; r < t.length; r++) { var i = t[r].split("="), c = i.slice(1).join("="); try { var u = decodeURIComponent(i[0]); if (o[u] = n.read(c, u), e === u) break } catch (e) { } } return e ? o[e] : o } }, remove: function (t, n) { r(t, "", e({}, n, { expires: -1 })) }, withAttributes: function (n) { return t(this.converter, e({}, this.attributes, n)) }, withConverter: function (n) { return t(e({}, this.converter, n), this.attributes) } }, { attributes: { value: Object.freeze(o) }, converter: { value: Object.freeze(n) } }) }({ read: function (e) { return '"' === e[0] && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent) }, write: function (e) { return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent) } }, { path: "/" }); return t })); 3 4var rr46ResourceWindow = null; 5 6$(document).ready(function() { 7 8 //Open new window resources with script so we can close them later 9 $('.scriptopen a[target="_blank"]').on('click', function(e) { 10 e.preventDefault(); 11 var url = $(this).attr('href'); 12 console.log('Opening: ', url); 13 console.log(window.open); 14 //Open URL in new tab 15 rr46ResourceWindow = window.open(url, '_blank'); 16 //Get jquery document when loaded 17 18 //Handle close link on the new tab 19 20 }); 21 22 //POP-UP COOKIE 23 // If the 'hide cookie is not set we show the message 24 if (Cookies.get('name') != 'true') { 25 $('#popup').addClass('visible'); 26 } else { 27 $('#popup').hide(); 28 } 29 30 // Add the event that closes the popup and sets the cookie that tells us to 31 // not show it again until one day has passed. 32 $('#popupClose').click(function() { 33 //createCookie('notice', true, 7); 34 //Cookies.set('STYXKEY_notice', 'true', { expires: 7, path: '/', secure: true }); 35 //if($(this).data('redirect') != ''){ 36 // window.location.href = $(this).data('redirect'); 37 if($(this).data('redirect') == 'closetab'){ 38 window.close(); 39 } else { 40 $('#popup').hide(); 41 } 42 return false; 43 }); 44 45 //Set a cookie when the user clicks submit on the form within the popup 46 $('#popup form').submit(function() { 47 //createCookie('notice', true, 7); 48 Cookies.set('STYXKEY_notice', 'true', { expires: 7, path: '/', secure: true }); 49 }); 50 51 /* 52 // --- 53 // And some generic cookie logic 54 // --- 55 function createCookie(name,value,days) { 56 if (days) { 57 var date = new Date(); 58 date.setTime(date.getTime()+(days*24*60*60*1000)); 59 var expires = "; expires="+date.toGMTString(); 60 } 61 else var expires = ""; 62 document.cookie = name+"="+value+expires+"; path=/;secure;"; 63 } 64 65 function readCookie(name) { 66 var nameEQ = name + "="; 67 var ca = document.cookie.split(';'); 68 for(var i=0;i < ca.length;i++) { 69 var c = ca[i]; 70 while (c.charAt(0)==' ') c = c.substring(1,c.length); 71 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); 72 } 73 return null; 74 } 75 76 function eraseCookie(name) { 77 createCookie(name,"",-1); 78 } 79 */ 80});
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.