Sha256: c5c4a0e77d95903757d3a1107b691c807f5bae0295d6d7bc8f79a82bc21f49c8
Contents?: true
Size: 1.93 KB
Versions: 7
Compression:
Stored size: 1.93 KB
Contents
{:uriI"Äfile:///Users/leandro/src/job_notifier/app/assets/javascripts/job_notifier/notifier.js?type=application/javascript&pipeline=self&id=4b1d5b97905fe28cda37437c7bf6dde4865619657dbd442e501b5c6cc25d9591:ET:load_pathI";/Users/leandro/src/job_notifier/app/assets/javascripts;T: filenameI"T/Users/leandro/src/job_notifier/app/assets/javascripts/job_notifier/notifier.js;T: nameI"job_notifier/notifier;T:logical_pathI""job_notifier/notifier.self.js;T:content_typeI"application/javascript;T:sourceI"kvar JobNotifier = JobNotifier || {}; (function(o){ o.init = function() { var body = document.querySelector("body"); o.jobIdentifier = body.dataset.identifier; setInterval(o.poll, 5000); }; o.poll = function() { var oReq = new XMLHttpRequest(); oReq.onload = o.reqListener; oReq.onerror = o.reqError; oReq.open('get', '/job_notifier/jobs.json?identifier=' + o.jobIdentifier, true); oReq.send(); }; o.reqListener = function() { var data = JSON.parse(this.responseText); o.onNotify(data); }; o.reqError = function(err) { console.error('error', err); }; o.onNotify = function(data) { console.info('Override this method with your own logic', data); }; })(JobNotifier); console.log(JobNotifier); document.addEventListener("DOMContentLoaded", JobNotifier.init); ;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"bfile-digest:///Users/leandro/src/job_notifier/app/assets/javascripts/job_notifier/notifier.js;TT: requiredo;;{ :stubbedo;;{ : linkso;;{ :charsetI" utf-8;F:digest"%I"\–˜Ô»:cè–-yÆ»)Óýæmÿã:r:lengthik:dependencies_digest"%ζÛu V™EõjbQÌ<¾4g¾;FºÚª"ÜN…Øj:idI"E4b1d5b97905fe28cda37437c7bf6dde4865619657dbd442e501b5c6cc25d9591;F: mtimel+æ,W
Version data entries
7 entries across 7 versions & 1 rubygems