forked from J3ranch/J3ranch.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_page.html
93 lines (85 loc) · 3.1 KB
/
main_page.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<html>
<head>
<title>UCSchoLArships</title>
<link href="./style.css" type="text/css" rel="stylesheet">
<link href="./main_page.css" type="text/css" rel="stylesheet">
<link href="./scholarship_host.css" type="text/css" rel="stylesheet">
<script src="https://www.gstatic.com/firebasejs/5.5.9/firebase.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.5.9/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.5.9/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.5.9/firebase-auth.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyDwpG2spmCwUbpEH6daawXj5Qgo4CldOr0",
authDomain: "ucscholarship-10628.firebaseapp.com",
databaseURL: "https://ucscholarship-10628.firebaseio.com",
projectId: "ucscholarship-10628",
storageBucket: "ucscholarship-10628.appspot.com",
messagingSenderId: "877779845443"
};
firebase.initializeApp(config);
</script>
</head>
<body>
<div id="advanced-search-modal">
<iframe id="advanced-search-iframe" src="./advanced_search_overlay.html"></iframe>
</div>
<div id="scholarship-modal">
<iframe id="scholarship-iframe" src=""></iframe>
</div>
<dialog id="chat-modal">
<div id="chat-header">
<p>Chat with a Counselor</p>
<div id="chat-buttons">
<div id="chat-minimize" state="closed" title="Minimize Chat"></div>
<div id="chat-close" title="Close Chat">✕</div>
</div>
</div>
<div id="chat-body"><iframe id="chat-iframe" src=""></iframe></div>
</dialog>
<div id="header-container">
<div id="site-name" onclick="location.reload()" tabindex="0">
UCSchoLArships
</div>
<div id="profile-logout">
<img id="profile-pic" tabindex="0" onclick="Profile()" src="https://www.w3schools.com/howto/img_avatar.png">
<button class="green-button" id="logout-button" onclick="logout()">LOGOUT</button>
</div>
</div>
<div id="search-container">
<form>
<input type="text" id="searchbar" name="searchbar" placeholder=" Search" autocomplete="off">
<a id="submit-search" tabindex="0"> 🔍 </a>
</form>
<div id="advanced-search-container">
<a id="reset-search" tabindex="0" href="" onclick="return false;">Clear Search</a>
<a id="advanced-search" tabindex="0" onclick="return false;" href="">Advanced Search</a>
</div>
</div>
<div id="body-container">
<div id="results-container">
<div id="loader">
<div class="loading">
<div class="loading-bar"></div>
<div class="loading-bar"></div>
<div class="loading-bar"></div>
<div class="loading-bar"></div>
</div>
<div id="long-load">The server is taking a while to respond...<br/>Thank you for your patience.</div>
</div>
<div id="no-results">
Sorry, we couldn't find any scholarships that matched your search.<br/>
Please try another search or contact support.
</div>
<table id="results-table">
</table>
</div>
<div id="chat-container">
<button id="counselor-button" class="white-button" onclick="openChat()">Ask a Counselor 🎧</button>
</div>
</div>
<script src="./scholarship_host.js"></script>
</body>
</html>