You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resize: none; /* Disable manual resize for a cleaner look */
14
+
}
15
+
/* Adjust textarea height and prevent text wrapping */
16
+
.card-bodytextarea.form-control {
17
+
min-height:450px;
18
+
white-space: pre;
19
+
overflow-x: auto;
20
+
}
20
21
</style>
21
22
</head>
22
23
<body>
23
24
24
-
<h1>APON.js Interactive Demo</h1>
25
-
<p>Edit the APON text in the left box and click "Parse" to see the resulting JavaScript object. Edit the JSON in the right box and click "Stringify" to see the APON output.</p>
25
+
<mainclass="container mt-4">
26
+
<divclass="text-center mb-4">
27
+
<h1>APON.js Interactive Demo</h1>
28
+
<pclass="lead">This tool allows you to interactively convert between APON and JavaScript Objects.</p>
29
+
</div>
26
30
27
-
<divclass="container">
28
-
<divclass="column">
29
-
<h2>APON Input</h2>
30
-
<textareaid="apon-input"># Edit this APON text
31
+
<divclass="row g-4">
32
+
<!-- APON Input Column -->
33
+
<divclass="col-md-6">
34
+
<divclass="card h-100">
35
+
<divclass="card-body d-flex flex-column">
36
+
<h5class="card-title">APON Input</h5>
37
+
<pclass="card-text text-muted small">» Edit the APON text and click <strong>Parse to JS Object</strong>.</p>
38
+
<divclass="mb-3 flex-grow-1 d-flex">
39
+
<textareaid="apon-input" class="form-control font-monospace"># Edit this APON text
31
40
server: {
32
41
name: MyServer
33
42
port(int): 8080
@@ -42,13 +51,21 @@ <h2>APON Input</h2>
42
51
|Feel free to edit and test.
43
52
)
44
53
</textarea>
45
-
<buttononclick="runParse()">Parse to JS Object »</button>
46
-
<h4class="error-title">Parse Error</h4>
47
-
<preid="parse-error" class="error"></pre>
54
+
</div>
55
+
<buttonclass="btn btn-primary" onclick="runParse()">Parse to JS Object »</button>
0 commit comments