o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1367526694.6515563: @value" {I" class:EFI"ProcessedAsset;FI"logical_path;F"inkwell_timelines/index.jsI" pathname;F"n/media/workspace/repo/public_projects/inkwell_timelines/app/assets/javascripts/inkwell_timelines/index.jsI"content_type;FI"application/javascript;FI" mtime;FI"2013-05-03T00:31:27+04:00;FI" length;FieI" digest;F"%ed373c3d67ceb288ca65165b5a0d696dI" source;FI"e// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. // // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the // the compiled file. // // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD // GO AFTER THE REQUIRES BELOW. // var inkwell_timelines = { formatDate : function (dateTime) { var date = dateTime.getDate(); var month = dateTime.getMonth() + 1; var hour = dateTime.getHours(); var mins = dateTime.getMinutes(); return (date < 10 ? ('0' + date) : date) + '.' + (month < 10 ? ('0' + month) : month) + '.' + dateTime.getFullYear() + ' ' + (hour < 10 ? ('0' + hour) : hour) + ':' + (mins < 10 ? ('0' + mins) : mins); }, activeTimelineName : function () { var timeline_name = null; var classes = $('.inkwell_timelines .tab-menu .active').attr('class').split(/\s+/); $(classes).each(function(){ if (this.indexOf('timeline_') == 0) timeline_name = this.replace('timeline_', '') ; }); return timeline_name; } }; $(document).ready(function () { $('.inkwell_timelines .date').each(function () { $(this).text(inkwell_timelines.formatDate(new Date(parseInt($(this).text())))); $(this).removeAttr('style'); }); $(window).on('scroll', function(e) { var scrHP = $(".inkwell_timelines").height() + $('.inkwell_timelines').offset().top; var scrH2 = $(this).height() + $(this).scrollTop(); if (scrHP - scrH2 < 50) { console.log('1') } }); }); ;FI"dependency_digest;F"%b4655637d1c5eaeda61354d2f130606eI"required_paths;F["l/home/salkar/.rvm/gems/ruby-1.9.3-p0@global/gems/jquery-rails-2.2.1/vendor/assets/javascripts/jquery.js"p/home/salkar/.rvm/gems/ruby-1.9.3-p0@global/gems/jquery-rails-2.2.1/vendor/assets/javascripts/jquery_ujs.js"n/media/workspace/repo/public_projects/inkwell_timelines/app/assets/javascripts/inkwell_timelines/index.jsI"dependency_paths;F[ {I" path;FI"e/media/workspace/repo/public_projects/inkwell_timelines/app/assets/javascripts/inkwell_timelines;FI" mtime;FI"2013-05-03T00:31:27+04:00;FI" digest;F"%cf0dc77a233c9a9b6df6e6eac6120326{I" path;F"n/media/workspace/repo/public_projects/inkwell_timelines/app/assets/javascripts/inkwell_timelines/index.jsI" mtime;FI"2013-05-03T00:31:27+04:00;FI" digest;F"%c83a2d715da49ec7e2967ebeb86fbad2{I" path;F"l/home/salkar/.rvm/gems/ruby-1.9.3-p0@global/gems/jquery-rails-2.2.1/vendor/assets/javascripts/jquery.jsI" mtime;FI"2013-04-01T21:53:42+04:00;FI" digest;F"%292acea2e6ffd232d17b6156961f2451{I" path;F"p/home/salkar/.rvm/gems/ruby-1.9.3-p0@global/gems/jquery-rails-2.2.1/vendor/assets/javascripts/jquery_ujs.jsI" mtime;FI"2013-04-01T21:53:42+04:00;FI" digest;F"%68e2660daa9fd60ec58496f311b95da8I" _version;F"%6776f581a4329e299531e1d52aa59832