食、玩、住盡在百萬葵園 – 晴報 Sky Post

Home » ホビー » 食、玩、住盡在百萬葵園 – 晴報 Sky Post
ホビー, 食玩 コメントはまだありません



食、玩、住盡在百萬葵園

‘+
caption
);
}
if(content.indexOf(“hket:youtube id”) != -1){
//$(this).attr(“class”,”video-container inline_image_video”);
$(this).attr(“class”,”inline_image_video”);
//console.log(“load youtube”);
if(false == false) {
content = content.substr(content.indexOf(“id=”)+4,content.length);
var afterStr = content.split(“{{/hket:youtube}}”)[1];
content = content.substr(0,content.indexOf(“}”)-1);
$(this).attr(“id”,content);
$(this).addClass(“lazy-youtube”);
$(this).html(“loading…”);
$(this).html(““);
$(this).after(afterStr);
}else {
$(this).html(“”);
}
}
});
$.each($(“.article-details__body”).find(“blockquote”),function(){
var content = $(this).html();
if(content.split(“”).length-1 == 1) {
content = content.substr(content.indexOf(“

“)+3,content.length);
content = content.substr(0,content.indexOf(“

“));
}
$(this).empty();
$(this).append(” + content + ”);
$(this).wrap(”);
});
$(“.photoswipe-img”).each(function() {
var $this = $(this), tagName = this.tagName && this.tagName.toLowerCase();
if (tagName === “picture”) {
var preference = isMobile ? [/_600\.\w+$/, /_1024\.\w+$/] : [/_1024\.\w+$/, /_600\.\w+$/], sources = [], src;
$this.find(“source”).each(function() {
var $self = $(this);
sources.push($self.attr(“srcset”) || $self.attr(“data-srcset”));
});
outer: for (var i = 0; i 0){
c_start=document.cookie.indexOf(c_name + “=”)
if (c_start!=-1){
c_start=c_start + c_name.length+1
c_end=document.cookie.indexOf(“;”,c_start)
if (c_end==-1) c_end=document.cookie.length
return unescape(document.cookie.substring(c_start,c_end))
}
}
return “”
}
document.getElementsByClassName(“skypost-icon-font-lg”)[0].onclick =
function myFunction() {
var fontSize = parseInt(getCookie(“article-details__body_font-size”));
if(fontSize14){
fontSize = fontSize – 1;
setCookie(“article-details__body_font-size”,fontSize);
$(“.article-details__body”).find(“p”).css({“font-size”:fontSize});
}
//console.log(fontSize);
}
var isMobile = navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i);
var gallery = null, items = [], index = 0;
function openPhotoSwipe(index) {
gallery && gallery.close();
gallery = new PhotoSwipe($(“.pswp”)[0], PhotoSwipeUI_Default, items, {
bgOpacity: 0.8,
index: index | 0,
history: false,
shareButtons: [
{id: "facebook”, label: "分享至Facebook”, url: "https://www.facebook.com/sharer/sharer.php?u={{url}}%3Fr=cpsdfb”}
],
});
gallery.listen(“gettingData”, function(index, item) {
if (item.complete) return;
var img = new Image();
img.onload = function() {
item.w = img.naturalWidth;
item.h = img.naturalHeight;
gallery.invalidateCurrItems();
gallery.updateSize(true);
};
img.src = item.src;
item.complete = true;
});
gallery.listen(“destroy”, function() {
gallery = null;
});
gallery.init();
}






コメントを残す