-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpafterview.php~
executable file
·99 lines (88 loc) · 4.54 KB
/
pafterview.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
95
96
97
98
99
<!--pafterview.html-->
<!DOCTYPE HTML>
<html>
<head>
<link href="css/styles_afterview.css" rel="stylesheet" />
<link href="css/styles.css" rel="stylesheet" />
<link href="css/jQuery.css" rel="stylesheet" />
<script src="js/jquery-1.10.2.js"></script>
<script src="js/jQuery.js"></script>
<script src="js/main.js"></script>
<script src="js/editor.js"></script>
<title>UPresent - Presenter Afterview</title>
</head>
<body>
<div id="header">
<div id="insideHeader"><A HREF="index.php"><img id="logo" src="img/OfficialMiniLogo.png"/></A>
<div id="logInPane">
<?php
$logInForm = '<form id="login" action="" method="post" onSubmit="return checkLogin(this)">
<input id="logInUsername" type="username" name="username" placeholder="Username" required/>
<input id="logInPassword" type="password" name="password" placeholder="Password" required/>
<input id="logInSubmit" type="submit" name="submit" value="Log In"/>
</form>';
if (!empty($_COOKIE['user'])) {
$logout = '<DIV ID="logout">Welcome, <span id="logoutUsername">' . $_COOKIE["user"] . '</span>! <input id="logoutSubmit" type="submit" name="submit" value="Log Out" onClick="logout()" /></DIV>';
echo $logout;
}
else {
echo $logInForm;
}
//echo '<SCRIPT TYPE="text/javascript">alert("' . $_COOKIE["user"] . '");</SCRIPT>';
?>
<script>console.log(document.cookie);</script>
</div>
</div>
</div>
<div id="content">
<!--Title-->
<div id="UPresentTitle">
<h1>Lecture 11 By Chris Raley</h1>
</div>
<!--Left Side Content-->
<div id="LeftCol">
<div id="Slides">
<img src="img/coverview.png" />
</div>
<div id="NoteSection">
<form id="notes">
<fieldset>
<legend>Notes</legend>
<textarea rows="10" cols="63">
You can still type or correct your notes here after you present.
They will be stored automatically along the specific slide that you were viewing at the moment.
</textarea>
</fieldset>
</form>
</div>
</div>
<div id="vline"></div>
<!--Right Side-->
<div id="RightCol">
<div id="Chat">
<fieldset>
<legend>Viewers Chat</legend>
<textarea id="chatHistory" rows="25" cols="63">
User1: I really liked Raley's UPresent
User2: Yeah, he's awesome!
User3: I have something important to say to all. "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
User1: That's boring
Presenter: I can also answer you questions in the chat.
</textarea>
<form id="chatForm">
<input id="chatInput" type="text" name="chatInput" placeholder="You can comment and chat here" size="50"/>
<input id="chatSubmit" type="button" value="Send"/>
</form>
</fieldset>
</div>
</div>
<!--Footer-->
<div id="Footer">
<form id="save">
<input type="button" id="home" value="Home" />
<span id="LogoMessage">Created with <img id="bottomlogo" src="img/logoS.png"/></span>
</form>
</div>
</div>
</body>
</html>