1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
(global => { global.gl = global.gl || {}; gl.UsagePing = function() { var usage_data_url = $('.usage-data').data('endpoint'); $.ajax({ type: "GET", url: usage_data_url, dataType: "html", success: function (html) { $(".usage-data").html(html); } }); }; })(window);