1// Example of js-plugin; How to extend the Abou namespace 2;(function (window, document, Abou, $, undefined) { 3 4 // Custom namespace (plugin) 5 Abou.cookieinfo = (function () { 6 7 //Check if acceptcookie exists, then show it 8 var result = $.cookie("acceptcookies"); 9 if (result == null) { 10 $(".cookieInfo").show(); 11 } 12 13 var handleButtonClick = function (event) { 14 //set cookie, expires in 10 years days 15 $.cookie("acceptcookies", 1, { expires: 3650, path: '/' }); 16 $(".cookieInfo").hide(); 17 }; 18 19 // Public properties 20 return { 21 init: function () { 22 $(".cookieInfoButtonArea .acceptButton").click(handleButtonClick); 23 } 24 }; 25 }()); 26 27}(this, this.document, window.Abou = window.Abou || {}, jQuery));
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.