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 addEvent; | |
if('addEventListener' in window){ | |
addEvent = function(elm, eventType, func){ | |
elm.addEventListener(eventType, func, false); | |
}; | |
}else if('attachEvent' in window){ // IE | |
addEvent = function(elm, eventType, func){ | |
elm.attachEvent('on'+eventType, function(){ func.apply(elm); }); | |
}; | |
} |
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
// Fork from Chromium's 'Bufferloader' class | |
// http://chromium.googlecode.com/svn/trunk/samples/audio/doc/loading-sounds.html | |
function BufferLoader(audioContext, urlList, callback){ | |
this.context = audioContext; | |
this.urlList = urlList; | |
this.onload = callback; | |
this.bufferList = []; | |
this.loadCount = 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
QuickLookJSON.qlgenerator | |
CC_QL.qlgenerator | |
QLStephen.qlgenerator | |
QLColorCode.qlgenerator | |
QLMarkdown.qlgenerator | |
ScriptQL.qlgenerator | |
DICOMQuickLook.qlgenerator | |
ProcessingQL.qlgenerator | |
Archive.qlgenerator | |
GBQLGenerator.qlgenerator |
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
mixin loadJQuery(version) | |
script(src='https://ajax.googleapis.com/ajax/libs/jquery/#{version}/jquery.min.js') | |
- var jQueryFallbacks = []; | |
- jQueryFallbacks[0] = 'http://code.jquery.com/jquery-' + version + '.min.js'; | |
- jQueryFallbacks[1] = 'http://ajax.aspnetcdn.com/ajax/jQuery/jquery-' + version + '.min.js'; | |
- jQueryFallbacks[2] = 'js/jquery' + (version.charAt(0) === '1'? '1': '') +'.js'; | |
each url in jQueryFallbacks | |
script. |
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
$ -> | |
video = document.getElementsByTagName('video')[0] | |
$video = null | |
rewind = (videoElm) -> | |
$(videoElm).one 'play', null, -> | |
videoElm.pause() | |
# この条件分岐が無いと DOM Exception 11 Error が発生 | |
# TODO: 原因の発見 |
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
<!--[if lt IE 9]> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<![endif]--> | |
<!--[if gte IE 9]><!--> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> | |
<!--<![endif]--> |
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
script(src='http://cdnjs.cloudflare.com/ajax/libs/knockout/3.0.0/knockout-min.js') | |
script. | |
window.ko || document.write("<script src='/js/knockout.js'><\/script>"); |
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
.sans-serif { | |
font-family: "游ゴシック体", "Yu Gothic", YuGothic, sans-serif; | |
} |
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 isLicenseComment = (function() { | |
// ライセンスコメントかどうか判定する正規表現 | |
var licenseRegexp = /^\!|^@preserve|^@cc_on|\bMIT\b|\bMPL\b|\bGPL\b|\(c\)|License|Copyright/mi; | |
// 直前にライセンスコメントが現れた行を保存する内部変数 | |
var _prevCommentLine = 0; | |
// 実際に`comment`オプションで実行されるのはこの関数 | |
return function(node, comment) { |
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() { | |
'use strict'; | |
function arrayWriteOut(arr, process) { | |
if (!process) { | |
process = function(str) { | |
return str; | |
}; | |
} | |