-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeed.php
More file actions
64 lines (56 loc) · 1.91 KB
/
feed.php
File metadata and controls
64 lines (56 loc) · 1.91 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fantasy Football No Huddle</title>
<link rel="stylesheet" href="header.css">
<link rel="stylesheet" href="colors.css">
<link rel="stylesheet" href="feed.css">
<?php include("session_handling.php");
ensure_logged_in();
/*i'm setting the cookies stuff*/
$username = $_SESSION['username'];
$leagueid = $_SESSION['leagueid'];
$leaguename = $_SESSION['leaguename'];
$teamid = $_SESSION['teamid'];
$teamname = $_SESSION['teamname'];
$currentweek = 1;
$week = $currentweek;
?>
<script>const curUser = <?php echo '"' . $username . '"'?>;
const leagueid = <?php echo $leagueid; ?></script>
<script src="feed.js" defer></script>
</head>
<body>
<?php
include("header.html");
include("nav.html");?>
<div id="root">
<!-- Chat Window -->
<div id="chat-window">
<!-- Fake starter messages to show what should look like -->
<!-- You may delete if you choose once you get everything working
<span class="user">User1:</span>
<span class="message">Hey how's it going?</span>
<span class="user">User2:</span>
<span class="message">Good how about you?</span>
<span class="user">User1:</span>
<span class="message">Pretty good</span>
<span class="user">User3:</span>
<span class="message">Hey I'm good too, thanks for asking</span>-->
<!-- More chats will go here! -->
</div>
<!-- Chat Inputs (text box and Send button) -->
<form id="chat-form">
<textarea id="input" rows="3" autofocus></textarea>
<input type="submit" value="Send" id="send-btn">
</form>
<!-- Gif Button and div
<button id="gif-btn">Get Gifs</button>
<div id="gifs">
<!-- Populate using GIPHY API -->
</div>
</div>
</body>
</html>