blob: fa17510467648aeaf5f8d7b40c68b307979aea5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
$(function() {
var loading = $("#example_request_loading");
if (loading) {
var code = loading.parent();
$.ajax($("#example_request_uri").text()).done(function(data) {
code.text(JSON.stringify(data, null, 2));
}).fail(function() {
code.text("failed to load example....");
});
}
});
|