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
//////////////////////////////////////////////////////////////////////////////// | |
// Query string convert to hash - jQuery Plugin | |
// クエリーストリングをハッシュに変換 | |
// | |
// Copyright 2010, Minoru Nakanow | |
// Licensed under the MIT licenses. | |
// http://www.opensource.org/licenses/mit-license.html | |
// | |
// Usage: | |
// $.toObject("index.html?width=500&height=auto"); |
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
//////////////////////////////////////////////////////////////////////////////// | |
// Rollover - jQuery Plugin | |
// 識別子.拡張子で読込めた画像をロールオーバープラグイン | |
// | |
// Copyright 2010, Minoru Nakanow | |
// Licensed under the MIT licenses. | |
// http://www.opensource.org/licenses/mit-license.html | |
// | |
// Usage: | |
// $("img").rollover(); |
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
/** | |
* Trimming strings. | |
* | |
* @param {String} string 対象文字列 | |
* @param {Number} size 全角での長さ | |
* @param {String} ellipsis 省略文字(初期値 "...") | |
* @return {String} 整形文字列 | |
* | |
* @example | |
* ellipsis("表示したい全角文字数を指定", 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
/** | |
* Query string convert to hash. | |
* | |
* @param {String} string ?を含んだ文字列 | |
* @return {Object} | |
* | |
* @example | |
* toObject("index.html?width=500&height=auto"); | |
* {width:500, height:auto} | |
*/ |
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
/** | |
* Random numbers that do not overlap. | |
* @param {Number} length 生成数 | |
* @param {Number} max 閾値 | |
* @return {Array} | |
*/ | |
function uniqueRandom(length, max) | |
{ | |
var random, result = []; | |
NewerOlder