-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
93 lines (78 loc) · 3.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Orange Tools</title>
<link rel="icon" type="image/x-icon" href="./images/favicon.ico">
<link rel="stylesheet" href="bootstrap/icons.css">
<link rel="stylesheet" href="bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootswatch@4.5.2/dist/united/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body class="">
<nav>
<ul class="sidebar">
<li><a href="javascript::void(0)" onclick=toggleSidebar()><i class="bi bi-x close-btn"></i></a></li>
<li> <a href="./index.html">Json Fromatter</a></li>
<li><a href="./json-writer.html">Json Writer</a></li>
</ul>
<ul class="navbar">
<li><a href="./" class="d-flex align-items-center">
<img src="./images/app_logo.png" width="45" alt="app logo" class="me-1">Orange Tools</a>
</li>
<li class="hideOnMobile">
<div class="dropdown">
<a href="javascript::void(0)" class="dropdown-btn">JSON</a>
<div class="dropdown-content">
<a href="./index.html">Json Fromatter</a>
<a href="./json-writer.html">Json Writer</a>
<!-- <a href="./json-matcher.html">Json Matcher</a> -->
</div>
</div>
</li>
<li class="hideOnMobile dark-mode-ele"><a href="#"><i class="bi bi-circle-half"
onclick="toggleDarkMode()"></i></a></li>
<li class="menu-button" onclick=toggleSidebar()>
<a href="#">
<i class="bi bi-list"></i>
</a>
</li>
</ul>
</nav>
<div class="bg-secodary">
<div class=" toolbar">
<ul>
<li class="disabled saveButton" onclick="downloadFormattedJson()">
<a><i class="bi bi-floppy"></i></a>
</li>
<li onclick="setOrientation()">
<a><i class="bi bi-layout-split rotate-90 orientation-icon"></i></a>
</li>
<li>
<button class="btn btn-primary ms-2 btn-sm" id="formatBtn">
Fromat
</button>
</li>
<li class="text-12">Size : <span id="sizeIndicator">__ x __</span></li>
</ul>
<div class="splitter horizontal" id="splitter">
<div id="first">
<textarea name="json-string" class="textbox" id="jsonStringInput" spellcheck="false"></textarea>
</div>
<div id="separator" style="min-width: 7px;"></div>
<div id="second">
<div class="box w-100 h-100">
<div class="editorArea w-100 h-100">
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/monaco-editor/min/vs/loader.js"></script>
<script src="bootstrap/js/bootstrap.bundle.js"></script>
<script src="json-formatter.js"></script>
<script src="script.js"></script>
</body>
</html>