Delete scripts.js

This commit is contained in:
jlevine18 2019-01-06 12:54:35 -06:00 committed by GitHub
parent 5a0fe35f86
commit 47cce54b3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,28 +0,0 @@
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="+";
});
});