{:uriI"Öfile:///home/bauser/Documents/dev/ruby/opensource/hatchy/app/assets/javascripts/hatchy/projects/show.js?type=application/javascript&pipeline=debug&id=1029d06ebd2b03e3249d86c23b3186e64731cac5164d1193d758f770a92545ae:ET:load_pathI"M/home/bauser/Documents/dev/ruby/opensource/hatchy/app/assets/javascripts;T: filenameI"e/home/bauser/Documents/dev/ruby/opensource/hatchy/app/assets/javascripts/hatchy/projects/show.js;T: nameI"hatchy/projects/show;T:logical_pathI""hatchy/projects/show.debug.js;T:content_typeI"application/javascript;T: sourceI"°var show = (function(){ // Cache DOM var $time = $('#clock'); var $description = $('#description'); var $budget = $('#budget'); var $posts = $('#posts'); var $hash = window.location.hash var $ulMenu = $.grep( $( '#project-show li a' ), function (o) { return o.hash === window.location.hash; }); var $ulMenuDescription = $.grep( $( '#project-show li a' ), function (o) { return o.hash === '#description'; }); // Bind Events //$ulMenu.on('click', defineCurrentView()); // Functions function showHashLocation() { if ($hash == '') { $($ulMenuDescription).parent().addClass('active'); } else { $($ulMenu).parent().addClass('active'); } } function defineCurrentView(){ if ($hash == '') { $budget.addClass('hidden'); $posts.addClass('hidden'); } else { $budget.addClass('hidden'); $posts.addClass('hidden'); $description.addClass('hidden'); $($hash).removeClass('hidden'); } } function setClock() { $time.countdown($time.data('time')) .on('update.countdown', function (e) { var format = '%H:%M:%S'; if(e.offset.days > 0) { format = '%-d day%!d ' + format; } if(e.offset.weeks > 0) { format = '%-w week%!w ' + format; } $(this).html(e.strftime(format)); }) .on('finish.countdown', function(e) { $(this).html('This offer has expired!') .parent().addClass('disabled'); }); } setClock(); showHashLocation(); defineCurrentView(); return{}; })(); ;T: metadata{ :dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"[processors:type=application/javascript&file_type=application/javascript&pipeline=debug;TTI"sfile-digest:///home/bauser/Documents/dev/ruby/opensource/hatchy/app/assets/javascripts/hatchy/projects/show.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TT: linkso;;{: included[I"Õfile:///home/bauser/Documents/dev/ruby/opensource/hatchy/app/assets/javascripts/hatchy/projects/show.js?type=application/javascript&pipeline=self&id=cc48c4f0f4f135ad568a3b39c481867a399740383455ff23f3df2570e7bbaa66;T: charsetI" utf-8;F: digest"%È›©áS>Z“g„Ï[õ‘Tòµ CÞü€ øŽ^: lengthi°:dependencies_digest"%ŒhÙçoŠ§Ñ/Õ·Ûðdp‰Î¬ù« Y´¬— :idI"E1029d06ebd2b03e3249d86c23b3186e64731cac5164d1193d758f770a92545ae;F: mtimel+6í¯V