-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
53 lines (47 loc) · 2.23 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width = device-width, initial-scale = 1">
<title>Blood Donor Portal</title>
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Didact+Gothic|Fira+Sans|Gudea|Istok+Web|Maven+Pro|Muli|Oxygen|Varela+Round" rel="stylesheet">
<link href="index_style.css" rel="stylesheet">
</head>
<body class="container">
<h2 class="text-center blockquote" id="quote"></h2>
<div class="row">
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8 col-xs-push-2 col-sm-push-2 col-md-push-2 col-lg-push-2">
<div class="box shadow row">
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 rand">
<p class="infotext">Become a Donor</p>
<button class="btn btn-default btn-lg">
<a href="join/index.php">Join Now</a>
</button>
</div>
<div class="divider hidden-sm hidden-xs"></div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 rand">
<p class="infotext">List of Donors</p>
<button class="btn btn-default btn-lg">
<a href="list/list.php">View List</a>
</button>
</div>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script>
$(document).ready(function() {
$.get("quotes.txt", function(data, status) {
var obj = (JSON.parse(data)[0]);
var quotes = Object.keys(obj).map(function(key) {
return obj[key];
});
$("#quote").text(quotes[(Math.floor(Math.random() * 100) + 1) % quotes.length]);
});
// alert(Math.floor(Math.random() * 10) + 1);
})
</script>
</body>