Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Python client 3.0.0 doc #342

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions site2/website-next/static/api/python/3.0.x/ajax.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// Implement simple cached AJAX functions.

var _cache = {};

/*
* Get a promise for the HTTP get responseText.
*/
function httpGetPromise(url) {
const promise = new Promise((_resolve, _reject) => {
httpGet(url, (responseText) => {
_resolve(responseText);
},
(error) => {
_reject(error);
});
});
return promise
}

function httpGet(url, onload, onerror) {
if (_cache[url]) {
_cachedHttpGet(url, onload, onerror);
}
else{
_httpGet(url, onload, onerror);
}
}

function _cachedHttpGet(url, onload, onerror) {
setTimeout(() => { onload(_cache[url]) }, 0);
}

function _httpGet(url, onload, onerror) {

var xobj = new XMLHttpRequest();
xobj.open('GET', url, true); // Asynchronous

xobj.onload = function () {
// add document to cache.
_cache[url] = xobj.responseText;
onload(xobj.responseText);
};

xobj.onerror = function (error) {
console.log(error)
onerror(error)
};

xobj.send(null);
}
2,377 changes: 2,377 additions & 0 deletions site2/website-next/static/api/python/3.0.x/all-documents.html

Large diffs are not rendered by default.

Loading