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 = []; | |
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
/** | |
* 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
//////////////////////////////////////////////////////////////////////////////// | |
// 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
//////////////////////////////////////////////////////////////////////////////// | |
// 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
//////////////////////////////////////////////////////////////////////////////// | |
// Add a classname to the alternate - jQuery Plugin | |
// 交互にクラス名を付与してストライプなテーブルを作成 | |
// | |
// Copyright 2010, Minoru Nakanow | |
// Licensed under the MIT licenses. | |
// http://www.opensource.org/licenses/mit-license.html | |
// | |
// Usage: | |
// $("table").stripeTable(); |
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
//////////////////////////////////////////////////////////////////////////////// | |
// Open new window - jQuery plugin | |
// target属性で指定する別窓展開プラグイン | |
// | |
// Copyright 2010, Minoru Nakanow | |
// Licensed under the MIT licenses. | |
// http://www.opensource.org/licenses/mit-license.html | |
// | |
// Usage: | |
// <a href="example.html?width=full&height=full" target="new">全画面展開</a></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
//////////////////////////////////////////////////////////////////////////////// | |
// Smart scroll - jQuery Plugin | |
// ページをまたいで作動するスムーズスクロール | |
// | |
// Copyright 2010, Minoru Nakanow | |
// Licensed under the MIT licenses. | |
// http://www.opensource.org/licenses/mit-license.html | |
// | |
// Usage: | |
// $("a[href^='#']:not([target])").pageScroll(); |
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
//////////////////////////////////////////////////////////////////////////////// | |
// Dateset | |
// 指定期間の日付/曜日の出力など | |
// Copyright 2010, Minoru Nakanou | |
// Licensed under the MIT licenses. | |
// http://www.opensource.org/licenses/mit-license.html | |
//////////////////////////////////////////////////////////////////////////////// | |
(function() { | |
/** | |
* @private |
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
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>jquery.getphotos.js</title> | |
<style type="text/css"> | |
* { | |
border: none; | |
list-style: none; | |
} | |
OlderNewer