1page.toggleAlert = function() 2{ 3 $('.alerte-underbar').show(); 4 5 if ($('.alerte-top').is(":visible")) { 6 $('.alerte-top').slideUp("slow", function() { 7 $('.alerte-top').hide(); 8 $('#lnkAlerte').text('Afficher l\'alerte'); 9 //$('header').animate({ height: "90px" }, 200, function(){ /* Once completed */ }); 10 }); 11 } else { 12 $('.alerte-top').slideDown("slow", function() { 13 $('.alerte-top').show(); 14 $('#lnkAlerte').text('Cacher l\'alerte'); 15 //$('header').animate({ height: "170px" }, 200, function(){ /* Once completed */ }); 16 }); 17 } 18}; 19 20page.showAlertIfNecessary = function(){ 21 if ($('#tdAlertContent').html().trim().length > 10) { 22 $('.navbar-fixed-top').removeClass("navbar-fixed-top"); 23 $('.carousel').css("margin-top", "0"); 24 if (page.isRootUrl()) { 25 page.toggleAlert(); 26 } else { 27 $('.alerte-underbar').show(); 28 } 29 } 30}; 31 32$(document).ready(function(){ 33 page.showAlertIfNecessary(); 34 $('.alerte-top').on('click', function(){ 35 page.toggleAlert(); 36 }); 37});
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.