Skip to content

Instantly share code, notes, and snippets.

@tuki0918
Created July 2, 2013 01:48
Show Gist options
  • Save tuki0918/5906223 to your computer and use it in GitHub Desktop.
Save tuki0918/5906223 to your computer and use it in GitHub Desktop.
http://raizin-japan.com/cool/ の canvasで動いてる部分のみ下に移動するやつ ChromeのConsoleで実行
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 ->
top = $(this).css('top').replace('px', '')
$(this).css('top', (parseInt(top, 10)+600)+'px')
return
var h, hidden, s, smokes, _i, _j, _len, _len1;
smokes = ['.vSmokeL', '.hSmokeL', '.cSmokeL', '.vSmokeR', '.hSmokeR', '.cSmokeR'];
hidden = ['.main-copy', '.product-info'];
for (_i = 0, _len = hidden.length; _i < _len; _i++) {
h = hidden[_i];
$(h).each(function() {
$(this).css('visibility', 'hidden');
});
}
for (_j = 0, _len1 = smokes.length; _j < _len1; _j++) {
s = smokes[_j];
$(s).each(function() {
var top;
top = $(this).css('top').replace('px', '');
$(this).css('top', (parseInt(top, 10) + 600) + 'px');
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment