-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
140 lines (112 loc) · 3.69 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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE html>
<html>
<script>
function test_print(){
console.log("test code")
}</script>
<head>
<title>Assignment 1</title>
</head>
<body>
<h1 text="center">HTTP Requests </h1>
<!---ID Table-->
<hr>
<button id="getIDbutton">Get IDs</button>
<table id="idTable">
<thead>
<tr>
<th>ID</th>
</tr>
</thead>
<tbody></tbody>
</table>
<!---Search for tweet, by entering an ID-->
<form>
<table style="margin-left:auto; margin-right:auto;">
<tr>
<td><label>Tweet Search</label></td>
<td><input class="form-control" type="text" name="searchEntry" id="searchEntry" required/></td>
</tr>
</table>
<button class="button" id="getTweetbutton" required> Get Tweet</button>
</form>
<!---Display that tweet you searched-->
<table id="specificTweetTable">
<thead>
<tr>
<th>Text</th>
<th>Created At</th>
</tr>
</thead>
<tbody></tbody>
</table>
<!--Table that displays the created time and text (displayTable)-->
<hr>
<form>
<table id="displayTable">
<thead>
<tr>
<th>Created At</th>
<th>Text</th>
</tr>
</thead>
<tbody></tbody>
</table>
<button type="submit" id="getDisplay" >Get Tweets</button>
</form>
<hr>
<form id="create-form2">
<table style="margin-left:auto; margin-right:auto;">
<tr>
<td><label>User ID</label></td>
<td><input class="form-control" type="text" name="idEntry" id="idEntry" required/></td>
<td><label>Text</label></td>
<td><input class="form-control" type="text" name="textEntry" id="textEntry" required/></td>
</tr>
</table>
<!---Form to create new tweet and Table that displays the newly created tweets-->
<table id="createTable">
<thead>
<tr>
<th>ID</th>
<th>Text</th>
</tr>
</thead>
<tbody></tbody>
</table>
<button id ="createButton"> Create tweet</button>
<button id="get-button4"></button>
</form>
<!--Input fields to change screen name-->
<hr>
<form id="create-form3">
<table style="margin-left:auto; margin-right:auto;">
<tr>
<td><label>Name</label></td>
<td><input class="form-control" type="text" name="nameEntry" id="nameEntry" required/></td>
<td><label>New Screen Name</label></td>
<td><input class="form-control" type="text" name="usernameEntry" id="usernameEntry" required/></td>
</tr>
</table>
<button id ="updateButton"> Update Name</button>
<button background-color="#FFFFFF" id="get-button5"></button>
</form>
<!--Table that displays the names and new screen name-->
<table id="nameTable" >
<th>Name</th>
<th>New Screen Name</th>
</table>
<script src="jquery.js"></script>
<script src="scripts.js"></script>
<hr>
<form>
<table style="margin-left:auto; margin-right:auto;">
<tr>
<td><label>Tweet Delete</label></td>
<td><input class="form-control" type="text" name="deleteEntry" id="deleteEntry" required/></td>
</tr>
</table>
<button id="deleteButton"> delete tweet</button>
</form>
</body>
</html>