Skip to content

Instantly share code, notes, and snippets.

View kitahashiryoichi's full-sized avatar

kitahappy kitahashiryoichi

View GitHub Profile
@kitahashiryoichi
kitahashiryoichi / gist:d0534efb6cbbc84fd2c3
Created February 13, 2016 03:16
説明文を表示したいとき
// issmpの判定を//でコメントアウトして
//if(!issmp){
html = html + '<p class="same-category-entries-entry-summary" >'+ entry.summary +'</p>';
//}
//フォントを小さめに3点リーダー...が表示されるように調整します
.same-category-entries-entry-summary{
margin: 0;
font-size:10px;
text-overflow: ellipsis;
@kitahashiryoichi
kitahashiryoichi / gist:4ceb0ab836933caf3830
Last active February 13, 2016 04:03
はてなブログ記事下関連記事
<style>
.same-category-entry-summary {
color: #666;
}
a.same-category-entries-category-name, a.same-category-entries-category-name:visited {
color: inherit;
}
.same-category-entries-category-name:before {
content: "【";
}
<script type="text/javascript">// <![CDATA[
var doc = document;
var head = doc.getElementsByTagName("head")[0];
var meta = doc.createElement("meta");
meta.setAttribute("name","robots");
meta.setAttribute("content","nofollow,noindex,noarchive");
head.appendChild(meta);
var moveToUrl = "ここに移動先のURLを入れてください";
document.querySelector("link[rel=canonical]").setAttribute("href", moveToUrl);
// ]]></script>
<label for="file">
<input type="file" id="file>
</label>
@kitahashiryoichi
kitahashiryoichi / gist:3110a53c616ebc185e4d2c3a4d4484f5
Created February 8, 2017 04:51
IE edge label + input markup
<div>
<label for="file"></label>
<input id="file" type="file" />
</div>