From cce111bd6a63ea218ea37bfddd76cb83fc7c53df Mon Sep 17 00:00:00 2001 From: jlevine18 Date: Wed, 28 Nov 2018 11:06:04 -0600 Subject: [PATCH 1/2] Create index.html --- website/index.html | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 website/index.html diff --git a/website/index.html b/website/index.html new file mode 100644 index 00000000..5ea2865b --- /dev/null +++ b/website/index.html @@ -0,0 +1,28 @@ + + + + + + + + + TitanScout- New Form + + +

TitanScout- New Form

+
+
+
+ +
+
+
+
+
+
New Question
+
Remove Page
+
+ +
+ + + From 46f434b815518c67b7729baf029a19308d5bc1f9 Mon Sep 17 00:00:00 2001 From: jlevine18 Date: Wed, 28 Nov 2018 11:10:38 -0600 Subject: [PATCH 2/2] started website --- website/scripts.js | 28 +++++++++++++++++++++++ website/style.css | 56 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 website/scripts.js create mode 100644 website/style.css diff --git a/website/scripts.js b/website/scripts.js new file mode 100644 index 00000000..1f110633 --- /dev/null +++ b/website/scripts.js @@ -0,0 +1,28 @@ +var currentPageNum=0; +var contentArray=[]; +$(document).ready(function(){ + $("#add").click(function(){ + var x = $('.formNavi').length; + $("#add").before("
"); + $("#add").text="+"; + contentArray.push([]); + currentPageNum=x-1; + }); +}); +$(document).ready(function(){ + $("#RemPage").click(function(){ + if($(".formNavi").length>1){ + $(".formNavi:nth-child("+(currentPageNum+1)+")").remove(); + $("#add").text="+"; + contentArray.splice(currentPageNum,1); + currentPageNum--; + } + }); +}); +$(document).ready(function(){ + $("#newQ").click(function(){ + $("#svb").before("
"); + $("#add").text="+"; + + }); +}); diff --git a/website/style.css b/website/style.css new file mode 100644 index 00000000..3469c055 --- /dev/null +++ b/website/style.css @@ -0,0 +1,56 @@ +body{ + background-color: DodgerBlue ; + color: AliceBlue; + font-family: 'Ubuntu', sans-serif; +} +h1{ + text-align: center; +} +div{ + border: 2px solid AliceBlue; + margin: 5px; +} +#expBar{ + width: auto; + padding: 5px 0; +} +.formNavi{ + background-color: inherit; + width: auto; + display: inline; + border-radius: 5px; +} +input{ + color: AliceBlue; + background-color: DodgerBlue; + width: auto; + border: none; + font-family: inherit; +} +#add{ + padding: 0; +} +#svb{ + border: 2px solid AliceBlue; + border-radius: 5px; + margin: 5px + position: relative; + left: 50%; +} +#newQ{ + width: 140px; + text-align: center; + display: inline; + margin-right: 20px; +} +#RemPage{ + width: 140px; + text-align: center; + display: inline; + margin-left: 20px; +} +#OptionBar{ + width: auto; + text-align: center; + border: none; +}