diff --git a/static/script.js b/static/script.js deleted file mode 100644 index aabdd2f..0000000 --- a/static/script.js +++ /dev/null @@ -1,40 +0,0 @@ -Node.prototype.gel = function (id) { - return this.getElementById(id); -} - -Node.prototype.gcn = function (classname) { - return this.getElementsByClassName(classname); -} - -function dgel(id) { - return document.getElementById(id); -} - -function dgcn(classname) { - return document.getElementsByClassName(classname); -} - -/** - * Asynchronous function. Promises the text content of url. Automatically adds/removes from the loading counter. - * @param {string} url URL to request. Note that unless cross-domain is specifically permitted, this URL must come from the same domain as this file. - */ -async function ajax(url) { //must be called from an async function! use 'await', e.g. "var result = await ajax('https://google.com');" - return new Promise(resolve => { - var pageGetter = new XMLHttpRequest; - pageGetter.onreadystatechange = function () { - if (this.readyState == 4 && this.status == 200) { - resolve(this.responseText); - } else if (this.readyState == 4) { - resolve('Error: Expecting HTTP 200, got HTTP ' + this.status) - } - } - pageGetter.open('GET', url, true) - pageGetter.send(); - }); -} - -async function cont() { - url = dgel('instance-input').value; - j = await ajax('/internal/auth_a?url=' + url) - console.log(j) -} \ No newline at end of file diff --git a/templates/create_password.html b/templates/create_password.html index 489921a..25829fe 100644 --- a/templates/create_password.html +++ b/templates/create_password.html @@ -7,9 +7,6 @@

Create password

Please enter a password for your new Curious Greg account.

-
diff --git a/templates/home.html b/templates/home.html index 961f3a7..1f7ded7 100644 --- a/templates/home.html +++ b/templates/home.html @@ -7,9 +7,6 @@

Welcome

You're all set up and ready to go.

-
You haven't posted to Curious Cat in a while, so we'll wait 14 minutes until we check for new answers. diff --git a/templates/imports.html b/templates/imports.html index 37bbc67..b679da1 100644 --- a/templates/imports.html +++ b/templates/imports.html @@ -1,3 +1,2 @@ - \ No newline at end of file diff --git a/templates/landing_page.html b/templates/landing_page.html index 0f8ea9a..7b11383 100644 --- a/templates/landing_page.html +++ b/templates/landing_page.html @@ -7,14 +7,11 @@

Curious Greg

Connect your Curious Cat and Mastodon accounts for automated crossposting.

- - +

- +

Log In diff --git a/templates/login.html b/templates/login.html index e337492..5f62c4a 100644 --- a/templates/login.html +++ b/templates/login.html @@ -7,9 +7,6 @@

Log in

Log in to your Curious Greg account.

-