Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 81 lines (57 sloc) 2.5 KB
<!doctype html>
<html class="no-js" lang="">
<head>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/7.2.3/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.2.3/firebase-firestore.js"></script>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="manifest" href="site.webmanifest">
<link rel="apple-touch-icon" href="icon.png">
<!-- Place favicon.ico in the root directory -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<meta name="theme-color" content="#fafafa">
</head>
<body>
<!-- Add your site or application content here -->
<a href="index.html" class="logolink"><img id="logo2" src="img/logo.png"></a>
<content>
<header class="questionheaders">
Create Question
<a href="questionlist.html" class="questionbuttons">Question List</a>
</header>
<form id="questionform">
<div class="subhead">Question Text:</div>
<input type="text" id="questiontext" placeholder="Hit enter to record a question then view question in Question List">
</form>
<ul id="test"></ul>
</content>
<script type="text/javascript">
var form = document.querySelector('form');
var ul = document.getElementById('questionul');
var button = document.querySelector('button');
var input = document.getElementById('questiontext');
form.addEventListener('submit', function(e) {
e.preventDefault();
questionsArray.push(input.value);
localStorage.setItem('questions', JSON.stringify(questionsArray));
liMaker(input.value);
input.value = '';
});
</script>
<script src="js/vendor/modernizr-3.7.1.min.js"></script>
<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-3.4.1.min.js"><\/script>')</script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<!-- Google Analytics: change UA-XXXXX-Y to be your site's ID. -->
<script>
window.ga = function () { ga.q.push(arguments) }; ga.q = []; ga.l = +new Date;
ga('create', 'UA-XXXXX-Y', 'auto'); ga('set','transport','beacon'); ga('send', 'pageview')
</script>
<script src="https://www.google-analytics.com/analytics.js" async></script>
</body>
</html>