Sha256: f80b2691821f71bad37dcd301122953d3ce9260eea80e964ee5e8a61ea5dd0d0

Contents?: true

Size: 1.62 KB

Versions: 1

Compression:

Stored size: 1.62 KB

Contents

{:uriI"file:///home/franco/Documents/mumuki/laboratory/app/assets/javascripts/application/timer.js?type=application/javascript&pipeline=self&id=f77d65df18f52bb201d6df5551a43e7b785282fe31edc0cc15d218f5dd9e566b:ET:load_pathI"D/home/franco/Documents/mumuki/laboratory/app/assets/javascripts;T:
filenameI"Y/home/franco/Documents/mumuki/laboratory/app/assets/javascripts/application/timer.js;T:	nameI"application/timer;T:logical_pathI"application/timer.self.js;T:content_typeI"application/javascript;T:sourceI"var mumuki = mumuki || {};

(function (mumuki) {
  mumuki.startTimer = function (endDate) {
    var endTime = new Date(endDate).getTime();
    var currentTime = Date.now();
    var diffTime = endTime - currentTime;
    var duration = moment.duration(diffTime, 'milliseconds');
    var interval = 1000;

    setInterval(function () {
      duration = moment.duration(duration - interval, 'milliseconds');
      $('#timer').text(duration.hours() + ":" + duration.minutes() + ":" + duration.seconds())
    }, interval);
  };
})(mumuki);
;T:
metadata{:dependencieso:Set:
@hash}
I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"gfile-digest:///home/franco/Documents/mumuki/laboratory/app/assets/javascripts/application/timer.js;TTF:
requiredo;;}F:stubbedo;;}F:
linkso;;}F:charsetI"
utf-8;F:digest"%z@Dj
՗N4*9	ȷɾe+~:lengthi:dependencies_digest"%0T6B!!?FDɫ!?UI!D:idI"Ef77d65df18f52bb201d6df5551a43e7b785282fe31edc0cc15d218f5dd9e566b;F:
mtimel+3ZZ

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mumuki-laboratory-6.0.3 spec/dummy/tmp/cache/assets/sprockets/v3.0/OK/OKw7U00GzEq1wrNF3jTSi97hxLSBTNCMsOwmm0f3vO4.cache