Skip to content

Instantly share code, notes, and snippets.

@Heavyblade
Created March 11, 2013 22:29
Show Gist options
  • Select an option

  • Save Heavyblade/5138471 to your computer and use it in GitHub Desktop.

Select an option

Save Heavyblade/5138471 to your computer and use it in GitHub Desktop.
li((function(){$(function(){var a,b,c,d;return $("#organizationtopmenu-select, #projecttopmenu-select, #usertopmenu-select").change(function(){var a,b;return b=$(this).find("option:selected"),a=b.val(),a==="/logout"?window.location=a:a!=="#"&&modalize(a),!1}),d=$("#peoplescrollerup"),a=$("#peoplescrollerdown"),b=$("ul#user-swatch"),$("ul#user-swatch").css("height",b.height()+80),a.on("touchstart",function(a){var c;a.preventDefault(),c=$(".people_scroller").slider("option","value");if(c<100)return $(".people_scroller").slider("option","value",c+100*(60/b.height()))}),d.on("touchend",function(a){var c;a.preventDefault(),c=$(".people_scroller").slider("option","value");if(c>0)return $(".people_scroller").slider("option","value",c-100*(60/b.height()))}),c=!1,a.bind("touchstart",function(a){a.preventDefault();if(!c)return window.pressingscroll=setInterval(function(){return $("#peoplescrollerdown").click()},100),!1}),a.bind("touchend",function(a){return a.preventDefault(),clearInterval(window.pressingscroll)}),d.bind("touchstart",function(a){a.preventDefault();if(!c)return window.pressingscroll=setInterval(function(){return $("#peoplescrollerup").click()},100),!1}),d.bind("touchend",function(a){return a.preventDefault(),clearInterval(window.pressingscroll)}),$(window).scroll(function(){var a;a=$(window).scrollTop();if(a>=55)return $("body.project.ipad .sidebar #color-swatch").css("margin-top","5px"),$(".sidebar").css("height","100%"),$(".sidebar").css("min-height","100%");a<=55&&$("body.project.ipad .sidebar #color-swatch").css("margin-top",60-a+"px");if(a<0)return $("body.project.ipad .sidebar #color-swatch").css("margin-top","60px")})})})).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment