ãã¾æã£ã¦ããå°éé åãããã«æ·±ãããã¨ã¨ãå¥ã®å°éé åã®ç¥èã身ã«ã¤ãããã¨ã®ãããããã©ã®ãããªåé
åã§ãã¾ãã©ã®ãããªä½æ¦ã§åãçµãã¹ããã¯ãããã¨èª°ã§ãããèãããã¨ã§ãããããã§å¸¸ã«åé¡ã¨ãªãè¦ç´ ã¨ãã¦ã
(1)対象ã¨ãªãå°éé åèªä½ã®å°æ¥ä¾¡å¤
(2)å°éé åéã®ã·ãã¸ã¼ä¾¡å¤
(3)å°éæ§ã®æ·±ãã«ãã£ã¦å¤åããæè³å¹æ
(4)å°éé åã®ãããªãç´°åå²
ã®4ã¤ãèãã¦ããã°ããã®ã§ãããã
ãã®ãã¡ã(3)ã¯ãè±èªè½åãªãããããä¾ãªãã§ãããæµ
ãè±èªè½åãæã£ã人éãªããããããããããããããå·®å¥åã§ãããå価ã¯ç°å¸¸ã«å®ããªãã(çæ´»ã§ãã)ãã¾ããä¸ã®ä¸ãã軽ãè¦ãããããããã«æ±ãããä»äºããã¦ãã¦ãé¢ç½ããªã(ãªã¬ã¯ä¸æµã§ããããã§ãã)ã
ã§ãå·®å¥åããããã«ã(2)ã(4)ã®ã©ãããããã(4)ç´°åå²åã§ã¯ãåãè±èªè½åã§ããçºé³ã究ããã¨ãã翻訳ã究ããã¨ããåæé訳ã究ããã¨ããããã¯ããã«ããã¯ã®æ¿ãã½ã¼ã¹ã®æ¦ç¥ã¨åãã§ããã½ã¼ã¹å¸å ´ãã¨ãã大ããªãã¼ã±ããã§ã¯ããã¼ã±ãããªã¼ãã«ã¯åã¦ãªãã®ã§ãã½ã¼ã¹å¸å ´ããããã«ç´°ããåå²ãã¦ããæ¿ãã½ã¼ã¹ã®å¸å ´ãã¨ããå¸å ´ãç¡çããåµãåºãã¦ãããã®ãã¼ã±ãããªã¼ãã«ãªãæ¦ç¥ãæ¿ãã½ã¼ã¹ã¥ãããªããã©ãã«ãè² ããªãããã¨ããã®åçã§å»è
ãããããç´°ããå°éåãã¦ãã£ã¦ããããå®éã¢ããã¼ã°ããå¾¹åºãã¦æ¥µãã¦ããå»è
ã¨ããã®ã¯ãã¢ããã¼ã«é¢ãã¦ã¯ãããããããªã¤ã©ãã¢ããã¼ãªã®ã§ãããããå»è
ã®ã¨ãããã¾ããããã®ç´°åå²åæ¦ç¥ã¯ãã½ããã¦ã§ã¢ã¨ã³ã¸ãã¢ã®ä¸çã«ããå½ç¶æå¹ã§ãå¤ãã®ã¨ã³ã¸ãã¢ã¯æ¬è½çã«ããã«æ°ãã¤ãã¦ããã
ãã¨ã(3)ã®æ·±ãã§ãæã¨ãã¦ãéè¦ãªã®ãã飽åæ§ã®åé¡ããã¨ãã°ãç¹å®ã®ããã°ã©ãã³ã°è¨èªã®ææ³ãããã£ãã«ä½¿ãããªãç´°ããææ³ã¾ã§ãã¹ã¦ãã¼ãããããã»ãã«ãããã¨ãªãã®ããã¨ãã話ã
ã§ãæå¤ã«ããããã«ããã¦ããã®ãã(1)ã¨(2)ã®ãæ¦ç¥çãä½ç³»çãªã¢ããã¼ããã©ã®å°éé åã®ã©ããªã¹ãã«ããå°æ¥ã©ã®ããã価å¤ãã§ãããã¨ããã®ã¯ã社ä¼ãçµæ¸ã«ã¤ãã¦ããåå¼·ããæ
å ±åéããèªåãªãã«ããåæããªããã°ããªããªãè¦ãã¦æ¥ãªããã¨ãã«ãããã«ã¤ãã¦ç¬ããããã«ãªããã¡ãªèªåããã¦ãããæ°ãã¤ããªããã¨æãã(ã¢ã³ã¿ã¯ã¨ã³ã¸ãã¢ãªã®ã? ã¨èãããã¨ãªãã¨ãè¿çã«å°ãããã§ã¼ãªã¨ãããªã§ãã)
åå¥å
·ä½çãªæè¡ã®ä¾¡å¤ã¯ããã®æè¡èªä½ã®æ´ç·´ãããã¨ã³ã¸ãã¢ã®å¥½ã¿ã ãã§æ±ºã¾ããã®ãããªããããã人éã社ä¼ã®å
·ä½çãªä¾¡å¤ã«ãããã¦ã©ã®ãããªä½ç½®ã«ããããã¨ããã¨ããã®æ¹ããããéè¦ãªãã ã¨æãã人éã¨ç¤¾ä¼ã®ä¾¡å¤ãããç¬ç«ããã¦æè¡ãèªä½ãã«ä¾¡å¤ãåå¨ãããã®ããã«èãã¦ãã¾ããã¨ããããããããæè¡ã®ä¾¡å¤ã®ãæºæ³ãã¯ãéçºè
ã§ã¯ãªãããã®æçµçãªã¦ã¼ã¶ããçºçãã¦ããã®ã§ãã£ã¦ãæçµçãªã¦ã¼ã¶ãå¥ã®ä»£æ¿æ段ãé¸ãã ç¬éããã®æè¡ã®ä¾¡å¤ã¯æ¶æ»
ããã¨ãããã¨ãè¦å¤±ããããã¨ã¯ãããã¡ã
ä¸ææã®äººå·¥ç¥è½ãã¼ã ãããä¾ã ãé«åº¦ãªæ¨è«ã¨ã³ã¸ã³ã使ã£ã¦ãããã©ããã¯ãæçµçãªã¦ã¼ã¶ã«ã¯ãã©ãã§ããããã¨ã§ããµã¤ãã®ããã°ã©ãã³ã°è¨èªã§åãã·ã¹ãã ãè¨è¿°ããå ´åã¨ã®éãã¯ãéçºã¨ä¿å®ã®è²»ç¨ãå·¥æã®åé¡ãã¨ããã³ã¹ãã®åé¡ã¨ãã¦ã¼ã¶ã«ã¨ã£ã¦æ°ãã価å¤ãåµåºã§ããããã¨ããå
·ä½çãªä¾¡å¤åµåºã®åé¡ã«éå
ãã¦èããªãããªããªããèªåã®å°æ¥ã«ãããããã¨ã ãã
æè¡ã®äººéç価å¤ããããæè¡èªä½ãæãã¦ãã¾ãã¨ã³ã¸ãã¢ã¯ãæã¨ãã¦ããããéä¸åãçºãããããæå³åªç§ã ããã®æããããè¿ä»£å²ãããã¾ããé度ã§åé²ããã¦ãããã¯ã¼ã®æºæ³ãããããªãããããããã®ç²ç®çãªæã«ãã£ã¦ãããã°ããããã¼ãã«ãªããæè¡ã®äººéã¨ç¤¾ä¼ã«ã¨ã£ã¦ã®ä¾¡å¤ãè¦å¤±ãããã¡ã
ã®ã§ãã½ããã¦ã§ã¢ã¨ã³ã¸ãã¢ã¯ãèªåã®ä¸ã«ãããæè¡èªä½ã¸ã®æããã¾ã飼ã馴ããã¦ãæè¡ã®äººéç価å¤ã¸ã¤ãªãã¦ããã¨ããä½æ¥ãã絶ãããããªãã¨ãæ²åçãªå°æ¥ãå¾
ã¡åãã¦ãããã¨ã«ãªããããããªãã
';
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/');
}
})