è¥ãé ã«èªãã§é¢ç½ãã£ããã³ã¬ãå°èª¬ãé³æ¥½ã
å¹´ãåã£ã¦ããããä¸åº¦èªãã ãèãããããã¨ãé³è
ã§èã£ãºããæãããããã¨ãå¤ãã
ãããªãã«é·ãçãã¦ã天å½ãå°çãã人ã®éãã¨ãããç¾ããã¨ãããã
å¦å¿ãªãå³ãããããå¾ãªãã£ãå¾ã§ã¯ã
ãªã¢ã«ãªçµé¨ã«è£æã¡ããã¦ããªããé½å主義ã®èå°è¨å®ã¯ã
ããã«ãä½ãç©ã¨ããæãã ãã
主人å
¬ã®è¦æ©ãåéºã«ãã¦ããç¾å®ä¸çã§ã¯ã¨ãã¦ãéç¨ããªãè¿éã§ããã±ã§
ãã¾ã¡ãããªè¦æã¨è½åã¨ä½æ¦ã§ãã£ããæåããã®ãã¿ã¦ããããªãããã
èªãã§ããæ¬ãå¤ããªã£ã¦ããããããããããã®ã©ãã¹ãã¼ãªã¼ãªã©ã
ã¾ãããã¨ããæãã§ãå
ãèªãã¦ãã¾ã£ã¦æåããªãã
ããããããå°æ°ã ããåæ°å¹´ã®äººçãçµéããå¾ã§ã
å°ããé³è
åããªããã®ãããã
ãã¯ã«ã¨ã£ã¦ã¯ããã®ä¸ã¤ããã«ã¼ãã¼ãã ã
è¥ãé ãä½ååããã«ã¼ãã¼ãã®æ²ãè´ããã
èããã³ã«ãå¿ãã¦ãã大åãªã¢ããæãåºããæ°ãããã
ç¹°ãè¿ãç¹°ãè¿ãç¹°ãè¿ãèããã¡ã«ã
ãã«ã¼ãã¼ãã¯ã»ã©ãã©ãã¯ã®ç²¾ç¥ã®ä¸é¨ã¨ãªã£ããããªæ°ããããã
ä»ã§ãããã«ã¼ãã¼ããæã
ãããã
èããã³ã«ãå¿ãã¦ãã大åãªãã¨ãæãåºãã
以ä¸ããã«ã¼ãã¼ãã®æè©ã®ä¸ããããã¯ã®å¥½ããªã»ã³ãã³ã¹ãæç²ã
人ã®ç®ã°ã£ããããã¤ã§ãæ°ã«ãã¦
å£å
ã°ã£ãããä½ãããªãã§
ãããªã®ã¡ã£ã¨ããããããããªããã
ãããªã®ã¨ã£ã¦ãããããã¤ãªã ãã
ã«ãã³æªããã£ã¦ãããããããªäºåé¡ãããªã
åã®äºç¬ã奴ã¯ããã¼ãã«ã¶ã¤ãã£ã¦ãæ»ããã¾ã
ã©ããã®çå¼¾ãã ç®ã®åã®ããªãã®æ¹ã
ãµãããç¨ å¤§äºä»¶ã åã«ã¨ã£ã¦ã¯
çãã¦ãäºã大好ãã§ãæå³ããªãã³ã¼ãã³ãã¦ãã
ä¸åº¦ã«å
¨ã¦ãã®ããã§ãããã50ã§é§ãæãã
誰ãã®ã«ã¼ã«ã¯ãããªãã誰ãã®ã¢ã©ã«ã¯ãããªãã
å¦æ ¡ãã¸ã¥ã¯ããããªããçå®ãæ¡ããããã
ãã¤ãä¼ããã åãæ¶ããããããã¬åéã¨ããã£ã¨ä¼ããã
ãã¤ãä¼ããã åãæ°æã¡ã§ççºããããªä»²éã¨ããã£ã¨ä¼ããã
è¦ãããã°ãããããªããå£å
ã ãã§ããªãããã¤ãè¦ãã ãã
åããã¶ããã«ããããã¦ç«ã¤äººãããã£ã¨è¦ãã ãã
ä¸çä¸ã«å®ããããã©ããªè¨å¿µæ¥ãªãããããããªããçãã¦ããä»æ¥ã¯ã©ããªã«ç´ æ´ããã ãã
ä¸çä¸ã«å»ºã¦ããã¦ãã©ããªè¨å¿µç¢ãªãããããããªããçãã¦ããä»æ¥ã¯ã©ããªã«æå³ãããã ãã
å¼±ãè
éãå¤æ®ãããã«å¼±ãè
ãããã
è¦ããªãèªç±ãã»ããã¦ãè¦ããªãéãæã¡ã¾ãããæ¬å½ã®å£°ãèããã¦ãããã
ããããããã¨ãèãã¦ãã¿ããªã楽ãããããããª
å
çãã¡ã¯åããä¸å®ã«ãããã©ãããã»ã©å¤§åãªè¨èã¯ãªãã£ã
大人ãã¡ã«ã»ãããããããªããã«ã«ã¯ãªããããªã
70å¹´ãªãä¸ç¬ã®å¤¢ã
ããããããäºããã£ã¦ãæã¯ãã
';
break;
case 'horizontal':
if(a.imgUrl){
imgCode = '
';
}
code = '
'+
'
';
code += imgCode;
if(a.label) code += ''+a.label+'';
code += '
';
break;
default:
error('ãããªviewç¥ãããã'+a.view);
}
return code;
}
function toImgUrl(super_kind){
var HFotoTbl = {
tw: '20180803102713',
fb: '20180803102707',
hb: '20180803102710',
line: '20180803102711',
pocket: '20180803102712',
feedly: '20180803102708',
hate_blo: '20180803102709',
note: '20180821103319'
};
var hf_id = HFotoTbl[super_kind];
if(!hf_id){
log('ãã®super kind:'+super_kind+'ã®ã¯ã¦ãªãã©ãIDãç»é²ããã¦ãªããã');
return null;
}
return hfid2url(hf_id);
}
var HFDayRE = /^\d{8}/;
function hfid2url(hf_id){
var sa = HFDayRE.exec(hf_id);
return 'https://cdn-ak.f.st-hatena.com/images/fotolife/f/fromdusktildawn/'+
sa[0] + '/' + hf_id + '.png';
}
function setButton(a){
var pos = isString( a.pos ) ? $(a.pos) : a.pos;
a.imgUrl = toImgUrl(a.superKind);
var html = makeButtonHtml(a);
var meth = a.insertMethod;
if(!meth) meth = 'after';
pos[meth](html);
$('#'+a.id).on('click',function(){
window.location.href = a.url;
});
}
function asurePrefix(a){
if(!a.prefix){
var random = Math.floor( Math.random() * 110000000000000 );
a.prefix = 'random-'+random+'-';
}
}
function setSocialBts(a, defs){
var title = getPageTitle(a.title);
var url = getPageUrl();
if(!a.insertMethod) a.insertMethod = 'after';
var b = $.extend(true, {}, a);
asurePrefix(b);
var i=0;
b.title = encodeURIComponent(title);
b.url = encodeURIComponent(url);
var pos = b.pos;
var id;
defs.forEach(function(def){
var c = $.extend(true, {}, b);
var kind = def[0];
c.label = def[1];
id = c.id = c.prefix + kind;
c.pos = pos;
c.kind = kind;
var superKind = SuperKindTbl[kind];
c.superKind = superKind ? superKind : kind;
var site = SITE_NAME;
if(site == 'fromd.hateblo.jp') site = 'www.furomuda.com';
switch(kind){
case 'tw':
c.url = 'http://twitter.com/share?url=' + c.url +
'&text='+c.title+encodeURIComponent(' @fromdusktildawn ')+
'&related=fromdusktildawn';
break;
case 'fb':
c.url = 'https://www.facebook.com/sharer/sharer.php?u='+c.url;
break;
case 'hb':
c.url = 'http://b.hatena.ne.jp/add?mode=confirm&url=' + c.url +
'&title='+c.title;
break;
case 'line':
c.url = 'https://social-plugins.line.me/lineit/share?url='+c.url;
break;
case 'pocket':
c.url = 'http://getpocket.com/edit?url='+c.url+
'&title='+c.title;
break;
case 'twFollow':
c.url = "https://twitter.com/intent/follow?screen_name=fromdusktildawn";
break;
case 'hbFollow':
c.url = "http://b.hatena.ne.jp/fromdusktildawn/";
break;
case 'fbPage':
c.url = 'https://www.facebook.com/furomuda/';
break;
case 'fbGroup':
c.url = "https://www.facebook.com/groups/426678561170457/";
break;
case 'hate_blo':
c.url = "https://blog.hatena.ne.jp/fromdusktildawn/"+ site + "/subscribe";
break;
case 'note':
c.url = 'https://note.mu/fromdusktildawn';
break;
case 'feedly':
c.url = 'https://feedly.com/i/subscription/feed/'+
encodeURIComponent('https://'+site+'/feed');
break;
default:
console.log('ãããªkindããããã:'+kind);
}
setButton(c);
if(c.insertMethod == 'after'){
pos = '#'+id;
}
});
return id;
}
function make2ColButtons(a, ldef, rdef){
var col_ids = make2ColFrame(a);
var lpos = '#'+col_ids.l;
var rpos = '#'+col_ids.r;
a.pos = lpos;
setSocialBts(a, ldef);
a.pos = rpos;
setSocialBts(a, rdef);
return col_ids.frame_id;
}
function make2ColFrame(a){
asurePrefix(a);
var LEFT_SUFFIX='-left-cell';
var RIGHT_SUFFIX='-right-cell';
var prefix = a.prefix;
var frame_id = prefix+'-frame';
var left_id = prefix+LEFT_SUFFIX;
var right_id = prefix+RIGHT_SUFFIX;
var frame = '
';
$(a.pos).after(frame);
return {l: left_id, r: right_id, frame: frame_id};
}
// PCä¾åã®ã³ã¼ãï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼
var archiveEntries = $(".archive-entry");
if(archiveEntries.length){
archiveEntries.each(function(){
var archiveEntry = $(this)
var entryTitleLink = archiveEntry.find(".entry-title-link");
var entryHref = entryTitleLink.attr("href")
var entryDescription = archiveEntry.find(".entry-description");
var bookmarkHtml = "
"
entryTitleLink.append(bookmarkHtml);
var readMoreHtml = "
ãã£ã¨èªã";
entryDescription.append(readMoreHtml);
var bookmarkCounter = archiveEntry.find(".bookmark-widget-counter");
bookmarkCounter.hide();
var starContainer = archiveEntry.find(".star-container");
var bigBookmarkCounter = archiveEntry.find(".big-bookmark-counter");
starContainer.insertAfter(bigBookmarkCounter);
function makeStarCountBig(){
var starCount = archiveEntry.find(".hatena-star-inner-count");
if(starCount.length){
starCount.css('font-size','140%');
} else {
setTimeout(makeStarCountBig,300);
}
}
makeStarCountBig();
});
// ãã©ãã¼ãã¦ããããã¿ã³ããµã¤ããã¼ã«è¨ç½®
var btPos = '.profile-description';
var startPos = 'my-buttons-pos';
$(btPos).after(
'
'
);
twPos = '#'+startPos;
var last_id = setSocialBts({pos: twPos}, [
['twFollow', 'ãã©ãã¼ãã'],
['note', 'ãã©ãã¼ãã'],
['hate_blo', 'èªè
ã«ãªã'],
['feedly', 'è³¼èªãã'],
['hbFollow', 'ãã©ãã¼ãã'],
['fbPage', 'facebookãã¼ã¸'],
['fbGroup', 'facebookã°ã«ã¼ã']
]);
var paddingBottomId = 'my-padding-bottom-id';
$('#'+ last_id).after(
'
'
);
var pos = $('#main-inner');
var img_url = hfid2url('20201008224538');
//var img_url = hfid2url('20201003093324');
//var img_url = "https://storage.googleapis.com/hateblog/img/prj/book/learning/learning_blog_top.png";
pos.before(
'
'
);
/*
var free_a_begin = '
';
var book_a_begin = '';
pos.before(
''+
''+
''+
free_a_begin+
''+
' | '+
''+
'ãµããã æ¬ã®ã¬ãããªï¼ç« åãç¡æã®Webè¨äºã¨ãã¦èªãã¾ãï¼
'+
free_a_begin+
'ç¡æçãèªãã«ã¯ãããã¯ãªãã¯'+
' | '+
'
'+
''+
''+
book_a_begin+
'æ¬ã§èªã¿ããæ¹ã¯ãããã¯ãªãã¯'+
' |
'+
'
'
);
*/
} else {
var title = $(".entry-header .entry-title a");
if(title) {
var titleHref = title.attr("href")
var bookmarkHtml = "
"
var entryTitle =title.parent();
entryTitle.append(bookmarkHtml);
entryTitle.css('font-size','150%');
function addHeadStar(){
var starCountCheck = $(".entry-footer .hatena-star-star-container .hatena-star-inner-count");
if(starCountCheck.length){
var starContainer = $(".entry-footer .hatena-star-star-container");
if(starContainer){
var starCount = starContainer.find(".hatena-star-inner-count");
starCount.css('font-size','24px');
var starClone = starContainer.clone(true,true);
var bigBookmarkCounter = title.parent().find(".big-bookmark-counter");
starClone.insertAfter(bigBookmarkCounter);
starCount = starClone.find(".hatena-star-inner-count");
starCount.on('click',function(){
alert('âãä»ãã人ã®ä¸è¦§ãè¦ãã«ã¯ããã®è¨äºã®ä¸é¨ã®âæ°ãã¯ãªãã¯ãã¦ãã ããã');
$("html,body").animate({scrollTop:$('.entry-footer .hatena-star-star-container').offset().top-100});
});
var bt = starClone.find(".hatena-star-add-button");
bt.on('click',function(){
alert('âãä»ããã«ã¯ããã®è¨äºã®ä¸é¨ã®ãâ+ããã¿ã³ãã¯ãªãã¯ãã¦ãã ããã');
$("html,body").animate({scrollTop:$('.entry-footer .hatena-star-star-container').offset().top-100});
});
} else{
setTimeout(addHeadStar,300);
}
} else {
setTimeout(addHeadStar,300);
}
}
addHeadStar();
procSpecialMarkers();
var param = {
pos: 'footer.entry-footer p.entry-footer-section',
title: title.text()
}
make2ColButtons(param,
[
['tw', 'ãã®è¨äºããã¤ã¼ããã'],
['hb', 'ãã®è¨äºãããã¯ãã¼ã¯ãã'],
['pocket', 'ãã®è¨äºãå¾ã§èªã']
],
[
['fb', 'ãã®è¨äºãã·ã§ã¢ãã'],
['line', 'ãã®è¨äºãLINEã§éã']
]
);
// ãã©ãã¼ãã¦ããããã¿ã³ãä¸é¨ã«è¨ç½®
param = {
pos: 'footer.entry-footer div.social-buttons'
};
var frame_id = make2ColButtons(param,
[
['twFollow', 'ãã©ãã¼ãã'],
['hate_blo', 'èªè
ã«ãªã'],
['hbFollow', 'ãã©ãã¼ãã'],
['fbGroup', 'facebookã°ã«ã¼ã']
],
[
['note', 'ãã©ãã¼ãã'],
['feedly', 'è³¼èªãã'],
['fbPage', 'facebookãã¼ã¸']
]
);
}
}
// è¨äºä¸è¦§ãã¼ã¸ã¨ãåä½è¡¨ç¤ºãã¼ã¸ã®ä¸¡æ¹ã«å
±éããã³ã¼ã ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼
var d = $('div.date a time');
d.css({
'color': '#aaa',
'font-weight': 'normal'
});
if(IS_ANNEX){
var link = $('h1#title a'); // ããã°ã¿ã¤ãã«ã®ãªã³ã¯
link.attr("href", 'https://www.furomuda.com/');
}
})