1$.ajaxSetup({ 2 headers: { 3 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') 4 } 5}); 6function searching(){ 7 var value = $("#search-input-item").val(); 8 if(!value){ 9 $("#search-input-item").focus(); 10 return false; 11 } 12 var action = $("#searForm").prop("action"); 13 if (typeof(action) == "undefined") 14 { 15 action = $("#searForm").attr("action"); 16 } 17 value = value.replace(" ","-"); 18 value = value.replace(" ","-"); 19 value = value.replace(":",""); 20 value = value.replace(",",""); 21 value = value.replace("---","-"); 22 value = value.replace("--","-"); 23 24 var jump_url = action+"/"+value; 25 26 var a = document.createElement("a"); 27 a.href = jump_url; 28 a.click(); 29 return false; 30} 31 32function showGameBox() { 33 var a = $("#loader_container").is(":visible"); 34 return a ? !1 : ($("html,body").animate({ 35 scrollTop: "240px" 36 }, 800), $("#loader_container").hide(), $("#gameDiv").css({ 37 visibility: "visible", 38 display: "block", 39 height: "100%" 40 }), void 0) 41} 42 43function ReplayGame() { 44 var iframe = $("#gameframe"); 45 iframe.attr("src", iframe.attr("src")); 46} 47 48// function GameFullscreen() { 49// var b, c, d, e, f, g, h, i, j,k; 50// $(".game-box").html(), 51// b = $("#game-col").parent(), 52// c = $(window).height(), 53// c = $(window).height() + $(window).scrollTop(), 54// d = '<div id="Boxshadow" style="height:' + c + 'px;"><div id="Close" onclick="CloseFullscreen();return false;">Close</div></div>', 55// e = $(".game-box"), f = $("#gameDiv"), g = f.offset().width, h = f.offset().height, i = 1.2 * (g / h), 56// j = { 57// height: c - 50, 58// width: c + 300+200, 59// position: "fixed", 60// "z-index": 1112, 61// top: "50%", 62// left: "50%", 63// "margin-left": -((c + 295+200) / 2), 64// "margin-top": -((c - 50) / 2) 65// }, e.css(j), b.append(d); 66// } 67 68function GameFullscreen() { 69 var b, c, d, e, f, g, h, i, j, k; 70 71 $(".game-box").html(); 72 73 b = $("#game-col").parent(); 74 c = $(window).height(); 75 c = $(window).height() + $(window).scrollTop(); 76 77 d = '<div id="Boxshadow" style="height:' + c + 'px;"><div id="Close" onclick="CloseFullscreen();return false;">Close</div></div>'; 78 79 e = $(".game-box"); 80 f = $("#gameDiv"); 81 g = f.offset().width; 82 h = f.offset().height; 83 i = 1.2 * (g / h); 84 85 var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); 86 87 if (isMobile) { 88 j = { 89 height: "82vh", 90 width: "100vw", 91 position: "fixed", 92 "z-index": 1112, 93 top: "42px", 94 left: 0, 95 "margin-left": 0, 96 "margin-top": 0 97 }; 98 } else { 99 j = { 100 height: c - 50, 101 width: c + 500, 102 position: "fixed", 103 "z-index": 1112, 104 top: "50%", 105 left: "50%", 106 "margin-left": -((c + 500) / 2), 107 "margin-top": -((c - 50) / 2) 108 }; 109 } 110 111 e.css(j); 112 b.append(d); 113} 114 115function CloseFullscreen() { 116 $('#header').css('z-index', '9999'); 117 var a = $("#gameDiv"), 118 b = a.offset().width, 119 c = a.offset().height; 120 $("#Boxshadow").remove(), $("#Close").remove(), FullScreen = !1, $(".go-game").show(), $(".game-box").attr("style", "").css({ 121 width: b, 122 height: c, 123 "text-align": "center" 124 }) 125} 126$(document).ready(function() { 127 $('.gamePlay-button, #gamePlay-content').click(function(e) { 128 $("#gamePlay-content").hide(); 129 $(".game-ready").hide(); 130 // $("#game-preloading").show(); 131 }); 132 133 $(".close-menu").click(function(){ 134 $(".nav-menu").hide(); 135 }); 136 $(".burger-btn").click(function(){ 137 $(".nav-menu").show(); 138 }); 139 $(".search-btn").click(function(){ 140 $('.form-container').show(); 141 }); 142 143 $(document).on('click', '.header_142699 .dropdown-btn', function(e){ 144 e.preventDefault(); 145 e.stopPropagation(); 146 var $container = $(this).closest('.dropdown-container'); 147 var isOpen = $container.hasClass('is-open'); 148 $('.header_142699 .dropdown-container').removeClass('is-open').find('.dropdown-btn').attr('aria-expanded', 'false'); 149 if (!isOpen) { 150 $container.addClass('is-open'); 151 $(this).attr('aria-expanded', 'true'); 152 } 153 }); 154 $(document).on('click', function(){ 155 $('.header_142699 .dropdown-container').removeClass('is-open').find('.dropdown-btn').attr('aria-expanded', 'false'); 156 }); 157 $(document).on('click', '.header_142699 .dropdown-list', function(e){ 158 e.stopPropagation(); 159 }); 160 161 var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); 162 163 if (!isMobile) { 164 // è·å头é¨çåå§ä½ç½® 165 var header = $('.header_142699'); 166 167 if (header) { 168 var headerOffsetTop = 360; 169 $(window).scroll(function () { 170 // æ£æ¥æ»å¨ä½ç½® 171 if ($(window).scrollTop() > headerOffsetTop) { 172 // 妿页颿»å¨è¶ è¿å¤´é¨çåå§ä½ç½®ï¼æ·»å æµ®å¨æ ·å¼ 173 header.addClass('fixed'); 174 } else { 175 // 妿åå°é¡¶é¨ï¼ç§»é¤æµ®å¨æ ·å¼ 176 header.removeClass('fixed'); 177 } 178 }); 179 } 180 } 181 182});
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.