1 2var ReciteMeTranslate = function () { 3 return { 4 init: function () { 5 $("font").addClass("notranslate"); 6 $(".material-icons, .material-icons-outlined") 7 .attr("data-recite-translate-skip", "true") 8 .addClass("notranslate"); 9 10 $(".btn-change-langauge").on("click", function (e) { 11 e.preventDefault(); 12 e.stopPropagation(); 13 var span = $(this).find("[data-translate]"); 14 if (span.length) { 15 _handleTranslation(span.data("translate")); 16 } 17 setTimeout(() => { 18 ReciteMeTranslate.setLang($(this).find("span.language").data("translate")); 19 }, 600); 20 }); 21 }, 22 setLang: function (lang) { 23 var url = new URL(window.location.href); 24 url.searchParams.set('lang', lang); 25 window.location.href = url.href; 26 }, 27 } 28}(); 29jQuery(document).ready(function () { 30 ReciteMeTranslate.init(); 31});
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.