Permalink
Browse files

don't ask :D

  • Loading branch information...
1 parent 93070c4 commit 0b4019adb1d62d763252432a3ca7123ee284bf23 @Cosmo committed Oct 21, 2012
Showing with 15 additions and 15 deletions.
  1. +15 −15 app/assets/javascripts/ui.js
@@ -1,32 +1,32 @@
$(document).ready(function(){
- $("#video-trigger-minified-open").click(function() {
+ $("#video-trigger-minified").click(function() {
if($("#video").css("margin-top") === "-323px"){
$("#video").animate({"margin-top" : "0"}, 300, 'swing');
- $("#current-video").slideUp(400);
- $("#video-trigger-minified-open").css({"background-color" : "#ff4300"});
- $("#info-trigger-minified-open").css({"background-color" : "#222"});
+ $("#infocard").slideUp(400);
+ $("#video-trigger-minified").css({"background-color" : "#ff4300"});
+ $("#info-trigger-minified").css({"background-color" : "#222"});
} else {
$("#video").animate({"margin-top" : "-323px"}, 300, 'swing');
- $("#video-trigger-minified-open").css({"background-color" : "#222"});
+ $("#video-trigger-minified").css({"background-color" : "#222"});
}
});
$("#video-trigger").click(function() {
$("#video").animate({"margin-top" : "0"}, 300, 'swing');
- $("#current-video").slideUp(400);
- $("#video-trigger-minified-open").css({"background-color" : "#ff4300"});
- $("#info-trigger-minified-open").css({"background-color" : "#222"});
+ $("#infocard").slideUp(400);
+ $("#video-trigger-minified").css({"background-color" : "#ff4300"});
+ $("#info-trigger-minified").css({"background-color" : "#222"});
});
- $("#info-trigger-minified-open").click(function() {
- if($("#current-video").is(":hidden")){
- $("#current-video").slideDown('fast');
+ $("#info-trigger-minified").click(function() {
+ if($("#infocard").is(":hidden")){
+ $("#infocard").slideDown('fast');
$("#video").animate({"margin-top" : "-323px"}, 300, 'swing');
- $("#video-trigger-minified-open").css({"background-color" : "#222"});
- $("#info-trigger-minified-open").css({"background-color" : "#ff4300"});
+ $("#video-trigger-minified").css({"background-color" : "#222"});
+ $("#info-trigger-minified").css({"background-color" : "#ff4300"});
} else {
- $("#current-video").slideUp('fast');
- $("#info-trigger-minified-open").css({"background-color" : "#222"});
+ $("#infocard").slideUp('fast');
+ $("#info-trigger-minified").css({"background-color" : "#222"});
}
});
});

0 comments on commit 0b4019a

Please sign in to comment.