Sha256: 2749ec416f2af0656f184a0b707d2e558244c75a92f77fec8400a15117ab1719

Contents?: true

Size: 1.64 KB

Versions: 7

Compression:

Stored size: 1.64 KB

Contents

{:uriI"Äfile:///Users/leandro/src/job_notifier/app/assets/javascripts/job_notifier/notifier.js?type=application/javascript&pipeline=self&id=cfbfd1faad5b670e5615f5e90b70a587a640a018c585cb03d4dd3af8fa1b27c5: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"Bdocument.addEventListener("DOMContentLoaded", init);

var jobIdentifier;

function init() {
  var body = document.querySelector("body");
  jobIdentifier = body.dataset.identifier;

  setInterval(poll, 5000);
}

function poll() {
  var oReq = new XMLHttpRequest();
  oReq.onload = reqListener;
  oReq.onerror = reqError;
  oReq.open('get', '/job_notifier/jobs.json?identifier=' + jobIdentifier, true);
  oReq.send();
}

function reqListener() {
  var data = JSON.parse(this.responseText);
  console.log(data);
}

function reqError(err) {
  console.log('Fetch Error :-S', err);
}
;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"%ËmD†ö;r‹*»âðT?9¸,‚ùåéÜ÷3ÕËû:lengthiB:dependencies_digest"%íHžûÀe)L_X]¯¬Ñ¯p§íge‹-§}<=Ø:idI"Ecfbfd1faad5b670e5615f5e90b70a587a640a018c585cb03d4dd3af8fa1b27c5;F:
mtimel+ÙW

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
job_notifier-1.4.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/rb211rx9FzOj8vGKtKhU5n1FwFsceGcRy8FZhBjYT2A.cache
job_notifier-1.1.1 spec/dummy/tmp/cache/assets/sprockets/v3.0/rb211rx9FzOj8vGKtKhU5n1FwFsceGcRy8FZhBjYT2A.cache
job_notifier-1.1.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/rb211rx9FzOj8vGKtKhU5n1FwFsceGcRy8FZhBjYT2A.cache
job_notifier-1.0.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/rb211rx9FzOj8vGKtKhU5n1FwFsceGcRy8FZhBjYT2A.cache
job_notifier-0.2.1 spec/dummy/tmp/cache/assets/sprockets/v3.0/rb211rx9FzOj8vGKtKhU5n1FwFsceGcRy8FZhBjYT2A.cache
job_notifier-0.2.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/rb211rx9FzOj8vGKtKhU5n1FwFsceGcRy8FZhBjYT2A.cache
job_notifier-0.1.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/rb211rx9FzOj8vGKtKhU5n1FwFsceGcRy8FZhBjYT2A.cache