-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjson-writer.html
99 lines (80 loc) · 3.9 KB
/
json-writer.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
<!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="saveButton" onclick="downloadFormattedJson()">
<a><i class="bi bi-floppy"></i></a>
</li>
<li>
<button class="btn btn-primary ms-2 btn-sm" id="formatBtn">
Fromat
</button>
</li>
<li class="text-12" id="row_call_indicator">
</li>
</ul>
<div class="splitter writer" id="splitter">
<div id="first" class="editorArea">
</div>
</div>
</div>
</div>
<div class='toast-container position-fixed text-success bottom-0 end-0 p-3' style="z-index: 9000;">
<div id='liveToast' class='toast' role='alert' aria-live='assertive' aria-atomic='true' style="color:black;">
<div class='d-flex'>
<div class='toast-body' id="toast-alert-message">
</div>
<button type='button' class='btn-close me-2 m-auto text-danger' data-bs-dismiss='toast' aria-label='Close'></button>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js" integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" integrity="sha384-0pUGZvbkm6XF6gxjEnlmuGrJXVbNuzT9qBBavbLwCsOGabYfZo0T0to5eqruptLy" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.7.1.js" integrity="sha256-eKhayi8LEQwp4NKxN+CfCh+3qOVUtJn3QNZ0TciWLP4=" crossorigin="anonymous"></script>
<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-writer.js"></script>
<script src="script.js"></script>
</body>
</html>