Permalink
Cannot retrieve contributors at this time
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?
4475-group1/answer-form.html
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
73 lines (60 sloc)
2.66 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html class="no-js" lang=""> | |
<head> | |
<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 --> | |
<!--what is going on here--> | |
<link rel="stylesheet" href="css/normalize.css"> | |
<link rel="stylesheet" href="css/main.css"> | |
<script src="https://www.gstatic.com/firebasejs/7.3.0/firebase-app.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/7.3.0/firebase-firestore.js"></script> | |
<meta name="theme-color" content="#fafafa"> | |
</head> | |
<body> | |
<!--[if IE]> | |
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p> | |
<![endif]--> | |
<!-- Add your site or application content here --> | |
<div class="container"> | |
<h2>Answer the question: <span id='qName'></span></h2> | |
<form id="answer-form"> | |
<input id='answer' type="text" placeholder="an answer" required/> | |
<button type="submit" class='button' id='asubmit'>Submit</button> | |
</form> | |
</div> | |
<!-- FireBase --> | |
<script> | |
// Your web app's Firebase configuration | |
var firebaseConfig = { | |
apiKey: "AIzaSyAS_r5mMbyjZg-5WvdLmXBjT74GD9MjfG0", | |
authDomain: "dmdwebqa.firebaseapp.com", | |
databaseURL: "https://dmdwebqa.firebaseio.com", | |
projectId: "dmdwebqa", | |
storageBucket: "dmdwebqa.appspot.com", | |
messagingSenderId: "1028880412838", | |
appId: "1:1028880412838:web:6aafb42294f60c226bc467" | |
}; | |
// Initialize Firebase | |
firebase.initializeApp(firebaseConfig); | |
//db is an object that we use in order to interact with the database. | |
const db = firebase.firestore(); | |
db.settings({timestampsInSnapshots: true}); | |
</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> |