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 YYYYMMDD (d) { return [d.getFullYear(), '0' + (d.getMonth() + 1), '0' + d.getDate()].join('-').replace(/-\d(\d\d)/g, '-$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
$('#hoge1').delay(700).fadeIn(500, function () { | |
$('#hoge2').delay(700).fadeIn(500, function () { | |
$('#hoge3').delay(700).fadeIn(500); | |
}); | |
}); |
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
$().ajaxSend(function () { | |
if ($('#click_wrapper').length) return; | |
$('<div id="click_wrapper">').appendTo('body').css('opacity', 0); | |
}).bind('ajaxComplete', function () { | |
setTimeout(function () { | |
$('#click_wrapper').remove(); | |
}, 500); | |
}); | |
$('body').live('pageAnimationStart', function () { | |
if ($('#click_wrapper').length) return; |
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
/** | |
* getScrollTop, getScrollLeftの設定 | |
* @returns scroll position | |
*/ | |
$.each([['Top', 'Y'], ['Left', 'X']], function () { | |
var name = this; | |
$[('getScroll' + name[0])] = function () { | |
var b = document.body['scroll' + name[0]] || 0; | |
var e = document.documentElement['scroll' + name[0]] || 0; | |
var s = window['scroll' + name[1]] || 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
var yql = function(qry, suc, err){ | |
var c = "_" + (+new Date), | |
s = document.createElement("script"), | |
t; | |
var clean = function(){ | |
s.parentNode.removeChild(s); | |
window[c] = null; | |
try{ | |
delete window[c]; | |
}catch(err){} |
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
.forEach(function (f) { console.log("\t\t\t'"+f.replace(/\s(\d+)/,function(a,b){return ' '+(b-0+5)})+"',");}); |
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 s=18,e=71,f=29-32,b=Math.abs(f--)+1,a=[];while(f++){var t=s-((e-s)/b)*f;a.push(((t*10)|0)/10);};console.log(a.reverse().join('\n')); |
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
Main.createNotifyIcon(); | |
/* | |
with(require('Keyboard')){ | |
for each(let [n,v] in Iterator(Keyboard.codes)){ | |
println('Alias: '+(n+' ').slice(0,16) | |
+' / Code: 0x'+(('0'+v.toString(16)).slice(-2)) | |
+' / ScanCode: 0x'+(('00'+(new Key(n)).scanCode.toString(16)).slice(-3)) | |
+' / Name: '+(new Key(n)).name); | |
} |
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-animate-css-rotate-scale | |
* Zachary Johnson | |
* www.zachstronaut.com | |
* https://github.com/zachstronaut/jquery-animate-css-rotate-scale/ | |
* This code is currently available for use in all personal or commercial projects | |
* under both MIT and GPL licenses, just like jQuery. | |
* | |
* modified by @kyo_ago 2011-06-02 | |
*/ |
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 (w, r) { | |
w['r'+r] = w['r'+r] || w['webkitR'+r] || w['mozR'+r] || w['msR'+r] || w['oR'+r] || function(c){ w.setTimeout(c, 1000 / 60); }; | |
})(window, 'equestAnimationFrame'); |