Sha256: 0410ff4bc1863c400b7d9b17a9e0aca5e2795eec6a04bcc29b339105b3627121

Contents?: true

Size: 454 Bytes

Versions: 18

Compression:

Stored size: 454 Bytes

Contents

VisitRecorder = {};
VisitRecorder.record = function(data) {
  var date = new Date();
  data.u = document.location.href;
  // data.w = screen.width
  // data.h = screen.height
  data.t = document.title
  data.n = date.getTime();
  if(document.referrer && document.referrer != "") {
    data.r = document.referrer;
  }
  $("body").append("<img class='visit-recorder' src='<%= record_visit_path %>?" + jQuery.param(data) + "' style='display:none;' />");
};

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
concen-0.2.9 app/views/concen/visits/visit_recorder_js.erb
concen-0.2.8 app/views/concen/visits/visit_recorder_js.erb
concen-0.2.7 app/views/concen/visits/visit_recorder_js.erb
concen-0.2.6 app/views/concen/visits/visit_recorder_js.erb
concen-0.2.5 app/views/concen/visits/visit_recorder_js.erb
concen-0.2.4 app/views/concen/visits/visit_recorder_js.erb
concen-0.2.3 app/views/concen/visits/visit_recorder_js.erb
concen-0.2.2 app/views/concen/visits/visit_recorder_js.erb
concen-0.2.1 app/views/concen/visits/visit_recorder_js.erb
concen-0.2.0 app/views/concen/visits/visit_recorder_js.erb
concen-0.1.7 app/views/concen/visits/visit_recorder_js.erb
concen-0.1.6 app/views/concen/visits/visit_recorder_js.erb
concen-0.1.5 app/views/concen/visits/visit_recorder_js.erb
concen-0.1.4 app/views/concen/visits/visit_recorder_js.erb
concen-0.1.3 app/views/concen/visits/visit_recorder_js.erb
concen-0.1.2 app/views/concen/visits/visit_recorder_js.erb
concen-0.1.1 app/views/concen/visits/visit_recorder_js.erb
concen-0.1 app/views/concen/visits/visit_recorder_js.erb