Sha256: d086ee4ed50609ac73d12f34bbafcacfd4a936cb388d3f4cf4dbaa6ff5fc857d

Contents?: true

Size: 1.63 KB

Versions: 7

Compression:

Stored size: 1.63 KB

Contents

{:uriI"file:///Users/leandro/src/job_notifier/app/assets/javascripts/job_notifier/notifier.js?type=application/javascript&pipeline=self&id=1c603007fe78ed6eeb5bc6f81a84830bccbd6a3c0312e018f3c59de32cc94dfc: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":document.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.error('error', 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"%jTu0>;SP((!$X񉜋;.:lengthi::dependencies_digest"%aَCDMn^/
9
QXӲN:idI"E1c603007fe78ed6eeb5bc6f81a84830bccbd6a3c0312e018f3c59de32cc94dfc;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/4pjDsvMHjE5-Oj3DASnK3woEakz_K5MFjjuuLitMTC4.cache
job_notifier-1.1.1 spec/dummy/tmp/cache/assets/sprockets/v3.0/4pjDsvMHjE5-Oj3DASnK3woEakz_K5MFjjuuLitMTC4.cache
job_notifier-1.1.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/4pjDsvMHjE5-Oj3DASnK3woEakz_K5MFjjuuLitMTC4.cache
job_notifier-1.0.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/4pjDsvMHjE5-Oj3DASnK3woEakz_K5MFjjuuLitMTC4.cache
job_notifier-0.2.1 spec/dummy/tmp/cache/assets/sprockets/v3.0/4pjDsvMHjE5-Oj3DASnK3woEakz_K5MFjjuuLitMTC4.cache
job_notifier-0.2.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/4pjDsvMHjE5-Oj3DASnK3woEakz_K5MFjjuuLitMTC4.cache
job_notifier-0.1.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/4pjDsvMHjE5-Oj3DASnK3woEakz_K5MFjjuuLitMTC4.cache