{:uriI"file:///home/bauser/Documents/dev/ruby/opensource/hatchy/app/assets/javascripts/hatchy/projects/show.js?type=application/javascript&pipeline=debug&id=4d174801591c2b523dc2834d7df8ab14348616a6cf5d17575f12bcabdbce1877: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=1c83622eb4e4ee206264991c57be84b6ba0e80a12b12fa22adf37ae7834b6b63;T: charsetI" utf-8;F: digest"%/߈B1MyRƠ1t(}: lengthi:dependencies_digest"%V>I?7.,(̐{xwL:idI"E4d174801591c2b523dc2834d7df8ab14348616a6cf5d17575f12bcabdbce1877;F: mtimel+.V