This repository has been archived by the owner on Dec 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
142 lines (138 loc) · 7.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
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
141
142
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Cloudflare WebDNS</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css"
integrity="sha512-HK5fgLBL+xu6dm/Ii3z4xhlSUyZgTT9tuc/hSrtw6uzJOvgRr2a9jyxxT1ely+B+xFAmJKVSTbpM/CuL7qxO8w=="
crossorigin="anonymous" />
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"></script>
<script defer src="assets/js/functions.js"></script>
<script defer src="assets/js/main.js"></script>
</head>
<body class="bg-dark">
<div class="container">
<div class="card my-5">
<div class="card-header" style="text-align: center;">
<h5 style="margin-bottom: 0;">Cloudflare WebDNS</h5>
</div>
<div class="card-body">
<select class="form-select" aria-label="Zone Selector" id="zones">
</select>
<table class="table">
<thead>
<tr>
<th scope="col">Type</th>
<th scope="col">Name</th>
<th scope="col">Content</th>
<th scope="col">Proxied</th>
<th scope="col"><a onclick="openDnsRecordCreateModal()"><i class="fas fa-plus"></i></a></th>
</tr>
</thead>
<tbody id="records"></tbody>
</table>
</div>
</div>
</div>
<!-- Modal: Create DNS Record -->
<div class="modal fade" id="createDnsRecordModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="createDnsRecordModalLabel">Create DNS Record</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form>
<div class="mb-3">
<label for="createRecordType" class="col-form-label">Type:</label>
<select class="form-control" id="createRecordType">
<option>A</option>
<option>AAAA</option>
<option>CAA</option>
<option>CNAME</option>
<option>TXT</option>
<option>SRV</option>
<option>MX</option>
<option>SSHFP</option>
</select>
</div>
<div class="mb-3">
<label for="createRecordName" class="col-form-label">Name:</label>
<input type="text" class="form-control" id="createRecordName">
</div>
<div class="mb-3">
<label for="createRecordContent" class="col-form-label">Content:</label>
<textarea class="form-control" id="createRecordContent"></textarea>
</div>
<div class="mb-3">
<input class="form-check-input" type="checkbox" id="createRecordProxied">
<label class="form-check-label" for="createRecordProxied">Proxied</label>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" id="createDnsRecord">Create</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modal: Update DNS Record -->
<div class="modal fade" id="updateDnsRecordModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="updateDnsRecordModalLabel">Update DNS Record</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form>
<input type="hidden" id="updateRecordId">
<div class="mb-3">
<label for="updateRecordType" class="col-form-label">Type:</label>
<select class="form-control" id="updateRecordType">
<option>A</option>
<option>AAAA</option>
<option>CAA</option>
<option>CNAME</option>
<option>TXT</option>
<option>SRV</option>
<option>MX</option>
<option>SSHFP</option>
</select>
</div>
<div class="mb-3">
<label for="updateRecordName" class="col-form-label">Name:</label>
<input type="text" class="form-control" id="updateRecordName">
</div>
<div class="mb-3">
<label for="updateRecordContent" class="col-form-label">Content:</label>
<textarea class="form-control" id="updateRecordContent"></textarea>
</div>
<div class="mb-3">
<input class="form-check-input" type="checkbox" id="updateRecordProxied">
<label class="form-check-label" for="updateRecordProxied">Proxied</label>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" id="deleteDnsRecord">Delete</button>
<button type="button" class="btn btn-primary" id="updateDnsRecord">Update</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</body>
</html>