From dbbf6d6e6cda83d285711a8ce79bbcae493a4be4 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 1 Oct 2016 11:26:40 -0400 Subject: [PATCH] Use index.html for repo/file selector --- index.html | 68 ++++++++------------------------------------------ js/index.js | 8 ++++++ type.html | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 90 insertions(+), 58 deletions(-) create mode 100644 js/index.js create mode 100644 type.html diff --git a/index.html b/index.html index 439451a..1b34a72 100644 --- a/index.html +++ b/index.html @@ -3,70 +3,22 @@ Type - - - - +
+ +
+ +
+ +
+ +
- - - - + diff --git a/js/index.js b/js/index.js new file mode 100644 index 0000000..1842548 --- /dev/null +++ b/js/index.js @@ -0,0 +1,8 @@ +$("#form").submit((event) => { + event.preventDefault(); + + let repo = $("#repo").val(); + let branch = $("#branch").val(); + let file = $("#file").val(); + window.location.href = `/type.html#${repo}/${branch}/${file}`; +}); diff --git a/type.html b/type.html new file mode 100644 index 0000000..439451a --- /dev/null +++ b/type.html @@ -0,0 +1,72 @@ + + + + + Type + + + + + + + + + + + + + + + + +