-
-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy pathTypography.aspx
More file actions
221 lines (184 loc) · 7.11 KB
/
Copy pathTypography.aspx
File metadata and controls
221 lines (184 loc) · 7.11 KB
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<%@ Page Title="" Language="C#" MasterPageFile="~/masterPage1.Master" AutoEventWireup="true" CodeBehind="Typography.aspx.cs" Inherits="System.pages.Typography" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.code-container {
background-color: #1e1e1e;
border: 1px solid #3c3c3c;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.code-header {
background-color: #2d2d30;
padding: 10px 15px;
border-bottom: 1px solid #3c3c3c;
font-size: 14px;
color: #cccccc;
display: flex;
align-items: center;
}
.code-header::before {
content: "📄";
margin-right: 8px;
}
pre code, pre code span {
font-size: 10pt;
line-height: 1.5;
}
</style>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/vs2015.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="divGoodMsgBar">
Ok. Some good message
</div>
<div class="divErrorMsgBar">
Error: Some error message
</div>
<div class="div-center-framed-content">
<h1>H1 Title</h1>
<h2>H2 Title</h2>
<h3>H3 Title</h3>
<input type="submit" value="Input Submit" onclick="return false;" />
<button type="button" value="Button" onclick="return false;">Button</button>
<a href="#" class="buttonmain" onclick="return false;">A Link Button</a>
<h2>Link</h2>
This is a <a href="#" onclick="return false;">Link to another page</a>.
<h2>Message Box</h2>
<button type="button" onclick="showMessage('Ok', 'Good message', true);">
Test Show Good Message
</button>
<button type="button" onclick="showMessage('Error', 'Bad Message', false);">
Test Show Bad Message
</button>
<h2>Action Dialog Box</h2>
<table>
<tr>
<td>Box Title:</td>
<td>
<input type="text" id="confirmationBoxTitle" value="Action Title"></td>
</tr>
<tr>
<td>Box Message:</td>
<td>
<input type="text" id="confirmationBoxMessage" value="Some action message"></td>
</tr>
<tr>
<td>Custom Data:</td>
<td>
<input type="text" id="confirmationBoxCustomData" value="item:1"></td>
</tr>
</table>
<br />
<button type="button" onclick="showConfirm();">Show Confirm Message</button>
<script>
function showConfirm() {
let title = document.getElementById("confirmationBoxTitle").value;
let msg = document.getElementById("confirmationBoxMessage").value;
let customdata = document.getElementById("confirmationBoxCustomData").value;
spShowConfirmDialog(
title,
msg,
customdata,
(customData) => {
showGoodMessage("Yes", "You clicked [Yes] with data: " + customData);
// call some other function here
// save();
},
(customData) => {
showErrorMessage("No", "You clicked [No] with data:" + customData);
// call some other function here
// cancel();
}
);
}
</script>
<h2>Normal Text Lines</h2>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec hendrerit volutpat malesuada. Donec maximus<br />
faucibus ipsum condimentum laoreet. Maecenas egestas ac enim eget mattis. Suspendisse vehicula, erat eget aliquet<br />
bibendum, tortor diam condimentum elit, non feugiat neque eros id lacus. Proin interdum tortor pellentesque est<br />
accumsan malesuada. Duis facilisis varius feugiat. Aenean fermentum scelerisque est, ut blandit neque blandit et.<br />
Vestibulum varius odio vitae dolor sollicitudin, scelerisque luctus metus eleifend. Curabitur auctor tristique nibh,<br />
quis dapibus justo dignissim et. Donec blandit nulla in odio ornare, at ullamcorper lectus viverra.<br />
<br />
<h2>PRE.light-formatted</h2>
<pre class="light-formatted">INSERT INTO product_details (product_id, product_name, unit_price, items_in_stock) VALUES
(101, 'Mechanical Keyboard', 120.00, 75),
(102, 'Gaming Headset', 85.50, 120),
(103, 'External Hard Drive', 99.99, 90),
(104, 'Wireless Mouse', 30.00, 250),
(105, 'USB-C Hub', 45.75, 180);</pre>
<h2>Highlight.js</h2>
<div class="code-container">
<div class="code-header">
C#
</div>
<pre><code class="language-csharp">string constr = "server=localhost;user=root;pwd=1234;database=test1;convertzerodatetime=true;";
string filePath = @"C:\backup.sql";
// Backup , Export
using (var conn = new MySqlConnection(constr))
using (var cmd = conn.CreateCommand())
using (var mb = new MySqlBackup(cmd))
{
conn.Open();
mb.ExportToFile(filePath);
}
// Restore , Import
using (var conn = new MySqlConnection(constr))
using (var cmd = conn.CreateCommand())
using (var mb = new MySqlBackup(cmd))
{
conn.Open();
mb.ImportFromFile(filePath);
}</code></pre>
</div>
<script>
hljs.highlightAll();
</script>
<h2>Form Elements</h2>
<table>
<tr>
<td>Text</td>
<td>
<input type="text" />
</td>
</tr>
<tr>
<td>Number</td>
<td>
<input type="number" />
</td>
</tr>
<tr>
<td>Date</td>
<td>
<input type="date" />
</td>
</tr>
<tr>
<td>Textarea</td>
<td>
<textarea></textarea>
</td>
</tr>
<tr>
<td>Select</td>
<td>
<select>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</td>
</tr>
<tr>
<td>Checkbox</td>
<td>
<input type="checkbox" />
Yes
</td>
</tr>
</table>
</div>
</asp:Content>