1Notify = function(text, callback, close_callback, style) { 2 3 var time = '10000'; 4 var $container = $('#notifyinline'); 5 var icon = '<i class="fa fa-info-circle "></i>'; 6 7 if (typeof style == 'undefined' ) style = 'warning' 8 9 var html = $('<div class="alert alert-' + style + ' hide">' + icon + " " + text + '</div>'); 10 11 $('<a>',{ 12 text: 'Ã', 13 class: 'button close', 14 style: 'padding-left: 10px;', 15 href: '#', 16 click: function(e){ 17 e.preventDefault() 18 close_callback && close_callback() 19 remove_notice() 20 } 21 }).prependTo(html) 22 23 $container.prepend(html) 24 html.removeClass('hide').hide().fadeIn('slow') 25 26 function remove_notice() { 27 html.stop().fadeOut('slow').remove() 28 } 29 30 var timer = setInterval(remove_notice, time); 31 32 $(html).hover(function(){ 33 clearInterval(timer); 34 }, function(){ 35 timer = setInterval(remove_notice, time); 36 }); 37 38 html.on('click', function () { 39 clearInterval(timer) 40 callback && callback() 41 remove_notice() 42 }); 43 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.