-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
46 lines (41 loc) · 1.46 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Convert JSON Schema to PHP Array Shapes Docstring</title>
<style type="text/css">
textarea {
display: block;
width: 95%;
height: 50vh;
margin: auto;
}
.container {
padding: 10px;
}
</style>
</head>
<body>
<div class="container">
<div style="display: flex; justify-content: space-between">
<h1 style="display: inline;">Convert JSON Schema to PHP Array Shapes Docstring</h1>
<a href="https://github.com/plong-wasin/json-schema-to-php-docstring"
style="margin-top: auto; margin-bottom: auto">
Visit github
</a>
</div>
<span style="padding-left: 2.5%;">Json schema from <a
href="https://app.quicktype.io?l=schema">quicktype</a></span>
<textarea id="input"></textarea>
<!-- button center -->
<div style="text-align: center; margin-top: 10px">
<input type="checkbox" id="includeStar" checked /><span>include star?</span>
</div>
<button id="convertBtn" style="display: block; margin: 10px auto;">Convert</button>
<span style="padding-left: 2.5%;">Output</span>
<textarea id="output"></textarea>
<script src="./src/script.js"></script>
</div>
</body>
</html>