1/** @format */ 2'use strict'; 3jQuery(function($) { 4 5 var uniqueCookieID = $('#callstrakt-unique-id').attr('data-id'); 6 var cookies = { 7 8 accept: function(exdays) { 9 var d = new Date(); 10 d.setTime(d.getTime() + (exdays*24*60*60*1000)); 11 var expires = "expires=" + d.toUTCString(); 12 document.cookie = uniqueCookieID + "=true; path=/;" + expires; 13 }, 14 15 get: function(cname) { 16 var name = cname + "="; 17 var decodedCookie = decodeURIComponent(document.cookie); 18 var ca = decodedCookie.split(';'); 19 20 for(var i = 0; i < ca.length; i++) { 21 var c = ca[i]; 22 23 while (c.charAt(0) == ' ') { 24 c = c.substring(1); 25 } 26 27 if (c.indexOf(name) == 0) { 28 return c.substring(name.length, c.length); 29 } 30 } 31 32 return ""; 33 } 34 }; 35 36 if (!cookies.get(uniqueCookieID)) { 37 $('#callstrakt-unique-id').show(); 38 } 39 40 $('#dismiss-' + uniqueCookieID).on('click', function(event) { 41 event.preventDefault(); 42 cookies.accept(60); 43 $(this).parents('#callstrakt-unique-id').remove(); 44 }); 45});
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.