generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
108 lines (103 loc) · 5.68 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.0/css/all.min.css">
<link rel="stylesheet" href="assets/css/style.css">
<title>JSHint Front End</title>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-10">
<h2>JSHinterface</h2>
</div>
<div class="col-md-2 text-end">
<button id="status" class="btn btn-secondary">Check Key</button>
</div>
</div>
<div class="row">
<div class="col"><hr></div>
</div>
<div class="row">
<div class="col">
<form id="checksform">
<div class="row mb-3">
<label for="filename" class="col-2 form-label">Filename:</label>
<div class="col-6">
<input class="form-control" aria-describedby="fileHelp" placeholder="Enter filename" id="filename" name="filename" type="text">
<small id="fileHelp" class="form-text">Mandatory if you are pasting code, but not used if you enter a URL.</small>
</div>
</div>
<div class="row mb-3">
<label for="url" class="col-2 form-label">URL:</label>
<div class="col-6">
<input class="form-control" aria-describedby="urlHelp" placeholder="Enter URL" id="url" name="url" type="url">
<small id="urlHelp" class="form-text">Enter a URL or paste JavaScript content below.</small>
</div>
</div>
<div class="row mb-3">
<label for="options" class="col-2 form-label">Options:</label>
<div class="col-6">
<div class="form-check form-switch form-check-inline">
<input class="form-check-input" name="options" type="checkbox" value="es6">
<label class="form-check-label" for="flexSwitchCheckDefault">ES6</label>
</div>
<div class="form-check form-switch form-check-inline">
<input class="form-check-input" name="options" type="checkbox" value="es8">
<label class="form-check-label" for="flexSwitchCheckDefault">ES8</label>
</div>
<div class="form-check form-switch form-check-inline">
<input class="form-check-input" name="options" type="checkbox" value="harsh">
<label class="form-check-label" for="flexSwitchCheckDefault">Harsh</label>
</div>
<div class="form-check form-switch form-check-inline">
<input class="form-check-input" name="options" type="checkbox" value="jquery">
<label class="form-check-label" for="flexSwitchCheckDefault">jQuery</label>
</div>
<div class="form-check form-switch form-check-inline">
<input class="form-check-input" name="options" type="checkbox" value="relax">
<label class="form-check-label" for="flexSwitchCheckDefault">Relax</label>
</div>
<div class="form-check form-switch form-check-inline">
<input class="form-check-input" name="options" type="checkbox" value="strict">
<label class="form-check-label" for="flexSwitchCheckDefault">Strict</label>
</div>
</div>
</div>
<div class="row mb-3">
<label for="code" class="col-2 form-label">Code:</label>
<div class="col-8">
<textarea class="form-control" id="code" name="code"></textarea><br>
</div>
</div>
</form>
<button class="btn btn-primary text-start" id="submit">Run Checks</button>
</div>
</div>
</div>
<!-- Modal 1 -->
<div class="modal" id="resultsModal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="resultsModalTitle"></h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" id="results-content">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0"
crossorigin="anonymous"></script>
<script src="assets/js/script.js"></script>
</body>
</html>