2020-03-27 22:29:16 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Firebase basert gjestebok</title>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" crossorigin="anonymous">
|
2022-03-29 22:52:36 +00:00
|
|
|
<link rel="stylesheet" href="../main.css">
|
|
|
|
<link rel="stylesheet" href="../css/form.css">
|
|
|
|
<link rel="stylesheet" href="../css/gjestebok.css">
|
2020-03-27 22:29:16 +00:00
|
|
|
<script src="https://www.gstatic.com/firebasejs/7.12.0/firebase-app.js"></script>
|
|
|
|
<script src="https://www.gstatic.com/firebasejs/7.12.0/firebase-auth.js"></script>
|
|
|
|
<script src="https://www.gstatic.com/firebasejs/7.12.0/firebase-firestore.js"></script>
|
|
|
|
<script type="text/javascript" src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
|
2022-03-29 22:52:36 +00:00
|
|
|
<script type="text/javascript" src="../js/init-firebase.js"></script>
|
2020-03-27 22:29:16 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2022-03-29 22:52:36 +00:00
|
|
|
<script type="text/javascript" id="navbar" src="../js/navbar.js"></script>
|
2020-03-27 22:29:16 +00:00
|
|
|
<div id="content">
|
|
|
|
<form action="#" method="POST" id="form" class="top">
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col col-sm-3"><input type="name" class="form-control" id="navn" placeholder="Navn"></div>
|
|
|
|
<div class="col col-sm-9"><input type="name" class="form-control" id="melding" placeholder="Melding"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<a type="submit" class="btn btn-primary" href="javascript: add()">Legg til</a>
|
|
|
|
</form>
|
|
|
|
<div id="status">
|
|
|
|
<p> </p>
|
|
|
|
</div>
|
|
|
|
<!-- <a type="submit" class="btn btn-primary" href="javascript: list()">Hent kommentarer</a> -->
|
|
|
|
<div id="kommentarer">
|
|
|
|
</div>
|
2020-03-28 03:03:36 +00:00
|
|
|
<p id="status"></p>
|
2020-03-27 22:29:16 +00:00
|
|
|
</div>
|
2022-03-29 22:52:36 +00:00
|
|
|
<script type="text/javascript" src="gjestebok.js"></script>
|
2020-03-27 22:29:16 +00:00
|
|
|
</body>
|
|
|
|
</html>
|