-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·25 lines (24 loc) · 953 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!-- EXTRA CREDIT - http-equiv attribute added to autmoatically refresh the page every 10 seconds -->
<meta http-equiv="refresh" content="10">
<title>Random Quotes</title>
<link href='https://fonts.googleapis.com/css?family=Playfair+Display:400,400italic,700,700italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/styles.css">
</head>
<!-- functions.php included in file -->
<?php include 'inc/functions.php'; ?>
<!-- EXTRA CREDIT - Random background color included inline -->
<body <?php rand_background($colors); ?> >
<div class="container">
<div id="quote-box">
<!-- printQuote function called to randomly select quote -->
<?php printQuote($quotes);?>
</div>
<button id="loadQuote" onclick="window.location.reload(true)">Show another quote</button>
</div>
</body>
</html>