started website

This commit is contained in:
jlevine18 2018-11-28 11:10:38 -06:00 committed by GitHub
parent cce111bd6a
commit 46f434b815
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 84 additions and 0 deletions

28
website/scripts.js Normal file
View File

@ -0,0 +1,28 @@
var currentPageNum=0;
var contentArray=[];
$(document).ready(function(){
$("#add").click(function(){
var x = $('.formNavi').length;
$("#add").before("<div class='formNavi'><input type='text' name='' value='Page "+x+"'></div>");
$("#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("<div class ='question'>");
$("#add").text="+";
});
});

56
website/style.css Normal file
View File

@ -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;
}