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
$gallary = $("#gallary").find("li") | |
_gallaryTime = 4000 | |
_animateTime = 800 | |
gallaryLoop = (num)-> | |
_num = num | 0 | |
$gallary.each((i)-> | |
$that = $(this) | |
if i is _num | |
$that |
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
_doc = @.document | |
_imgCheck = (callback)-> | |
_imgLen = _doc.images.length | |
_done = 0 | |
for j in [0..._imgLen] | |
if _doc.images[j].complete | |
_done++ | |
else | |
_doc.images[j].onload = ()-> |
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
_global = @ | |
_doc = _global.document | |
_navigator = _global.navigator | |
__ua__ = _navigator.userAgent.toLowerCase() | |
class UA | |
constructor :()-> | |
return | |
@:: = | |
ie : __ua__.indexOf('msie') > -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
(function(g,u){ | |
"use strict"; | |
/** | |
* TimerManagement | |
*/ | |
var TimerManagement = (function(){ | |
/** | |
* TimerManagement | |
* @param {Number} interval |
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
UTIL = { | |
reiszeCallbacks : [] | |
isResizing : false | |
resize : (evt)-> | |
if @isResizing then return | |
@isResizing = true | |
_len = @reiszeCallbacks.length | |
if _len is 0 then return | |
for i in [0..._len] by 1 | |
@reiszeCallbacks[i](evt) |
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
###* global module:true *### | |
module.exports = (grunt)-> | |
grunt.initConfig | |
# READ PACKAGE JSON ------------------------------------------------------------------------- **/ | |
pkg : grunt.file.readJSON 'package.json' | |
meta : | |
banner: | |
js : '/*! <%= pkg.author %> | <%= pkg.license %> */' | |
css: '/*! <%= pkg.author %> | <%= pkg.license %> */' |
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 Bezier2 = (function(){ | |
/** | |
* class Point | |
* @param {number} x | |
* @param {number} y | |
*/ | |
var Point = (function(){ | |
function Point(x, y){ | |
this.x = x || 0; | |
this.y = y || 0; |
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(e,t,n){var r,i=e.getElementsByTagName(t)[0];if(e.getElementById(n))return;r=e.createElement(t);r.id=n;r.src="//connect.facebook.net/ja_JP/all.js#xfbml=1";i.parentNode.insertBefore(r,i)})(document,"script","facebook-jssdk"); | |
!function(e,t,n){var r,i=e.getElementsByTagName(t)[0];if(!e.getElementById(n)){r=e.createElement(t);r.id=n;r.src="//platform.twitter.com/widgets.js";i.parentNode.insertBefore(r,i)}}(document,"script","twitter-wjs"); | |
// mixi イイね! | |
(function(e){var t=e.createElement("script");t.type="text/javascript";t.async=true;t.src="//static.mixi.jp/js/plugins.js#lang=ja";e.getElementsByTagName("head")[0].appendChild(t)})(document); |
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($){ | |
// マウスオーバー時画像切替 | |
$(".over-img").find("a").each(function(){ | |
var _this = $(this); | |
var _defaultImg = _this.find("img"); | |
var _off = _defaultImg.attr("src"); | |
var _overImg = new Image(); | |
var _on = _off.replace(/(\.png|\.jpg|\.gif)/, "_on$1"); | |
_overImg.src = _on; |
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 Zoomer = Zoomer || {}; | |
Zoomer = { | |
docWidth :320, | |
rate :1, | |
isiOs :navigator.userAgent.search(/iPhone|iPod|iPad/) !== -1, | |
isAndroid :navigator.userAgent.search(/Android/) !== -1 | |
}; | |
Zoomer.adjust = function(){ | |
if(Zoomer.isAndroid || Zoomer.isiOs){ |
NewerOlder