1window.onload = function () { 2 $(window).scroll(function () { 3 if ($(this).scrollTop()) { 4 $('#back-to-top').fadeIn(); 5 6 } else { 7 $('#back-to-top').fadeOut(); 8 } 9 }); 10 $("#back-to-top").click(function () { 11 $("html, body").animate({scrollTop: 0}, 300); 12 }); 13 $(".button-mobile-menu").on('click', function (e) { 14 let status = $(".menu-mobile").css('display'); 15 if (status == "none") { 16 $(".line").addClass('active'); 17 } else { 18 $(".line").removeClass('active'); 19 } 20 $(".menu-mobile").slideToggle(); 21 }); 22 let right_height = $(".flow-right .bg-box").height(); 23 let frame_height = $(".inner-frame").height(); 24 $(".frame-game .grep-info").css({ 25 "max-height": right_height - frame_height - 32.5 + "px", 26 "overflow-y": "auto", 27 "overflow-x": "hidden" 28 }) 29} 30$("#expand").on('click', function () { 31 $("#_exit_full_screen").removeClass('hidden'); 32 $("#iframehtml5").addClass("force_full_screen"); 33 requestFullScreen(document.body); 34}); 35 36$("#_exit_full_screen").on('click', cancelFullScreen); 37 38function copyToClipboard(element) { 39 var $temp = $("<input>"); 40 $("body").append($temp); 41 $temp.val($(element).attr('href')).select(); 42 document.execCommand("copy"); 43 $temp.remove(); 44} 45function requestFullScreen(element) { 46 // Supports most browsers and their versions. 47 var requestMethod = element.requestFullScreen || element.webkitRequestFullScreen || element.mozRequestFullScreen || element.msRequestFullScreen; 48 49 if (requestMethod) { // Native full screen. 50 requestMethod.call(element); 51 } else if (typeof window.ActiveXObject !== "undefined") { // Older IE. 52 var wscript = new ActiveXObject("WScript.Shell"); 53 if (wscript !== null) { 54 wscript.SendKeys("{F11}"); 55 } 56 } 57} 58 59function cancelFullScreen() { 60 $("#_exit_full_screen").addClass('hidden'); 61 $("#iframehtml5").removeClass("force_full_screen"); 62 var requestMethod = document.cancelFullScreen || document.webkitCancelFullScreen || document.mozCancelFullScreen || document.exitFullScreenBtn; 63 if (requestMethod) { // cancel full screen. 64 requestMethod.call(document); 65 } else if (typeof window.ActiveXObject !== "undefined") { // Older IE. 66 var wscript = new ActiveXObject("WScript.Shell"); 67 if (wscript !== null) { 68 wscript.SendKeys("{F11}"); 69 } 70 } 71} 72 73if (document.addEventListener) { 74 document.addEventListener('webkitfullscreenchange', exitHandler, false); 75 document.addEventListener('mozfullscreenchange', exitHandler, false); 76 document.addEventListener('fullscreenchange', exitHandler, false); 77 document.addEventListener('MSFullscreenChange', exitHandler, false); 78} 79 80function exitHandler() { 81 if (document.webkitIsFullScreen === false 82 || document.mozFullScreen === false 83 || document.msFullscreenElement === false) { 84 cancelFullScreen(); 85 } 86}
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.