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
// 要素#hoge内にp要素を追加して「ほげほげ」とテキストを入れる | |
(function(d, t) { | |
d.prepend('<p></p>'); | |
$('p', d).text(t); | |
})($('#hoge'), 'ほげほげ'); |
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
//ファイルアップロード時にファイルを日付で整理させる | |
var getUploadDate = function() { | |
var d = new Date(); | |
// 年月日の取得 | |
var month = d.getMonth() + 1; | |
var day = d.getDate(); | |
var hour = d.getHours(); | |
// 1桁を2桁に変換する | |
if (month < 10) {month = "0" + month;} |
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
if(mtappVars.screen_id == 'dashboard'){ | |
var Tabs = $('#dashboard #favorite-blogs-tabs'); | |
$('ul li', Tabs).eq(0).removeClass('ui-tabs-selected ui-state-active'); | |
$('ul li', Tabs).eq(1).addClass('ui-tabs-selected ui-state-active'); | |
Tabs = null; | |
var TabCont = $('#dashboard #favorite_blogs'); | |
$('#favorite-website', TabCont).addClass('ui-tabs-hide'); | |
$('#favorite-blog', TabCont).removeClass('ui-tabs-hide'); | |
TabCont = null; |
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
<div class="mail-form form-confirm"> | |
<ul class="mail-step"> | |
<li><span class="num">1</span> お客様情報の入力<span class="sep"></span></li> | |
<li class="current"><strong><span class="num">2</span> 送信内容の確認</strong><span class="sep"></span></li> | |
<li><span class="num">3</span> 送信完了<span class="sep"></span></li> | |
</ul> | |
<p>以下の内容で送信します。よろしければ「送信する」ボタンを押してください。</p> |
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
<!-- BEGIN XXXX:validator --> | |
<p class="error">XXXXは必ず入力してください。</p> | |
<!-- END XXXX:validator --> |
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
・・・ | |
<input type="hidden" name="field[]" value="blogHeaderLogo" /> | |
<input type="hidden" name="blogHeaderLogo:extension" value="image" /> | |
<input type="hidden" name="blogHeaderLogo@height" value="64" /> | |
<p style="margin: 1em 0 0; padding: .5em; background: #FFF; border: 1px solid #D66;">高さ64ピクセル以上の、正方形に近い画像を用意してください。</p> | |
</td> | |
・・・ |
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
echo $this->Form->label('Model.prefecture', '都道府県'); | |
echo $this->Form->select('Model.prefecture', | |
array( | |
'北海道' => '北海道', | |
'東北' => array( | |
'青森県' => '青森県', | |
'岩手県' => '岩手県', | |
'宮城県' => '宮城県', | |
'秋田県' => '秋田県', | |
'山形県' => '山形県', |
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
echo '<p class="label">質問項目</p>'; | |
echo '<span class="radio-set">'; | |
echo $this->Form->radio('Model.form_name', | |
array( | |
'ああああ', | |
'いいい', | |
'ううううう', | |
'ええええ', | |
'おおお', | |
'その他' |
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
echo $this->Form->input('Model.lname', | |
array( | |
'label' => '氏名', | |
'placeholder' => '姓', | |
'class' => 'input-small', | |
'after' => ' ', | |
'div' => false, | |
'error'=>false | |
) | |
); |
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
module.exports = function(grunt) { | |
"use strict"; | |
grunt.initConfig({ | |
sass: { | |
dist: { | |
options: { | |
// style: 'expanded' | |
style: 'compressed' |
OlderNewer