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
// 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
<?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
#!/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'. |
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 | |
/** | |
* Zend Framework - メンテナンスモードプラグイン | |
*/ | |
require_once "Zend/Controller/Plugin/Abstract.php"; | |
class Zend_Controller_Plugin_Maintenance | |
extends Zend_Controller_Plugin_Abstract | |
{ |
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 | |
class Nully_Validate_Uri extends Zend_Validate_Abstract { | |
const INVALID_URI = "%value% is invalid URI"; | |
/** | |
* Checking for http including URI pattern. | |
* | |
* @uses Zend_Uri | |
* Zend_Uri::check method is checking URI scheme including pattern. | |
*/ |
NewerOlder