PageSourceSearch

https://www.nibico.com.tw/global/basic.js?v=2

js nibico.com.tw collected 2026-10-06 16:59:09 UTC 8,776 bytes, 6 lines download raw bytes

1
2
3
4var noHeader; if (location.search) { for (var params=[], strParams=location.search.substr(1).split("&"), i=0; i<strParams.length; i++) { var idx=strParams[i].indexOf("="), strParam=strParams[i].substring(0, idx); params.push(strParam), params[strParam]=strParams[i].substr(idx+1) } params.h&&(noHeader=params.h) } window!=top&&top.location.href.indexOf("welcome.aspx")<0&&(top.location.href=location.href); var personal, device={ id: "", root: "/", mobile: !1, mobileView: !1, phone: !1, session: !1 }, personalVersion=2; function keepAlive() { var e=new Image, i=new Date; e.src=device.root+"global/keepAlive.ashx?d="+i } function firstEnter() { deviceSet(), /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?device.mobileView=!0:device.mobileView=!1, personalSave() } function deviceSet() { /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(device.mobile=!0, /Tablet|iPad|iPod/i.test(navigator.userAgent)?device.phone=!1:device.phone=!0):device.mobile=!1 } function isIE() { var e=navigator.userAgent.toLowerCase(); return -1!=e.indexOf("msie")?parseInt(e.split("msie")[1]):20 } function changeMobileView() { deviceSet(), device.mobileView=!device.mobileView, personalSave(), document.location.reload(!0) } function personalSave() { var e={ version: personalVersion, mobile: device.mobile, mobileView: device.mobileView, phone: device.phone }; try { localStorage.setItem("personal", JSON.stringify(e)) } catch (e) { } } "/nibico/"==window.document.location.pathname.substring(0, 8)&&(device.root+="nibico/"), setInterval("keepAlive()", 9e5), null!=localStorage.getItem("personal")&&(personal=JSON.parse(localStorage.getItem("personal"))).version==personalVersion?(device.mobile=personal.mobile, device.mobileView=personal.mobileView, device.phone=personal.phone):firstEnter(), device.mobileView?(document.write("<meta name='viewport' content='width=device-width, user-scalable=no'/>"), document.write("<link rel='stylesheet' href='"+device.root+"global/basic_mobile.css' />")):document.write("<link rel='stylesheet' href='"+device.root+"global/basic_pc.css?v=1' />"), document.write("<script src='"+device.root+"global/jquery.json-2.4.min.js'><\/script>"), document.write("<link rel='apple-touch-icon' sizes='57x57' href='/apple-touch-icon-57x57.png'>"), document.write("<link rel='apple-touch-icon' sizes='60x60' href='/apple-touch-icon-60x60.png'>"), document.write("<link rel='apple-touch-icon' sizes='72x72' href='/apple-touch-icon-72x72.png'>"), document.write("<link rel='apple-touch-icon' sizes='76x76' href='/apple-touch-icon-76x76.png'>"), document.write("<link rel='apple-touch-icon' sizes='114x114' href='/apple-touch-icon-114x114.png'>"), document.write("<link rel='apple-touch-icon' sizes='120x120' href='/apple-touch-icon-120x120.png'>"), document.write("<link rel='apple-touch-icon' sizes='144x144' href='/apple-touch-icon-144x144.png'>"), document.write("<link rel='apple-touch-icon' sizes='152x152' href='/apple-touch-icon-152x152.png'>"), document.write("<link rel='icon' type='image/png' href='/android-chrome-192x192.png' sizes='192x192'>"), document.write("<link rel='icon' type='image/png' href='/favicon-96x96.png' sizes='96x96'>"), document.write("<meta name='apple-mobile-web-app-title' content='日比家族'>"), document.write("<meta name='application-name' content='日比家族'>"), document.write("<meta name='msapplication-TileImage' content='/mstile-144x144.png'>"), document.write("<link rel='pple-touch-icon' sizes='180x180' href='/apple-touch-icon.png'>"), document.write("<link rel='icon' type='image/png' sizes='32x32' href='/favicon-32x32.png'>"), document.write("<link rel='icon' type='image/png' sizes='16x16' href='/favicon-16x16.png'>"), document.write("<link rel='manifest' href='/site.webmanifest'>"), document.write("<link rel='mask-icon' href='/safari-pinned-tab.svg' color='#ff7100'>"), document.write("<meta name='msapplication-TileColor' content='#ff7100'>"), document.write("<meta name='theme-color' content='#ffffff'>"), document.write("<script async src='https://www.googletagmanager.com/gtag/js?i
4d=UA-89865511-1'><\/script>"), document.write("<script async src='https://www.googletagmanager.com/gtag/js?id=AW-11043246041'><\/script>"), $(document).ready(function () { var e, i, n, t, o, a; function c() { dataLayer.push(arguments) } device.id=$("html").data("id"), $.ajaxSetup({ cache: !0, beforeSend: function (e, i) { if (e.url=i.url, e.data=i.data, !noHeader&&-1==i.url.indexOf("getHeader")&&!device.session) return setTimeout(function () { $.ajax(i) }, 1), !1 }, error: function (e, i, n) { $.ajax({ url: device.root+"global/basic.aspx/ajaxError", data: $.toJSON({ url: e.url, msg: i+"-"+n+"-data-"+e.data }), success: function (e) { alert("錯誤發生: "+n) } }) }, timeout: 6e4, dataType: "json", contentType: "application/json; charset=utf-8", type: "POST" }), $("body").append("<div id='scrollup'></div>"), $(window).scroll(function () { 100<$(this).scrollTop()?$("#scrollup").fadeIn():$("#scrollup").fadeOut() }), $("#scrollup").click(function () { $("html, body").animate({ scrollTop: 0 }, 1e3) }), 0==$("header").length||noHeader||$.ajax({ url: device.root+"global/basic.aspx/getHeader", data: $.toJSON({ device: device }), success: function (e) { device.session=!0, $("header").append(e.d).find("li a[href*='"+device.id+"']").each(function () { for (var e=$(this).parent() ; "LI"==e.prop("nodeName") ;) e.children(0).css("color", "#f4811f"), e=e.parent().parent() }), $("a#logout").click(function () { $.ajax({ url: device.root+"global/basic.aspx/logout", data: $.toJSON({}), success: function (e) { document.location.reload(!0) } }) }), "index.html"!=device.id&&device.mobileView&&($("header").find("#nav_icon").click(function () { var e=$(this); e.find(".b1").toggleClass("b1-change"), e.find(".b2").toggleClass("b2-change"), $("#nav_container").css("height", $(document).height()).show(), $("#nav").slideDown(), $("#nav ul").click(function (e) { e.stopPropagation() }), $("header #nav_container #nav ul li").click(function () { var e=$(this); 0!=$("header #nav_container #nav ul ul").not(":hidden").length?"block"!=e.children("ul").css("display")&&$("header #nav_container #nav ul ul").not(":hidden").slideUp(500, function () { e.children("ul").slideDown() }):e.children("ul").slideDown() }) }), $("header").find("#nav_container").click(function () { $("header #nav_container #nav ul ul").not(":hidden").slideUp(), $("header").find("#nav").slideUp(500, function () { $("#nav_container").hide() }), $("#nav_icon .b1").toggleClass("b1-change"), $("#nav_icon .b2").toggleClass("b2-change") })) } }), 0==$("footer").length||noHeader||(a=device.mobileView?"<a href='javascript:changeMobileView();' ><img src='"+device.root+"global/images/basic_mobile_icon_pc.png' alt='' /> 電腦版</a>":"日比股份有限公司  |  台北市南港區南港路3段48號9樓  |  TEL:(02)2651-3689  |  FAX:(02)2652-2873 | <a href='javascript:changeMobileView();'>手機版</a>", $("footer").append(a)), noHeader&&$("header").css({ height: 0, padding: 0 }), window.dataLayer=window.dataLayer||[], c("js", new Date), c("config", "UA-89865511-1"), c("config", "AW-11043246041"), e=window, o=document, a="script", e.fbq||(i=e.fbq=function () { i.callMethod?i.callMethod.apply(i, arguments):i.queue.push(arguments) }, e._fbq||(e._fbq=i), (i.push=i).loaded=!0, i.version="2.0", i.queue=[], (t=o.createElement(a)).async=!0, t.src="https://connect.facebook.net/en_US/fbevents.js", (n=o.getElementsByTagName(a)[0]).parentNode.insertBefore(t, n)), fbq("init", "857249695565024"), fbq("track", "PageView"), function (e, i) { e._ltq=e._ltq||[], e._lt=e._lt||function () { e._ltq.push(arguments) }; var n="https:"===location.protocol?"https://d.line-scdn.net":"http://d.line-cdn.net", t=i.createElement("script"); t.async=1, t.src=n+"/n/line_tag/public/release/v1/lt.js", (i=i.getElementsByTagName("script")[0]).parentNode.insertBefore(t, i) }(window, document), _lt("init", { customerType: "lap", tagId: "63bf22fb-d4bf-4b89-ac4c-e958c48217b1" }), _lt("send", "pv", ["63bf22fb-d4bf-4b89-ac4c-e958c48217b1"]), window._tfa=window._tfa||[], window._tfa.push({ notify: "event", name: "page_view", id: 1793229 }), o=document.createElement("script"), a=document.getElementsByTagName("script")[0], t="tb_tfa_script", document.getElementById(t)||(o.async=1, o.src="//cdn.taboola.com/libtrc/unip/1793229/tfa.js", o.id=t, a.parentNode.insertBefore(o, a)), n=window, t=document, o="script", n[a="dataLayer"]=n[a]||[], n[a].push({ "gtm.start": (new Date).getTime(), event: "gtm.js" }
4), a=t.getElementsByTagName(o)[0], (o=t.createElement(o)).async=!0, o.src="https://www.googletagmanager.com/gtm.js?id=GTM-T58N5RCJ", a.parentNode.insertBefore(o, a) });
5
6

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.