Skip to content

Instantly share code, notes, and snippets.

View webbingstudio's full-sized avatar
🤤
Working from home

うぇびんさん webbingstudio

🤤
Working from home
View GitHub Profile
@webbingstudio
webbingstudio / acms_corrector_date.html
Last active December 11, 2017 02:41
a-blog cmsで、独自タグの内容を置換する「校正オプション」の具体的な使い方 ref: https://qiita.com/webbingstudio@github/items/d78b57a0f728cbfe5e2b
{event_date}[date('Y年n月j日')] -> 2017-01-01 -> 2018年1月1日
@webbingstudio
webbingstudio / acms_postinclude_fontplus.js
Last active March 2, 2018 05:19
a-blog cmsで指定条件のエントリーを表示する、「ポストインクルード」の使い方まとめ ref: https://qiita.com/webbingstudio@github/items/6bb099f04f0d5a74a38a
ACMS.addListener("acmsAfterPostInclude", function() {
//ここに処理が入ります。
FONTPLUS.reload();
}, $('.js-post_include').get(0));
@webbingstudio
webbingstudio / acms_admin_entry_edit_01.js
Last active May 17, 2019 05:36
a-blog cmsのエントリー基本項目を「edit.html」を編集せずカスタマイズする ref: https://qiita.com/webbingstudio@github/items/5ee65c3c68c859532627
<script>
ACMS.Ready(function() {
var f = $('form#entryForm');
var current_rccd = '%{RCCD}';
var current_ccd = '%{CCD}';
var current_cname = '%{CATEGORY_NAME}';
var current_eid = '%{EID}';
// ここにスクリプトを書きます
@webbingstudio
webbingstudio / container-full_01.css
Last active October 27, 2017 19:43
CMSの記事などの幅が制限されたエリアで、一部の要素のみ幅100%で表示する ref: http://qiita.com/webbingstudio@github/items/131f28921b46dc126c31
.outer-wrap {
overflow:hidden;
}
@webbingstudio
webbingstudio / acms_autocomplete.json
Created October 27, 2017 18:46
関連エントリーの候補リストに「ブログ名」を表示する ref: http://qiita.com/webbingstudio@github/items/5a6c6602fabb6a6b3989
<!-- BEGIN_MODULE Admin_Entry_Autocomplete -->[<!-- BEGIN entry:loop -->
\{
"label": "<!-- BEGIN categoryField -->({fieldCategoryName})<!-- END categoryField -->{title}",
"value": "<!-- BEGIN categoryField -->({fieldCategoryName})<!-- END categoryField -->{title}",
"title": "{title}",
"id": {eid},
"url": "{url}",
"datetime": "{date#Y}/{date#m}/{date#d} {date#H}:{date#i}",
"categoryName": "<!-- BEGIN categoryField -->{fieldCategoryName}<!-- END categoryField -->"
\}<!-- BEGIN glue -->, <!-- END glue --><!-- END entry:loop -->
@webbingstudio
webbingstudio / SimilarEntries_shuffle.js
Last active September 28, 2017 07:09
Movable Typeで関連記事を表示するプラグイン「SimilarEntries」をランダム表示にする ref: http://qiita.com/webbingstudio@github/items/d20ecd0abcb42fb237d8
var shuffle = function(arr) {
var n = arr.length;
var temp, i;
while (n) {
i = Math.floor(Math.random() * n--);
temp = arr[n];
arr[n] = arr[i];
arr[i] = temp;
}
@webbingstudio
webbingstudio / similarEntries_show.mtml
Last active September 28, 2017 07:06
Movable Typeで関連記事を表示するプラグイン「SimilarEntries」を導入する場合の注意点 ref: http://qiita.com/webbingstudio@github/items/588632a5f0bab9cee9b9
<mt:SimilarEntriesShow
・・・
script_url="/SimilarEntries/SimilarEntries.js"
・・・
/>
;(function($){
"use strict";
var Mailto = window.Mailto || {};
Mailto = (function() {
function Mailto(element, options) {
var t = this;
t.initials = {
@webbingstudio
webbingstudio / acms_ex.css
Last active January 19, 2017 16:10
a-blog cms バージョン2.6時点の、公開ページでの投稿フォームなどの既存CSSとの衝突を修正するための追加CSS
@charset "UTF-8";
/*
* a-blog cms extend css
* version: 2.6 lator
*
*/
/*
* 本文のスタイルの影響をUIも受けてしまう問題を回避
* ----------------------------
@webbingstudio
webbingstudio / file0.txt
Last active November 3, 2016 09:32
JavaScriptの関数の引数が想定していない値ならデフォルト値を強制する(つっこみ待ち) ref: http://qiita.com/webbingstudio@github/items/6e7a77ed2347a59efedd
var example = function( current, value ){
changed = Number(current) + Number(value);
// changedで何かする
}
$('a.js-example').click(function(){
var current = docCookies.getItem('current');
var value = $(this).data('value');
example( current, value );
return false;