1$(document).ready(function () { 2 $('.toast_cancel').click(function () { 3 $('.toast_msg').hide(); 4 }); 5 $('[data-toggle="tooltip"]').bttooltip(); // run tooltip 6}); 7//cookie set and get function 8function setCookie(name, value, Exp_minutes,path="path=/") { 9 var d = new Date(); 10 d.setTime(d.getTime() + (Exp_minutes*60*1000)); 11 var expires = "expires="+ d.toUTCString(); 12 document.cookie = name + "=" + value + ";" + expires + ";"+path; 13} 14//scroll focus change 15function result_focus(id){ 16 var elemOff = $("#"+id).offset().top; 17 elemOff = elemOff-100; 18 $("html, body").animate({ scrollTop: elemOff }, 500); 19} 20function selectText(id){ 21 window.getSelection().selectAllChildren( 22 document.getElementById(id) 23 ); 24} 25function setTooltip(ev,message) { 26 $(ev) 27 .attr('data-original-title', message) 28 .bttooltip('show'); 29} 30function hideTooltip(ev){ 31 setTimeout(function() { 32 $(ev).bttooltip('hide').attr('data-original-title', $(ev).attr('data-name')); 33 $(ev).bttooltip('hide').attr('data-original-title', $(ev).attr('data-nameAttr')); 34 }, 1000); 35} 36function br2nl(str) { 37 return str.replace(/<br\s*\/?>/mg,"\n"); 38} 39function remove_tags(html) { 40 html = html.replace(/<br>/g, "$br$"); 41 html = html.replace(/(?:\r\n|\r|\n)/g, '$br$'); 42 var tmp = document.createElement("DIV"); 43 tmp.innerHTML = html; 44 html = tmp.textContent || tmp.innerText; 45 html = html.replace(/\s+/g,' ').trim(); 46 html = html.replace(/\$br\$/g, "\n"); 47 return html; 48} 49// clear elements text, value and html with tooltip status 50function clear_elements(_array,ev,tool_tip){ 51 $.each(_array,function(key,value){ 52 $.each(value,function(nested_key,nested_value){ 53 if (key == 't') { 54 $('#'+nested_key).text(nested_value); 55 }else if(key == 'h'){ 56 $('#'+nested_key).html(nested_value); 57 }else if(key == 'v'){ 58 $('#'+nested_key).val(nested_value); 59 } 60 }); 61 }); 62 setTooltip(ev,tool_tip); 63 hideTooltip(ev); 64} 65//setup ajax header for 419 token 66$.ajaxSetup({ 67 headers: { 68 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') 69 } 70}); 71// light + dark theme function 72function theme_change_f(){ 73 if ( $('#dark_theme').length === 0 ) { 74 var dark_mode_text=$('#theme_mode_text').attr('data-dark'); 75 $('#theme_mode_text').text(dark_mode_text); 76 var theme_file=base_url+'/css/dark-theme.css'; 77 var link='<link id="dark_theme" rel="stylesheet" href="'+theme_file+'">'; 78 $('head').append(link); 79 $('body').attr('data-theme','dark'); 80 setCookie('check_theme','dark',60*24*360); 81 } else { 82 var light_mode_text=$('#theme_mode_text').attr('data-light'); 83 $('#theme_mode_text').text(light_mode_text); 84 setCookie('check_theme','dark',-0); 85 $('#dark_theme').remove(); 86 $('body').attr('data-theme','light'); 87 } 88} 89// show category dropdown function 90function show_all_tools(){ 91 $('.all_tools_area').toggleClass('d-none d-flex'); 92} 93//desktop search show 94var search_tools_array=new Array(); 95var get_all_tools= 1; 96$('#desktop_toggle_search').click(function(){ 97 $('.desk_search').slideToggle(); 98 $('.desk_search input').focus(); 99 if (get_all_tools == 1) { 100 var search_method=$('.blog_search').find('[name="search_type"]:checked').val(); 101 if(!search_method){ 102 search_method='tool'; 103 } 104 if(typeof blog_search_active != 'undefined'){ 105 search_method=blog_search_active; 106 } 107 $.post(base_url+'/search/', {blog:search_method}, function( data ){ 108 data=$.parseJSON(data); 109 search_tools_array[0]=data; 110 }); 111 get_all_tools=0; 112 } 113}); 114$('.blog_search [name="search_type"],#search_type1,#search_type2').change(function(){ 115 var search_method=$('.blog_search').find('[name="search_type"]:checked').val(); 116 if(!search_method){ 117 search_method='tool'; 118 } 119 if(typeof blog_search_active != 'undefined'){ 120 search_method=blog_search_active; 121 } 122 $.post(base_url+'/search/', {blog:search_method}, function( data ){ 123 data=$.parseJSON(data); 124 search_tools_array[0]=data; 125 }); 126});
127//dont hide some elemnt on spacific container 128$(document).click(function(e){ 129 var container = $("#desktop_toggle_search,.desk_search,.search_output,#navb,button.navbar-toggler"); 130 // mobile search cross icon click clear vaslue 131 var container2 = $(".mob_search_img"); 132 if (container2.is(e.target)){ 133 $('#mob_cros_icon').val(''); 134 $(".search_output").slideUp(); 135 $(".search_output .row").html(""); 136 return; 137 } 138 var container3 = $('.all_tools_area,[onclick="show_all_tools()"]'); 139 if (!container3.is(e.target)){ 140 $('.all_tools_area').addClass('d-none'); 141 $('.all_tools_area').removeClass('d-flex'); 142 return; 143 } 144 if(!$(e.target).is('roshu')){ 145 if (!container.is(e.target) && container.has(e.target).length === 0){ 146 $('.desk_search').hide(); 147 $('.desk_search input').val(''); 148 $('.search_output .row').html(''); 149 $('.search_output,#desk_search').slideUp(); 150 $('#navb').removeClass('show'); 151 $('button.navbar-toggler').addClass('collapsed'); 152 return; 153 } 154 } 155}); 156//search result starts here 157$('[name="search_type"]').change(function(){ 158 setTimeout(function(){ 159 $('.search_inp').trigger('keyup'); 160 },500); 161}); 162$('#mob_checked [name="search_type"]').change(function(){ 163 setTimeout(function(){ 164 $('.mob_search_inp').trigger('keyup'); 165 },500); 166}); 167$('.search_inp,.mob_search_inp').keyup(function(){ 168 if (get_all_tools == 1) { 169 var search_method=$('.blog_search').find('[name="search_type"]:checked').val(); 170 if(!search_method){ 171 search_method='tool'; 172 } 173 if(typeof blog_search_active != 'undefined'){ 174 search_method=blog_search_active; 175 } 176 $.post(base_url+'/search/', {blog:search_method}, function( data ){ 177 data=$.parseJSON(data); 178 search_tools_array[0]=data; 179 }); 180 get_all_tools=0; 181 } 182 var get_match = 0; 183 // var search_method=$(this).parent().find('[name="search_type"]:checked').val(); 184 var search_method=$(this).parent().parent().find('[name="search_type"]:checked').val(); 185 if(!search_method){ 186 search_method='tool'; 187 } 188 var v=$(this).val(); 189 var search_type='d'; 190 if($(this).hasClass('mob_search_inp')){ 191 search_type='m'; 192 } 193 $(".search_output .row,.sidebar_search_output .popular_tools").html(""); 194 if (v.length > 1){ 195 var search_counter_for_last = 0; 196 if(typeof blog_search_active != 'undefined'){ 197 search_method=blog_search_active; 198 } 199 $.each(search_tools_array[0], function(i, item){ 200 ++search_counter_for_last; 201 if(get_match > 6){ 202 return false; 203 } 204 205 if(search_method == 'blog'){ 206 var res=item.p_title.toLowerCase(); 207 if(res.match(v.toLowerCase())){ 208 ++get_match; 209 var ad_profile_info=JSON.parse(item.ad_profile_info); 210 var admin_name=ad_profile_info.display_name; 211 var admin_pic=ad_profile_info.profile_pic; 212 var match=res.replace(new RegExp(v, "ig"),'<b>'+v.toLowerCase()+'</b>'); 213 if(search_type == 'd'){ 214 $(".search_output .row").append('<div class="col-md-12 py-2"><img src="https://cdn.smallseotools.com/admin-images/'+admin_pic+'" alt="'+admin_name+'" class="img-fluid aurthor_img"><a href="'+base_url+'blog/'+item.p_link+'" class="icon_sty px-1">'+match+'</a></div>'); 215 }else{ 216 $(".mob_search .search_output .row").append('<div class="col-md-12 py-2 d-flex"><img src="https://cdn.smallseotools.com/admin-images/'+admin_pic+'" alt="'+admin_name+'" class="img-fluid aurthor_img"><a href="'+base_url+'blog/'+item.p_link+'" class="icon_sty px-1">'+match+'</a></div>'); 217 } 218 } 219 }else{ 220 if(typeof item.t_front_heading != 'object'){ 221 var res=item.t_front_heading.toLowerCase(); 222 if(res.match(v.toLowerCase())){ 223 ++get_match; 224 var match=res.replace(new RegExp(v, "ig"),'<b>'+v.toLowerCase()+'</b>'); 225 if(search_type == 'd'){ 226 $(".sidebar_search_output .popular_tools,.search_output .row").append(`<div class="col p-0"> 227 <a href="${item.t_url}" class="d-inline-block p-2">${match}</a> 228 </div>`); 229 }else{ 230 $(".mob_search .search_output .row").append('<div class="col-md-12 py-2"><a href="'+item.t_url+'" class="icon_sty px-1"><div class="reverse_img d-none"></div>'+match+'</a></div>'); 231 } 232 } 233 } 234 } 235 }); 236 if(get_match < 1){ 237 if(search_type == 'd'){ 238 $(".sidebar_search_output .popular_tools").append('<div class="col-md-12 py-2 clr_fff" id="no_search_found">No result found related to your keyword..</div>'); 239 }else{ 240 $(".search_output .row").append('<div class="col-md-12 py-2 clr_fff" id="no_search_found">No result found related to your keyword..</div>'); 241 } 242 } 243 $(".search_output").slideDown(); 244 }else{ 245 $(".search_output").hide(); 246 } 247}); 248$('.cross_icon_desktop').click(function(){ 249 $('.desk_search .search_inp').val(''); 250 $(".search_output").hide(); 251 $(".search_output .row").html(""); 252}); 253//search result end here 254// Show and hide Loader 255function showLoader(status){ 256 if(status){ 257 $("#loader_con").removeClass('d-none'); 258 }else{ 259 $("#loader_con").addClass('d-none'); 260 } 261} 262 263//stop form submission on enter 264$('form input').keydown(function (e) { 265 if($('form [data-callback]').length == 0){ 266 if (e.keyCode == 13) { 267 e.preventDefault(); 268 return false;
269 } 270 }else{ 271 if (e.keyCode == 13) { 272 e.preventDefault(); 273 $('form [data-callback]').trigger('click'); 274 } 275 } 276}); 277// mobile all tools show and hide 278$('.alltools_area .mob_alltools').click(function(){ 279 $(this).toggleClass('active'); 280 $('.alltools_area .cus_scrollbar').toggleClass('d-none'); 281}) 282// mobile all Languages show and hide 283$('.mob_lang_area .mob_languages').click(function(){ 284 $(this).find('.mob_languages2').toggleClass('active'); 285 $('.mob_lang_link').toggleClass('d-none'); 286}) 287// feeback captcha load on click 288$("#feeback-icon").on('click', function(){ 289 if($('#rating_captcha_html').length == 0){ 290 var rating_captcha_html = "<script id='rating_captcha_html' src='https://www.google.com/recaptcha/api.js'><\/script>"; 291 $("head").append(rating_captcha_html); 292 } 293 $("#feedbackModal").modal('show'); 294}) 295// admin panel show message info 296function toast_progress(type, msg) { 297 $('.toast_msg').css('display', 'flex'); 298 $('.toast_msg').removeClass('red'); 299 $('.toast_msg').removeClass('green'); 300 if (type == 'error') { 301 $('.toast_msg').addClass('red'); 302 } else if (type == 'success') { 303 $('.toast_msg').addClass('green'); 304 } 305 $('.toast_admin_msg').text(msg); 306 var timerId, percent; 307 percent = 0; 308 timerId = setInterval(function () { 309 percent += 3; 310 $('.toast_progress_bar').css('width', percent + '%'); 311 if (percent >= 100) { 312 clearInterval(timerId); 313 $('.toast_msg').hide(); 314 } 315 }, 200); 316} 317// print error messages 318function show_messages(type, msg) { 319 if(type == 'hide'){ 320 $('#messages_co').html(''); 321 $('#messages_co').hide(); 322 }else{ 323 $('#messages_co').show(); 324 var toast_html = '<div class="toast_msg rounded fixed-top alert-dismissible ' + type.toLowerCase() + '_msg alert p-0">' + 325 '<div class="toast_progress_bar"></div>' + 326 '<button type="button" class="close px-1 py-0" data-dismiss="alert">×</button>' + 327 '<div class="d-flex align-items-center py-2">' + 328 '<img src="'+base_url+'/webimages/' + type.toLowerCase() + '_msg.svg" alt="" class="img-fluid mx-3">' + 329 '<div>' + 330 '<div class="fw_600 fs14 pr-4">' + msg + '</div>' + 331 '</div>' + 332 '</div>' + 333 '</div>'; 334 $('#messages_co').html(toast_html); 335 var percent = 0; 336 if(typeof messages_co_timer != 'undefined'){ 337 clearInterval(messages_co_timer); 338 } 339 messages_co_timer = setInterval(function () { 340 percent += 5; 341 if (percent >= 100) { 342 clearInterval(messages_co_timer); 343 percent=0; 344 $('#messages_co').hide(); 345 } 346 }, 400); 347 } 348} 349// lazy load all images 350window.LAZY={ 351 name:'', 352 type:'', 353 class:'', 354 id:'', 355 title:'', 356 alt:'', 357 width:'', 358 height:'', 359 element:'', 360 fullpath:'false', 361 viewport:function(){ 362 var elementTop = $(LAZY.element).offset().top; 363 var elementBottom = elementTop + $(LAZY.element).outerHeight(); 364 var viewportTop = $(window).scrollTop(); 365 var viewportBottom = viewportTop + $(window).height(); 366 return elementBottom > viewportTop && elementTop < viewportBottom; 367 }, 368 run:function(element){ 369 //RK-Lazy 370 elements=$('['+element+']'); 371 for (var i =0; i < elements.length; i++) { 372 LAZY.element=elements[i]; 373 if(LAZY.viewport()){ 374 var settings=JSON.parse($(LAZY.element).attr(element)); 375 LAZY.setVariable(settings); 376 if(LAZY.isimage()){ 377 LAZY.addImageTag(); 378 }else{ 379 LAZY.addImageBackground(element); 380 } 381 } 382 } 383 }, 384 setVariable:function(variable){ 385 LAZY.name = "undefined" == typeof variable.name ? '' : variable.name; 386 LAZY.type = "undefined" == typeof variable.type ? '' : variable.type; 387 LAZY.class = "undefined" == typeof variable.class ? '' : variable.class;
388 LAZY.id = "undefined" == typeof variable.id ? '' : variable.id; 389 LAZY.title = "undefined" == typeof variable.title ? '' : variable.title; 390 LAZY.alt = "undefined" == typeof variable.alt ? '' : variable.alt; 391 LAZY.width = "undefined" == typeof variable.width ? '' : variable.width; 392 LAZY.height = "undefined" == typeof variable.height ? '' : variable.height; 393 LAZY.fullpath = "undefined" == typeof variable.fullpath ? '' : variable.fullpath; 394 }, 395 isimage:function(){ 396 if(LAZY.type == 'img'){ 397 return true; 398 }else{ 399 return false; 400 } 401 }, 402 addImageTag:function(){ 403 if(LAZY.fullpath == 'false'){ 404 path=base_url+'/webimages/'+LAZY.name; 405 }else{ 406 path=LAZY.fullpath; 407 } 408 var attribute_style=''; 409 if(LAZY.width != ''){ 410 attribute_style+=' width="'+LAZY.width+'"'; 411 } 412 if(LAZY.height != ''){ 413 attribute_style+=' height="'+LAZY.height+'"'; 414 } 415 if(LAZY.class != ''){ 416 attribute_style+=' class="'+LAZY.class+'"'; 417 } 418 if(LAZY.id != ''){ 419 attribute_style+=' id="'+LAZY.id+'"'; 420 } 421 if(LAZY.title != ''){ 422 attribute_style+=' title="'+LAZY.title+'"'; 423 } 424 if(LAZY.alt != ''){ 425 attribute_style+=' alt="'+LAZY.alt+'"'; 426 } 427 render='<img src="'+path+'"'+attribute_style+'>'; 428 $(LAZY.element).after(render); 429 $(LAZY.element).remove(); 430 }, 431 addImageBackground:function(element){ 432 $(LAZY.element).addClass(LAZY.name); 433 $(LAZY.element).removeAttr(element); 434 }, 435} 436LAZY.run('RK-Lazy'); 437LAZY.run('data-rklazy'); 438$(window).on('resize scroll', function(){ 439 LAZY.run('RK-Lazy'); 440 LAZY.run('data-rklazy'); 441}); 442window.FITS ={ 443 img:base_url+'/over.png', 444 css:'', 445 anchor:'https://www.grammarly.com/?q=grammar&utm_source=placement&utm_medium=cpc&utm_content=sst_Popup2&utm_term=smallseotools', 446 anchorAttr:{}, 447 imgAttr:{}, 448 cookie:'', 449 expireDays:1, 450 cookieValue:'FITS', 451 width:'800px', 452 setVariable:function(variable){ 453 this.anchor = "undefined" == typeof variable.anchor ? this.anchor : variable.anchor; 454 this.anchorAttr = "undefined" == typeof variable.anchorAttr ? '' : variable.anchorAttr; 455 this.img = "undefined" == typeof variable.img ? this.img : variable.img; 456 this.css = "undefined" == typeof variable.css ? this.css : variable.css; 457 this.cookie = "undefined" == typeof variable.cookie ? this.cookie :'FITS-'+variable.cookie; 458 this.expireDays = "undefined" == typeof variable.expireDays ? this.expireDays : variable.expireDays; 459 this.cookieValue = "undefined" == typeof variable.cookieValue ? this.cookieValue : variable.cookieValue; 460 this.width = "undefined" == typeof variable.width ? this.width : variable.width; 461 }, 462 banner_css:function(e){ 463 var css_style = document.createTextNode("#FITS_con{position:fixed;top:0;z-index:10001;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:#acacac3d;}#FITS_conInner{position:relative}#FITS_close{position:absolute;right:2px;top:3px;;width:20px;line-height:20px;color:#fff;font-size:12px;font-weight:bold;text-align:center;border-radius:50%;background-color:#5c5c5c;cursor:pointer;}#FITS_banner img{max-width:"+this.width+";max-height:100vh;height:auto;}"+this.css), 464 creat_tag = document.createElement("style"); 465 creat_tag.type = "text/css",creat_tag.appendChild(css_style), document.getElementsByTagName("head")[0].appendChild(creat_tag); 466 }, 467 loadImg_first:function(e){ 468 var c = this.getcookie(e); 469 if(!c){ 470 var imgload = new Image(); 471 imgload.src = this.img; 472 var att = document.createAttribute("usemap"); 473 att.value = "#FITS_Map"; 474 imgload.setAttributeNode(att); 475 imgload.onload = function(){ 476 FITS.img=imgload; 477 FITS.ready(e); 478 }; 479 } 480 }, 481 ready:function(e){
482 // make anchor tag 483 this.anchorAttr = Object.assign(this.anchorAttr,{'href':this.anchor,id:'FITS_banner',target:'_blank'}); 484 if(this.anchorAttr.title =='Semrush'){ 485 $('#FITS_Map area').removeAttr('title'); 486 } 487 var make_anchor = document.createElement("a"); 488 this.setAttributes(make_anchor,this.anchorAttr); 489 // make close button 490 var makeCloseBtn=document.createElement("div"); 491 makeCloseBtn.id='FITS_close'; 492 makeCloseBtn.appendChild(document.createTextNode("X")); 493 make_anchor.appendChild(this.img); 494 var make_inner_parent=document.createElement("div"); 495 make_inner_parent.id='FITS_conInner'; 496 make_inner_parent.appendChild(makeCloseBtn); 497 make_inner_parent.appendChild(make_anchor); 498 var make_parent=document.createElement("div"); 499 make_parent.id='FITS_con'; 500 make_parent.appendChild(make_inner_parent); 501 document.getElementsByTagName("body")[0].appendChild(make_parent); 502 makeCloseBtn.addEventListener("click", function(e){e.preventDefault();FITS.FITSHIDE(make_parent)}); 503 this.addEvent(window, "resize", function() { 504 // FITS.resize(FITS.anchor) 505 }) 506 this.setcookie(e); 507 }, 508 getcookie:function(e){ 509 var nameEQ = this.cookie + "="; 510 var ca = document.cookie.split(';'); 511 for(var i=0;i < ca.length;i++) { 512 var c = ca[i]; 513 while (c.charAt(0)==' ') c = c.substring(1,c.length); 514 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); 515 } 516 return null; 517 }, 518 setcookie:function(e){ 519 var expires = ""; 520 if (this.expireDays) { 521 var date = new Date(); 522 date.setTime(date.getTime() + (this.expireDays*24*60*60*1000)); 523 // date.setTime(date.getTime() + (1*60*1000)); 524 expires = "; expires=" + date.toUTCString(); 525 } 526 document.cookie = this.cookie + "=" + this.cookieValue + expires + "; path=/"; 527 }, 528 FITSHIDE:function(e){ 529 $(e).remove(); 530 }, 531 setAttributes:function(elem,obj){ 532 for (var prop in obj) { 533 elem.setAttribute(prop,obj[prop]); 534 } 535 }, 536 addEvent: function(e, t, i) { 537 e.addEventListener ? e.addEventListener(t, i, !1) : e.attachEvent && e.attachEvent("on" + t, i) 538 }, 539 Config:function(config){ 540 document.querySelector("body").addEventListener("mouseleave", function(e){ 541 if($('.fc-consent-root').length == 0){ 542 e = e ? e : window.event; 543 var t = Math.max(document.documentElement.clientWidth, window.innerWidth || 0); 544 if (!(e.clientX >= t - 50 || e.clientY >= 50)){ 545 FITS.setVariable(config),FITS.loadImg_first(config),FITS.banner_css(config); 546 } 547 } 548 }); 549 }, 550} 551$("#FITS_Map area").click(function(e){ 552 e.preventDefault(); 553 $("#FITS_close").click(); 554}); 555function FileDownload(url, fileName,LoaderText){ 556 var xhr = new XMLHttpRequest(); 557 xhr.open("GET", url, true); 558 xhr.responseType = "blob"; 559 xhr.onload = function(){ 560 var urlCreator = window.URL || window.webkitURL; 561 var imageUrl = urlCreator.createObjectURL(this.response); 562 var tag = document.createElement('a'); 563 tag.href = imageUrl; 564 tag.download = fileName; 565 document.body.appendChild(tag); 566 tag.click(); 567 document.body.removeChild(tag); 568 }; 569 xhr.onprogress = function(pr) { //update downloading progressbar 570 var percentage = Math.ceil(pr.loaded/pr.total*100); 571 sst_loader(LoaderText+percentage+'%',true); 572 // $("#down_statusbar").html(`Downloaded: ${bytesToSize(pr.loaded)}/${bytesToSize(pr.total)}`); 573 }; 574 xhr.send(); 575} 576function sst_loader(text,type){ 577 if(type){ 578 $('#loader_con11 p').text(text); 579 $('#loader_con11').removeClass('d-none'); 580 }else{ 581 $('#loader_con11').addClass('d-none'); 582 } 583} 584function new_error_message(selector,type,message){ 585 type=type.toLowerCase(); 586 if(type == 'hide'){ 587 $(selector).html(''); 588 $(selector).hide(); 589 }else if(type == 'error'){ 590 $(selector).show(); 591 var toast_html = '<div id="error_message_" class="alert alert-danger alert-dismissible fade show text-left d-flex" role="alert">'+ 592 '<strong class="mr-1 d-inline-block">Error!</strong>'+message + 593 '<button type="button" class="close" data-dismiss="alert" aria-label="Close">
593'+ 594 '<span aria-hidden="true">×</span>'+ 595 '</button>'+ 596 '</div>'; 597 $('#error_message_').remove(''); 598 $(toast_html).insertBefore(selector); 599 result_focus('error_message_'); 600 }else if(type == 'success'){ 601 $(selector).show(); 602 var toast_html = '<div id="error_message_" class="alert alert-success alert-dismissible fade show text-left d-flex" role="alert">'+ 603 '<strong class="mr-1 d-inline-block">Success!</strong>'+message + 604 '<button type="button" class="close" data-dismiss="alert" aria-label="Close">'+ 605 '<span aria-hidden="true">×</span>'+ 606 '</button>'+ 607 '</div>'; 608 $('#error_message_').remove(''); 609 $(toast_html).insertBefore(selector); 610 result_focus('error_message_'); 611 } 612}
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.