Skip to content
BY Hollymd.com
BY Sahara Vow
BY Sahara Vow
BY Steve Calechman
BY Steve Calechman
BY Sahara Vow
";
}
function adGoogle(isReplace) {
var html = '';
if (true) {
if (isMobile) {
html = "googletag.cmd.push(function() { googletag.defineSlot('/70071061/yl-xk/336*280-01-wap', [336, 280], 'div-gpt-ad-1538124262845-0').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); });googletag.cmd.push(function() { googletag.display('div-gpt-ad-1538124262845-0'); });
";
} else {
html = "googletag.cmd.push(function() { googletag.defineSlot('/70071061/yl-xk/728*90-01-pc', [728, 90], 'div-gpt-ad-1538124592869-0').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.display('div-gpt-ad-1538124592869-0'); });
";
}
var html2 = replaceAll2(html, "script2", "script");
//_pf_log("adGoogle, html=" + html2);
if ($('.post.excerpt').length > 0) {
_pf_event('adx-impl', 'impl', 'search');
_pf_log("ga adx-impl search");
$('.post.excerpt').first().before(html2);
}
}
if (true) {
if (isMobile) {
//html = "" + getGoogleADCode('htq_search_wap_02', 336, 280, '7964996688') + "
";
html = "" + getAdxCode('/70071061/yl-xk/336x280-07-wap-n-xk-yl', 336, 280, 'div-gpt-ad-1542956155319-0') + "
";
} else {
html = "" + getGoogleADCode('htq_search_pc_02', 728, 90, '5589566044') + "
";
}
var html2 = replaceAll2(html, "script2", "script");
//_pf_log("adGoogle, html=" + html2);
if ($('.post.excerpt').length > 0) {
_pf_log("ga adsense search");
$('.post.excerpt').first().before(html2);
}
}
}
function loadPEWidgets() {
var iframeHtml = '';
//iframeHtml += '';
iframeHtml += '';
//iframeHtml += '';
if ($('#site-footer').length > 0) {
$('#site-footer').after(iframeHtml);
}
}
function initUI() {
var formInputStr = '';
var html = '';
if ($("#pf-search-button").length > 0) {
$("#pf-search-button").after(html);
$("#pf-search-button").remove();
}
adGoogle();
loadPEWidgets();
}
$(document).ready(function(){
initUI();
});
// check count of posts
$(document).on("click", ".post.excerpt .readMore a", function(event) {
try {
var index = $(this).attr('index');
if (index > 12) {
index = 12;
}
_pf_log("post read-more click, index=" + index);
var gaEventCategory = 'post-readmore-click-' + index;
onPostClicked(gaEventCategory, event.target);
} catch(err) {
}
});
$(document).on("click", ".post.excerpt .title a", function(event) {
try {
var index = $(this).attr('index');
if (index > 12) {
index = 12;
}
_pf_log("post title click, index=" + index);
var gaEventCategory = 'post-title-click-' + index;
onPostClicked(gaEventCategory, event.target);
} catch(err) {
}
});
$(window).resize(function(){
_pf_log('window resize');
});
$(window).on("orientationchange", function() {
_pf_log('window orientationchange');
});
});
})();