Skip to content

Instantly share code, notes, and snippets.

View aintai's full-sized avatar
💭
🥳

aitqb aintai

💭
🥳
View GitHub Profile
@aintai
aintai / tumblr_tagcloud
Created February 1, 2022 08:42
tagcloud for Tumblr
<script type="text/javascript">
(function () {
var posts = new TumblrPosts({
domain: "hoge.tumblr.com",
maxNum: 1000 //タグを取得する投稿数(記事数膨大なときの制限用)
});
posts.bind(posts.EVENT_COMPLETE, function (e) {
var that = this;
var tagMaxNum = 50; //表示するタグ数の最大値
$.each(this.getTags("desc"), function (i, tag) {
var level = 6;
var axiom = '[7]++[7]++[7]++[7]++[7]';
var rules = {
'6' : '81++91----71[-81----61]++',
'7' : '+81--91[---61--71]+',
'8' : '-61++71[+++81++91]-',
'9' : '--81++++61[+91++++71]--71',
'1' : '',
'+' : '+',
'-' : '-',
<!-- 投稿日を無理やり挿入ここから -->
{block:Date}
<div style="margin:8px;font-size:90%;color:#ccc;">投稿日: {Year}.{MonthNumber}.{DayOfMonth}</div>
{/block:Date}
<!-- 投稿日を無理やり挿入ここまで -->