This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhead2.html
73 lines (64 loc) · 2.28 KB
/
head2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<html>
<head>
<script src="https://www.gstatic.com/firebasejs/4.0.0/firebase.js"></script>
<link rel="stylesheet" href="./car_scanner.css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" />
</head>
<body>
<div class='bg-info'>
<div class='row'>
<div class='col-md-2 col-sm-2 col-lg-2'>
<a href='main2.html' target = "_top">
<img src='home-image.png' width=100% height=100px>
</a>
<!-- <a href="main.html">Home button</a> -->
</div>
<div class='col-md-8 col-sm-8 col-lg-8' style="padding : 1.5% 0 0 1%">
<div style="float : left">
<a href="main2.html" target = "_top" style="font-size: 250%;">Driver School scanner</a>
</div>
<div style = "padding-left: 1.2%; padding-top: 0.7%; float : left">
<i id="help" style="font-size: 250%;" class="fa fa-question-circle" aria-hidden="true"></i>
</div>
</div>
<div class ='col-md-2 col-sm-2 col-lg-2'>
<br>
<div align = "right" style="margin-right : 0.5cm; padding-top: 3%;">
<button id='btn-mypage' type='button' class='btn btn-primary btn-lg' style="width: 100px;" onclick="goto_mypage_function()">My page</button>
<button id='btn-logout'type='button' class='btn btn-primary btn-lg' style="width: 100px;" onclick="solvingfunction()">Log-out</button>
</div>
</div>
</div>
</div>
<style>
i:hover{
cursor: hand;
}
</style>
<script>
var config = {
apiKey: "AIzaSyApEs803NuXtJukZzsjBL7SKFqrMHjGjnI",
authDomain: "cs492-test.firebaseapp.com",
databaseURL: "https://cs492-test.firebaseio.com",
projectId: "cs492-test",
storageBucket: "cs492-test.appspot.com",
messagingSenderId: "233920767382"
};
firebase.initializeApp(config);
var database = firebase.database()
var curRef = database.ref("cur/-Kl40P02UGAr7kMtn9bE")
function solvingfunction() {
top.location="main.html"
curRef.update({
status:0
})
}
</script>
<script>
function goto_mypage_function() {
top.location="mypage.html"
}
</script>
</body>
</html>