38 lines
1.8 KiB
HTML
38 lines
1.8 KiB
HTML
|
<!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">
|
||
|
<link rel="stylesheet" href="../main.css">
|
||
|
<link rel="stylesheet" href="../css/form.css">
|
||
|
<link rel="stylesheet" href="../css/gjestebok.css">
|
||
|
<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>
|
||
|
<script type="text/javascript" src="../js/init-firebase.js"></script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<script type="text/javascript" id="navbar" src="../js/navbar.js"></script>
|
||
|
<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>
|
||
|
<p id="status"></p>
|
||
|
</div>
|
||
|
<script type="text/javascript" src="gjestebok.js"></script>
|
||
|
</body>
|
||
|
</html>
|