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($){ | |
var $window = $(window), | |
ua = navigator.userAgent.toLowerCase(); | |
$.mbua = $.mbUa = $.mbUA = { | |
/** | |
* Android端末でモバイル扱いしたい端末のUAの文字列の一部を格納する | |
* この配列に入っている端末(UAの文字列)はメソッドから追加することができる | |
* | |
* @access protected |
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
/* | |
jQueryは今やWeb制作に欠かせないツール・ライブラリとなりました。 | |
そのため、利用頻度も高くなり、HTMLコーダーもJSの記述もできなければなりません。 | |
でも、JavaScriptってなんだか難しそう?と感じる方も多いはず。 | |
そこでjQueryのサンプルをコメントと共に学んでみませんか? | |
というのがこのコードの目的です。 |
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
/** | |
* 仕様 | |
* 食べることができる | |
* 注文することができる | |
* 替え玉することができる | |
* トッピングができる | |
* トッピングは複数種類存在する | |
* スープを飲むことができる | |
* プラグインはどんな形式でも問わない | |
*/ |
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
<?php | |
namespace App; | |
use \Zend\EventManager\GlobalEventManager as GEM; | |
class IndexController extends ActionController | |
{ | |
function indexAction() | |
{ | |
// イベントを登録する |
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
// 以下設定 =================================================================================== | |
// 開始時刻と終了時刻(hh:mmからhh:mmの間) | |
var times = { | |
start: { h: '14', m: '00' }, | |
end: { h: '16', m: '00' } | |
}, | |
// 通知時刻のインターバル(1時間単位) | |
interval = 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
setInterval(function(){ | |
var imo = $("#imomushi"); | |
imo.animate({ | |
width: imo.width() + 10, | |
right: imo.width() | |
}, function(){ | |
imo.animate({ | |
width: imo.width() - 10, | |
left: parseInt(imo.css("left").replace("px")) - 10 | |
}) |
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
// jQuery版に書き換えた | |
(function($){ | |
var queries = (function(){ | |
var s = location.search.replace("?", ""), | |
query = {}, | |
queries = search.split("&"), | |
i = 0; | |
if(!s) return 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
#!/bin/bash | |
# Install start message | |
func_startMsg() | |
{ | |
echo "" | |
echo "Install start $1." | |
} | |
func_endMsg() |
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
// comments.php の comment_form 部分を以下に置き換える | |
<?php | |
convenience_comment_form(array( | |
"required" => '<em class="required">*</em>', | |
// %1$s は required で指定した内容に置き換わる | |
"required_notes" => '%1$sは必須項目です。', | |
"fields" => array( | |
"author" => '<p class="comment-form-author"><label for="hogehoge">お名前</label>%1$s'. | |
'<input id="hogehoge" type="text" name="author" value="%2$s"%3$s /></p>', | |
"email" => '<p class="comment-form-email"><label for="email">メールアドレス</label>%1$s'. |
NewerOlder