This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mt:DynamicMTML> | |
<mt:Ignore section="解説 01"> | |
変数を初期化します。 | |
</mt:Ignore> | |
<mt:SetVar name="ids"> | |
<mt:SetVar name="entries"> | |
<mt:Ignore section="解説 02"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ================================================== | |
Lock Screen | |
================================================== */ | |
#mtapp-lock-screen { | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
z-index: 99999; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
$('#search').flexibleSearch({ | |
searchDataPath: "/flexibleSearch/search.json", | |
searchFormAction: "/flexibleSearch/search.html", | |
loadingImgPath: "/flexibleSearch/loading.gif", | |
resultItemTmpl: [ | |
'<dl>', | |
'{{#items}}', | |
'<dt><a href="{{url}}" title="{{title}}">{{&title}}</a></dt>', | |
'<dd><span>{{&body}}...</span><a href="{{url}}">[続きを読む]</a></dd>', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
$('#search').flexibleSearch({ | |
searchFormCreation: false, | |
searchDataPath: { | |
search_A: "/flexibleSearch/search.json", | |
search_B: "/flexibleSearch/search2.json", | |
}, | |
searchFormAction: "/flexibleSearch/search.html", | |
loadingImgPath: "/flexibleSearch/loading.gif", | |
resultItemTmpl: [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ================================================== | |
# MTML Completions for ATOM [start] | |
# ================================================== | |
'.text.md, .text.plain, .text.html.basic, .text.html.php, .source.js, .source.css, .source.yaml': | |
'current_mapping="1"': | |
'prefix': 'current_mapping="1"' | |
'body': 'current_mapping=\"${1:1}\"' | |
'with_index="1"': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mt:EntryJSONTableItems> | |
<mt:IfEntryJSONTableItem key=“foo"> | |
<mt:EntryJSONTableItem key=“foo”> | |
</mt:IfEntryJSONTableItem> | |
<mt:Else> | |
do something when items is empty | |
</mt:EntryJSONTableItems> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
// --------------------------------------------------------------------- | |
// $.MTAppTemplateSelectorWidget(); | |
// --------------------------------------------------------------------- | |
// Latest update: 2016/06/24 | |
// | |
// テンプレートの編集画面に、テンプレート一覧のドロップダウンリストウィジェットを追加し、 | |
// 選択したテンプレートの編集画面にジャンプします。 | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
// --------------------------------------------------------------------- | |
// $(foo).MTAppAssetFields(); | |
// --------------------------------------------------------------------- | |
// Latest update: 2016/07/01 | |
// | |
// input:text で MT 標準の「アイテム」ダイアログを利用できるようにします。 | |
// id, filename, url, thumnail(imageのみ)の値を JSON で保存します。 | |
// --------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
// 元記事:http://bit-part.net/blog/2015/01/mtapplisting.html | |
$('#customfield_bpentrylist').MTAppListing({ | |
url: '<mt:Var name="config.CGIPath"><mt:Var name="config.DataAPIScript">/v1/sites/<mt:BlogID>/entries', | |
data: { | |
limit: 9999999, | |
// categories を追加します | |
fields: 'id,title,categories' | |
}, |