Sha256: c66f4deb22b13878ac3f78d6b0fcac68e8427abdd96a98a7f1a1e8c1436af933
Contents?: true
Size: 831 Bytes
Versions: 6
Compression:
Stored size: 831 Bytes
Contents
I"3(function() { jQuery(function() { var poll_interval, poll_start; poll_interval = 2; poll_start = function(el) { var href; href = el.attr("href"); el.parent().text("Starting..."); $("#main").addClass("polling"); setInterval((function() { return $.ajax({ dataType: "text", type: "get", url: href, success: function(data) { $("#main").html(data); return $("#main .time").relativeDate(); } }); }), poll_interval * 1000); return location.hash = "#poll"; }; if (location.hash === "#poll") { poll_start($("a[rel=poll]")); } return $("a[rel=poll]").click(function(e) { e.preventDefault(); return poll_start($(this)); }); }); }).call(this); :ET
Version data entries
6 entries across 4 versions & 1 rubygems