Skip to content

Instantly share code, notes, and snippets.

kitahashi ryoichi kitahashiryoichi

  • tokyo
Block or report user

Report or block kitahashiryoichi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:3110a53c616ebc185e4d2c3a4d4484f5
<div>
<label for="file"></label>
<input id="file" type="file" />
</div>
View gist:263d5272d99fc84f6ba83993cf56f4b7
<label for="file">
<input type="file" id="file>
</label>
View 記事移動した時に貼るJavascript
<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>
@kitahashiryoichi
kitahashiryoichi / gist:d0534efb6cbbc84fd2c3
Created Feb 13, 2016
説明文を表示したいとき
View gist:d0534efb6cbbc84fd2c3
// 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 Feb 13, 2016
はてなブログ記事下関連記事
View gist:4ceb0ab836933caf3830
<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: "【";
}
You can’t perform that action at this time.