/*
livedoor ブログ
デフォルト2012用
*/
const url = 'https://shibuya-binbin.com';
(function () {
const firstScript = document.getElementsByTagName('script').item(0);
const css = ['/css/default.css', '/blog/style.css'];
for (var i = 0; i < css.length; i++) {
const link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = url + css[i];
firstScript.before(link);
}
})();
document.addEventListener('DOMContentLoaded', function () {
const header = document.getElementById('blog-header');
header.insertAdjacentHTML(
'afterbegin',
`
`
);
const sidebar = document.getElementById('sidebar');
sidebar.insertAdjacentHTML(
'beforebegin',
`
GALS LIST
SYSTEM
SCHEDULE
CONCEPT
PLAY
EVENT
`
);
featuredcontentslider.init({
id: "slider", //id of main slider DIV
contentsource: ["inline", ""], //Valid values: ["inline", ""] or ["ajax", "path_to_file"]
toc: "markup", //Valid values: "#increment", "markup", ["label1", "label2", etc]
nextprev: ["Previous", "Next"], //labels for "prev" and "next" links. Set to "" to hide.
revealtype: "mouseover", //Behavior of pagination links to reveal the slides: "click" or "mouseover"
enablefade: [true, 0.09], //[true/false, fadedegree]
autorotate: [true, 3000], //[true/false, pausetime]
onChange: function(previndex, curindex){ //event handler fired whenever script changes slide
//previndex holds index of last slide viewed b4 current (1=1st slide, 2nd=2nd etc)
//curindex holds index of currently shown slide (1=1st slide, 2nd=2nd etc)
}
})
});
document.addEventListener('click', function (event) {
if (event.target.className === 'maga_pop') {
const width = 610;
const height = 350;
window.open(event.target.href, '', 'width=' + width + ', height=' + height + ', scrollbars=no');
event.preventDefault();
}
});