-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
94 lines (90 loc) · 4.26 KB
/
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
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
94
<?php
include 'db.php';
session_start();
$expiry = 5400; //90 min is 5400 sec
if (isset($_SESSION['login_time']) && (time() - $_SESSION['login_time'] > $expiry)) {
session_unset();
session_destroy();
echo "<script>
alert('Please login again. Your session expired');
window.location.href = 'main_login.php';
</script>";
}
?>
<!DOCTYPE html>
<html>
<head>
<meta name = "viewport" content = "width=device-width, initial-scale=1">
<link rel = "stylesheet" href = "http://comet.cs.brynmawr.edu/~nchoudhary/CS380-Library-System/style.css">
<meta charset = "utf-8">
<link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script defer src = "http://comet.cs.brynmawr.edu/~nchoudhary/CS380-Library-System/login-page.js"></script>
<style>
* {
box-sizing: border-box;
}
body, html {
height: 100%;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
background: rgb(245, 243, 243);
}
</style>
</head>
<body>
<div class = "hero-image">
<div id = "navbar">
<a href = "http://comet.cs.brynmawr.edu/~nchoudhary/CS380-Library-System">Home</a>
<a href = "http://comet.cs.brynmawr.edu/~nchoudhary/CS380-Library-System/main_login.php">Log In</a>
<a href = "http://comet.cs.brynmawr.edu/~nchoudhary/CS380-Library-System/navBookTable.php">Books</a>
<div class = "logo">
<h1 style = "color: yellow; font-size: 25px;text-align: center;">NJM Online Library</h1>
</div>
</div>
</div>
<div class = "row">
<div class = "leftcolumn">
<div class = "card2">
<h2 style = "text-align: center;">Welcome to the NJM Online Library</h2>
<h3>About Us</h3>
<div class = "fakeimg">
<img src = "http://comet.cs.brynmawr.edu/~nchoudhary/CS380-Library-System/images/readonline.jpg">
</div>
<p>NJM is a student owned and run online library where students from different states can request and return books.</p>
<p>We bring to you the latest books from top NY Bestselling authors</p>
<p>Join us for our weekly find reads on instagram through our IG handle NJM_Lib_Reads</p>
<p>We hope you enjoy our amazing collection of antique books and resourceful academic resources for all your school work</p>
<p>We bring to you the latest books from top NY Bestselling authors</p>
</div>
</div>
<div class = "rightcolumn" style= "padding-top: 50px">
<h4><a href = "http://comet.cs.brynmawr.edu/~nchoudhary/CS380-Library-System/main_login.php"> Log In</a></h4>
<h3>Monthly Book Club Reads</h3>
<div class = "fakeimg">
<img src = "http://comet.cs.brynmawr.edu/~nchoudhary/CS380-Library-System/images/persuasion_ja.jpg"> <br>Persuasion by Jane Austen
</div><br>
<div class = "fakeimg"><img src = "http://comet.cs.brynmawr.edu/~nchoudhary/CS380-Library-System/images/anxious_people.jpeg"><br>Anxious People by Fredrick Backman</div><br>
</div>
</div>
<div class = "footer">
<p style = "color:white; text-align: center; ">
<br><br>
Contact us @
Email: ouremail@brynmawr.edu <br>
Mobile: +1 610 526 5000
</p>
</div>
<script>
window.onscroll = function() {myFunction()};
var navbar = document.getElementById("navbar");
var sticky = navbar.offsetTop;
function myFunction() {
if(window.pageYOffset >= sticky) {
navbar.classList.add("sticky")
} else {
navbar.classList.remove("sticky");
}
}
</script>
</body>
</html>