v1.2.0-beta/website restructure

This commit is contained in:
Ayushya Amitabh
2020-05-22 12:33:42 -04:00
parent 404f127ebf
commit c373b6e365
59 changed files with 251 additions and 187 deletions
+22
View File
@@ -0,0 +1,22 @@
(function (XHR) {
var open = XHR.prototype.open;
XHR.prototype.open = function (method, url, async, user, pass) {
this._url = url;
if (url.indexOf('gstatic.com') !== -1 || url.indexOf('docs.google.com') !== -1) {
url = 'https://googleformrestyler.apixml.net/corsProxy.aspx?base64Url=' + btoa(url);
}
open.call(this, method, url, async, user, pass);
};
})(XMLHttpRequest);
(function () {
var script =
document.currentScript ||
/*Polyfill*/ Array.prototype.slice.call(document.getElementsByTagName('script')).pop();
var URL = script.getAttribute('form');
var xhr = new XMLHttpRequest();
xhr.open('GET', URL);
xhr.onload = function () {
document.write(xhr.response);
};
xhr.send();
})();