2020-03-18 02:00:22 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2020-03-18 02:12:33 +00:00
|
|
|
<title>Firebase basert bibliotek</title>
|
2020-03-26 01:30:12 +00:00
|
|
|
<meta charset="utf-8">
|
2020-03-18 02:00:22 +00:00
|
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" crossorigin="anonymous">
|
2020-03-26 01:30:12 +00:00
|
|
|
<link rel="stylesheet" href="/it1/bibliotek/bibliotek.css">
|
|
|
|
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-app.js"></script>
|
|
|
|
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-firestore.js"></script>
|
|
|
|
<script type="text/javascript" src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
|
2020-03-18 02:00:22 +00:00
|
|
|
<script type="text/javascript" src="/it1/init-firebase.js"></script>
|
|
|
|
</head>
|
2020-03-26 01:30:12 +00:00
|
|
|
<body>
|
|
|
|
<script type="text/javascript" id="navbar" src="/it1/navbar/navbar.js"></script>
|
2020-03-18 02:00:22 +00:00
|
|
|
<div id="content">
|
2020-03-26 01:30:12 +00:00
|
|
|
<form action="#" method="POST" id="form">
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col"><input type="name" class="form-control" id="title" placeholder="Tittel"></div>
|
|
|
|
<div class="col"><input type="name" class="form-control" id="author" placeholder="Forfatter"></div>
|
|
|
|
</div>
|
|
|
|
<input type="name" class="form-control" id="publisher" placeholder="Forlag">
|
|
|
|
<select type="number" class="form-control form-control-sm" id="rating" placeholder="Terningkast">
|
|
|
|
<option>1</option>
|
|
|
|
<option>2</option>
|
|
|
|
<option>3</option>
|
|
|
|
<option>4</option>
|
|
|
|
<option>5</option>
|
|
|
|
<option>6</option>
|
|
|
|
</select>
|
|
|
|
<label>Utgitt</label>
|
|
|
|
<input type="date" class="form-control" id="published" placeholder="Utgitt">
|
|
|
|
</div>
|
|
|
|
<a type="submit" class="btn btn-primary" href="javascript: add()">Legg til</a>
|
|
|
|
</form>
|
|
|
|
<div id="status">
|
|
|
|
<p></p>
|
|
|
|
</div>
|
2020-03-18 02:00:22 +00:00
|
|
|
</div>
|
|
|
|
<script type="text/javascript" src="/it1/bibliotek/bibliotek.js"></script>
|
2020-03-26 01:30:12 +00:00
|
|
|
</body>
|
2020-03-18 02:00:22 +00:00
|
|
|
</html>
|