From c4a32aeb420dd7849b7a09fd797b146acffe8e1c Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 2 Oct 2016 11:10:08 -0400 Subject: [PATCH] More toolbars/back buttons --- complete.html | 10 ++++++++-- css/main.css | 2 +- js/complete.js | 4 ++++ js/repo.js | 4 ++++ repo.html | 42 ++++++++++++++++++++++++------------------ type.html | 4 +++- 6 files changed, 44 insertions(+), 22 deletions(-) diff --git a/complete.html b/complete.html index 26f470e..5d20ee3 100644 --- a/complete.html +++ b/complete.html @@ -6,8 +6,14 @@ -

-

Return to repo or start.

+
+ +
+ +
+

+

Return to repo or start.

+
diff --git a/css/main.css b/css/main.css index c5cdc0d..d81fe8e 100644 --- a/css/main.css +++ b/css/main.css @@ -33,7 +33,7 @@ height: 20px; } -.CodeMirror { +#content { margin-top: 33px; } diff --git a/js/complete.js b/js/complete.js index 42bbf28..8ef54f5 100644 --- a/js/complete.js +++ b/js/complete.js @@ -8,3 +8,7 @@ let file = hashBits[hashBits.length - 1]; $("#congrats").html(`Congratulations, you've completed ${file} in ${repoName}!`); $("#repo").attr("href", `/repo.html#${repo}`); + +$("#back").click(() => { + window.location.href = `/type.html#${hash}`; +}); diff --git a/js/repo.js b/js/repo.js index dc68d5b..88ed59e 100644 --- a/js/repo.js +++ b/js/repo.js @@ -23,3 +23,7 @@ $("#form").submit((event) => { let file = $("#file").val(); window.location.href = `/type.html#${repo}/${file}`; }); + +$("#back").click(() => { + window.location.href = "/"; +}); diff --git a/repo.html b/repo.html index f194df2..a528a59 100644 --- a/repo.html +++ b/repo.html @@ -6,27 +6,33 @@ - - -

- -

Previous Files

-
- +
+
-

New File

-
- -
- -
+
+ + +

+ +

Previous Files

+
+
    +
    + +

    New File

    +
    + +
    + +
    +
    diff --git a/type.html b/type.html index 3bce600..0a1934f 100644 --- a/type.html +++ b/type.html @@ -72,7 +72,9 @@
    - +
    + +