1$(function () { 2 //HELLOBAR CONTROL 3 $(window).on('load', function () { 4 var HelloKey = window.location.href; 5 6 $.post(BASE + "/_cdn/widgets/hellobar/hellobar.ajax.php", {url: HelloKey}, function (data) { 7 if (!data || !data.hello) { 8 return; 9 } 10 11 $("body").append(data.hello); 12 var $bar = $(".wc_hellobar").last(); 13 14 //EFFECT IN 15 setTimeout(function () { 16 $bar.addClass("wc_hellobar_show"); 17 }, 800); 18 19 //CLOSE 20 $bar.find(".wc_hellobar_close").on("click", function () { 21 wc_helloclose($bar); 22 }); 23 24 //TRACKING 25 $bar.find(".wc_hellobar_cta").on("click", function () { 26 var HellobarId = $(this).data("hello"); 27 wc_helloclose($bar); 28 $.post(BASE + "/_cdn/widgets/hellobar/hellobar.ajax.php", {action: 'track', hello: HellobarId}); 29 }); 30 }, 'json'); 31 }); 32}); 33 34//HELLO CLOSE 35function wc_helloclose($bar) { 36 $bar.removeClass("wc_hellobar_show"); 37 setTimeout(function () { 38 $bar.remove(); 39 }, 450); 40}
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.