< type="text/javascript" src="https://www.ttv.com.tw/include/js/mbr_init_utf8.js">
< type="text/javascript">
$(".ShowSearchBar2").click(function (e) {
event.preventDefault();
$('html, body').animate({ scrollTop: 0 }, 500);
TriggerSearchBar();
});
< type="text/javascript" src="https://netdna.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js">
< type="text/javascript" src="https://www.ttv.com.tw/include/js/colorbox-master/jquery.colorbox-min.js">
< type="text/javascript" src="https://www.ttv.com.tw/include/js/jquery.lazyload.min.20150421.js">
< type="text/javascript" src="https://code.jquery.com/ui/1.11.2/jquery-ui.js">
< type="text/javascript" src="https://www.ttv.com.tw/include/js/jquery.ui.datepicker-zh-TW.js">
< type="text/javascript">
/*$("#nav-content-gen [id^='dd_']").clone().prependTo("#nav-content-1");
$("#nav-content-gen [id^='dd_']").clone().appendTo("#nav-content-2");*/
$("#nav-content-1 [id^='dd_']").clone().appendTo("#nav-content-2");
< async src="https://img.scupio.com/js/ad.js">
< async src="https://www.googletagmanager.com/gtag/js?id=UA-99803-1">
▲TOP▲
< type="text/javascript">
var smContainer=750;
var mdContainer=970;
var lgContainer=1170;
var JTRInfoID=0;
var qty = 12;
$(document).ready(function () {
$("#sidebar-wrapper").clone().insertBefore("#menu2_logo");
$("[id^='menu-toggle_']").click(function (e) {
/* $("#menu-toggle").click(function (e) { */
e.preventDefault();
$("#wrapper").toggleClass("toggled");
});
$("img.lazy").lazyload();
CheckPromMsgExist();
});
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
$(function () {
$("#BroadCastDate").datepicker({ minDate: -90, maxDate: "+0D" });
});
function CheckPromMsgExist() {
if ($("#PromMsg").height() == 0) $("#PromMsgContainer").hide();
}
function PageHit(pageid) {
$.ajax({
type: "GET",
crossDomain: true,
url: "/AD/PageHits.asp",
data: { PgID: pageid},
cache: false
});
}
function NewsClick(expbdate, repid, seqno) {
$.ajax({
type: "GET",
crossDomain: true,
url: "/ad/news/newsclick.asp",
data: { ExpBDate: expbdate, RepID: repid, SeqNo: seqno },
cache: false
});
}
function fblike() {
$.ajax({
type: "GET",
url: "/news/view/fblikecount.asp",
data: { i: "10901190009800I" },
cache: false,
error: function (xhr) {
// console.log(xhr);
},
success: function (response) {
// console.log('FB Like Request Success!!');
}
});
}
// 讀取外帶參數
var params = {};
if (location.search) {
var parts = location.search.substring(1).split('&');
for (var i = 0; i < parts.length; i++) {
var nv = parts[i].split('=');
if (!nv[0]) continue;
params[nv[0]] = nv[1] || true;
}
}
// Recommended Reading
var fromi = params.from;
if (fromi != null)
from = fromi.toString();
else {
var pes = location.pathname.split('/');
if (pes.length == 5 && pes[4] != '')
from = pes[4].toString();
else
from = '';
}
if (from >= '1') PageHit('11-' + from);
else PageHit('11');
NewsClick('1090119', '00098', '00');
// 使搜尋停頓,便於輸入
$('.dropdown-menu').find('#google_searchbox').click(function (e) {
e.stopPropagation();
});