github.io/it1/bibliotek/index.html

48 lines
2.4 KiB
HTML
Raw Normal View History

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>
<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-27 21:24:01 +00:00
<link rel="stylesheet" href="/it1/main.css">
<link rel="stylesheet" href="/it1/css/form.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>
2020-03-27 21:24:01 +00:00
<script type="text/javascript" src="/it1/js/init-firebase.js"></script>
2020-03-27 14:48:13 +00:00
<script type="text/javascript" src="/it1/bibliotek/bok.js"></script>
2020-03-18 02:00:22 +00:00
</head>
<body>
2020-03-27 21:24:01 +00:00
<script type="text/javascript" id="navbar" src="/it1/js/navbar.js"></script>
<div id="content">
2020-03-27 14:48:13 +00:00
<form action="#" method="POST" id="form" class="top">
<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">
2020-03-27 14:48:13 +00:00
<p>&nbsp;</p>
</div>
2020-03-27 21:24:01 +00:00
<a type="submit" class="btn btn-primary" href="javascript: list(firebase.auth().currentUser)">Hent bøker</a>
2020-03-27 14:48:13 +00:00
<div id="books">
</div>
2020-03-18 02:00:22 +00:00
</div>
<script type="text/javascript" src="/it1/bibliotek/bibliotek.js"></script>
</body>
2020-03-18 02:00:22 +00:00
</html>