diff --git a/createwebsite.sh b/createwebsite.sh index f31db76..f96d290 100755 --- a/createwebsite.sh +++ b/createwebsite.sh @@ -1,4 +1,6 @@ #!/bin/sh +rm -rf website/* +rm -rf burgernotes-client-web git clone https://centrifuge.hectabit.org/hectabit/burgernotes-client-web.git --depth=1 mv burgernotes-client-web/* website/ -rm -r burgernotes-client-web website/index.html website/README.md website/LICENSE +rm -rf burgernotes-client-web website/index.html website/README.md website/LICENSE diff --git a/website/homeserver/index.html b/website/homeserver/index.html new file mode 100644 index 0000000..7e64e8c --- /dev/null +++ b/website/homeserver/index.html @@ -0,0 +1,39 @@ + + + + + Signup - Burgernotes + + + + + + + + + + +
+

Homeserver

+

Change your Burgernotes homeserver

+

+ +
+

+

Please put in the URL in standard format; https://, http://, etc.

+
+ + + + + diff --git a/website/privacy/index.html b/website/privacy/index.html index 6bcfa90..23d0e38 100644 --- a/website/privacy/index.html +++ b/website/privacy/index.html @@ -79,7 +79,7 @@ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.


- +

diff --git a/website/static/js/homeserver.js b/website/static/js/homeserver.js index fb3bbb0..3a97ecd 100644 --- a/website/static/js/homeserver.js +++ b/website/static/js/homeserver.js @@ -32,7 +32,12 @@ changeButton.addEventListener("click", (event) => { if (response.status == 200) { localStorage.setItem("homeserverURL", remote) - window.location.href = document.referrer; + if (document.referrer !== "") { + window.location.href = document.referrer; + } + else { + window.location.href = "https://notes.hectabit.org/login"; + } } else if (response.status == 404) { statusBox.innerText = "Not a valid homeserver!"