This file contains hidden or 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 $bgWindow = $('<div/>'); | |
$bgWindow.css({ | |
'background-color': '#222', | |
'opacity': '.95', | |
'position': 'fixed', | |
'left': 0, | |
'top': 0, | |
'width': '100%', | |
'height': '100%', | |
'z-index': 999 |
This file contains hidden or 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 countUp = 24; | |
var field = 'offset'; | |
var re = new RegExp('('+field+'=)(\\d{0,})'); | |
var offset = location.search.match(re); | |
var num = 0; | |
var href = location.href; | |
if (offset) { |
This file contains hidden or 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
smokes = ['.vSmokeL', '.hSmokeL', '.cSmokeL', '.vSmokeR', '.hSmokeR', '.cSmokeR'] | |
hidden = ['.main-copy', '.product-info'] | |
for h in hidden | |
$(h).each -> | |
$(this).css('visibility', 'hidden') | |
return | |
for s in smokes | |
$(s).each -> |
This file contains hidden or 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
module.exports = (grunt)-> | |
grunt.initConfig | |
pkg: grunt.file.readJSON 'package.json' | |
watch: | |
files: ['coffee/**/*.coffee'] | |
tasks: ['coffee', 'tishadow:test'] | |
coffee: | |
compile: | |
files: [ | |
expand: true |
This file contains hidden or 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 total = {}; | |
var year = '2012'; | |
var all = false; | |
function init(num) { | |
if(typeof num !== 'number') { | |
num = 0; | |
$('<div/>').css({ | |
position: 'fixed', | |
left: 0, |
This file contains hidden or 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(){ | |
alert(1); | |
alert(2); | |
alert(3); | |
})(); |
This file contains hidden or 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
<button id="addNewObserver">Add New Observer checkbox</button> | |
<input id="mainCheckbox" type="checkbox"> | |
<div id="observersContainer"></div> |
This file contains hidden or 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
Password = | |
SYMBOL: '!"#$%&\'()' | |
NUMBER: '1234567890' | |
ABC_L: 'abcdefghijklmnopqrstuvwxyz' | |
ABC_U: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
generate: (len)-> | |
password = '' | |
# 11以下 -> 12, 17以上 -> 16 | |
len = 12 if typeof len is 'undefined' or len <= 11 |
This file contains hidden or 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
class DynamicScroll | |
constructor: (@data, @rows)-> | |
@page = 1 | |
@lastIndex = 0 | |
@maxLength = data.length | |
hasNext: -> | |
return @lastIndex < @maxLength | |
next: -> | |
stat = @lastIndex | |
end = @rows * ( @page - 1 ) + @rows |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title></title> | |
<meta name="keywords" content=""> | |
<meta name="description" content=""> |