Created
July 2, 2013 01:48
-
-
Save tuki0918/5906223 to your computer and use it in GitHub Desktop.
http://raizin-japan.com/cool/ の canvasで動いてる部分のみ下に移動するやつ
ChromeのConsoleで実行
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 -> | |
top = $(this).css('top').replace('px', '') | |
$(this).css('top', (parseInt(top, 10)+600)+'px') | |
return |
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 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