-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
114 lines (99 loc) · 2.79 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="color-scheme" content="dark light">
<!-- Custon Css and Js -->
<link rel="stylesheet" href="css/main.css" />
<script src="js/index.js" defer></script>
<title>Pst Post!</title>
</head>
<body>
<nav class="navbar">
<h3>Pst Post!</h3>
</nav>
<div class="container">
<h1 class="head">Welcome to Pst Post</h1>
</div>
<div class="container-Head">
<!-- Url Box -->
<div class="url-group">
<label for="url" class="url">URL: </label>  
<input id="url" type="text" placeholder="//api.github.com" />
</div>
<!-- Request Type Get or Post Radio button -->
<div class="side-by-side">
<div class="container-feildset">
<fieldset id="reqType" class="fieldset">
<legend class="heading">Request Type:</legend>
<div>
<input type="radio" name="get-or-post" id="get" value="get" checked />
<label for="get">
GET
</label>
</div>
<div>
<input type="radio" name="get-or-post" id="post" value="post" />
<label for="post">
POST
</label>
</div>
</fieldset>
</div>
<!-- Content Type Box -->
<section id="post-related-stuff-here">
<div class="container ">
<fieldset id="contentType" class="fieldset">
<legend class="heading">Content Type:</legend>
<div>
<input type="radio" name="content-type" id="json" value="json" checked />
<label for="json">
JSON
</label>
</div>
<div>
<input type="radio" id="custom" name="content-type" value="custom" />
<label for="custom">
Custom Parameters
</label>
</div>
</fieldset>
</div>
</div>
</div>
<!-- show only when custom parameters is selected -->
<div id="params-container">
<div class="parameterBox">
<p>Parameter 1:</p>
<div class="input">
<input type="text" id="key1" class="textarea" placeholder="Parameter 1 Key">
<input type="text" id="value1" class="textarea" placeholder="Parameter 1 Value">
<button class="btn"> + </button>
</div>
</div>
<div id="params"></div>
</div>
<!-- Json Requst Box -->
<!-- show when JSON is selected -->
<div id="Json">
<label for="Json-Box">Request Json:</label>
<textarea class="textarea" id="Json-Box"></textarea>
</div>
</section>
<div id="submit">
<button class="btn">
Submit
</button>
</div>
<hr>
<div id="Response">
<fieldset>
<legend for="response-box" class="heading">Your response will appear here:</legend>
<textarea id="response-box" class="textarea"></textarea>
</fieldset>
</div>
<footer>
</body>
</html>