@jaisocx/css-table-ordered 2.2.4 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,537 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en" class="jsx theme_visible_height">
3
- <head>
4
-
5
- <title>js orderby and sticky scroll</title>
6
-
7
- <meta charset="utf-8" />
8
- <meta content="width=device-width, initial-scale=1.0" name="viewport" />
9
-
10
-
11
-
12
- <!-- <link
13
- rel="icon"
14
- type="image/x-icon"
15
- href="favicon/Icon_Jaisocx.ico"
16
- href-fallback="/favicon.ico"
17
- onerror="javascript: ( () => { console.log( this ); this.onerror = null; this.href = this.getAttribute( 'href-fallback' ); } )();"
18
- /> -->
19
-
20
- <link
21
- rel="icon"
22
- type="image/x-icon"
23
- href="favicon/sandbox_brightday.ico"
24
- href-fallback="/favicon.ico"
25
- onerror="javascript: ( () => { console.log( this ); this.onerror = null; this.href = this.getAttribute( 'href-fallback' ); } )();"
26
- />
27
-
28
-
29
-
30
- <!--# CSS CLEAN START 2: html & css WHEN STARTING A SITE FROM SCRATCH -->
31
-
32
- <!--# importing @jaisocx/css-clean-start-2 IN DEV MODE, TO RESEARCH THE .css STYLES IN BROWSER'S DEV TOOLS IN NETWORKS TAB -->
33
- <!-- <link
34
- rel="stylesheet"
35
- type="text/css"
36
- charset="utf-8"
37
- href="node_modules/@jaisocx/css-table/MediaAndStyles/CssTable_main_relative.css"
38
- href-fallback="../css-table/MediaAndStyles/CssTable_main_relative.css"
39
- onerror="javascript: ( () => { console.log( this ); this.onerror = null; this.href = this.getAttribute( 'href-fallback' ); } )();"
40
- /> -->
41
-
42
- <!--# THE SAME importing @jaisocx/css-clean-start-2 IN PROD MODE, PACKED BY @jaisocx/css-importer TOOL -->
43
- <link
44
- rel="stylesheet"
45
- type="text/css"
46
- charset="utf-8"
47
- href="node_modules/@jaisocx/css-clean-start-2/MediaAndStyles/CssCleanStart_2_main_resolved_minimal.css"
48
- href-fallback="../css-clean-start-2/MediaAndStyles/CssCleanStart_2_main_resolved_minimal.css"
49
- onerror="javascript: ( () => { console.log( this ); this.onerror = null; this.href = this.getAttribute( 'href-fallback' ); } )();"
50
- />
51
-
52
-
53
-
54
-
55
-
56
- <!--# CSS TABLE: css FOR THE SERVER SIDE PRODUCED TABLE MARKUP -->
57
-
58
- <!--# importing @jaisocx/css-table IN DEV MODE, TO RESEARCH THE .css STYLES IN BROWSER'S DEV TOOLS IN NETWORKS TAB -->
59
- <!-- <link
60
- rel="stylesheet"
61
- type="text/css"
62
- charset="utf-8"
63
- href="node_modules/@jaisocx/css-clean-start-2/MediaAndStyles/CssCleanStart_2_main_relative.css"
64
- href-fallback="./../css-clean-start-2/MediaAndStyles/CssCleanStart_2_main_relative.css"
65
- onerror="javascript: ( () => { console.log( this ); this.onerror = null; this.href = this.getAttribute( 'href-fallback' ); } )();"
66
- /> -->
67
-
68
- <!--# THE SAME importing @jaisocx/css-table IN PROD MODE, PACKED BY @jaisocx/css-importer TOOL -->
69
- <link
70
- rel="stylesheet"
71
- type="text/css"
72
- charset="utf-8"
73
- href="node_modules/@jaisocx/css-table/MediaAndStyles/CssTable_main_resolved_minimal.css"
74
- href-fallback="../css-table/MediaAndStyles/CssTable_main_resolved_minimal.css"
75
- onerror="javascript: ( () => { console.log( this ); this.onerror = null; this.href = this.getAttribute( 'href-fallback' ); } )();"
76
- />
77
-
78
-
79
-
80
-
81
-
82
- <!--# CSS TABLE STICKY SCROLL-->
83
- <!--# importing theme in this @jaisocx/css-table-ordered npm package for the table first line columns labels sticky scroll -->
84
- <link
85
- rel="stylesheet"
86
- type="text/css"
87
- charset="utf-8"
88
- href="MediaAndStyles/themes/theme_fixed_columns_labels/theme_fixed_columns_labels.css"
89
- />
90
-
91
-
92
-
93
- <!--# CSS TABLE MOBILE PORTRAIT FOLDER LISTING -->
94
- <!--# importing theme in this @jaisocx/css-table-ordered npm package where mobile portrait fine-tuned for the folder listing view served by the Jaisocx Sites Server -->
95
- <!-- <link
96
- rel="stylesheet"
97
- type="text/css"
98
- charset="utf-8"
99
- href="MediaAndStyles/themes/theme_jaisocx_folder_listing/CssTable_theme_jaisocx_folder_listing_Relative.css"
100
- /> -->
101
-
102
-
103
-
104
-
105
- <style>
106
-
107
- .jsx {
108
- --jsx--css-clean-start-2--h1--font-size: 1.05rem;
109
- --jsx--css-clean-start-2--h2--font-size: 0.9rem;
110
-
111
- --theme-button-width: fit-content;
112
- }
113
-
114
- .jsx themebuttons {
115
- width: fit-content;
116
- display: grid;
117
- grid-auto-flow: column;
118
- column-gap: 3rem;
119
- margin: 0.9rem 0px 1.6rem 0px;
120
- }
121
-
122
- .jsx themebuttons button {
123
- width: var(--theme-button-width);
124
- }
125
-
126
- .current::after {
127
- content: "";
128
- position: absolute;
129
- bottom: -0.3rem;
130
- left: 0;
131
- width: 100%;
132
- height: 0;
133
- max-height: 0;
134
- overflow-y: hidden;
135
- border-bottom-width: 0.14rem;
136
- border-bottom-style: solid;
137
- border-bottom-color: var(--clean-start__text-color);
138
- }
139
-
140
- .jsx button {
141
- background-color: transparent;
142
- text-align: left;
143
- }
144
-
145
- #tooltip-button {
146
- font-family: fantasy;
147
- }
148
-
149
- </style>
150
- </head>
151
- <body>
152
-
153
- <main>
154
-
155
- <content>
156
-
157
- <h1>js orderby and sticky scroll</h1>
158
- <h2>@jaisocx/css-table-ordered</h1>
159
-
160
- <ThemeButtons>
161
- <button id="button-turn-on-base-theme" data-theme="">Base Theme</button>
162
- <button id="button-turn-on-daymode" data-theme="theme_lightmode">Day Mode</button>
163
- <button id="button-turn-on-nightmode" data-theme="theme_darkmode">Night Mode</button>
164
- </ThemeButtons>
165
-
166
- </content>
167
-
168
-
169
- <!--starts markup of the table styled by @jaisocx/css-table-ordered npm package-->
170
- <!--@jaisocx/css-table-ordered extends @jaisocx/css-table having one js class to orderby records in the table, onevent click label of the table column-->
171
- <div class="jsx-css-table-holder jaisocx-folder-listing-columns theme_fixed_columns_labels theme_imaged theme_imaged_base">
172
- <div class="jsx-css-table desktop-columns-labels-holder">
173
-
174
- <!--the first table record with the names of the table columns, shown in the table bright mode-->
175
- <div class="row">
176
-
177
- <div class="cell" data-datatype="number" data-id="0"><span class="column-label">num.</span></div>
178
-
179
- <div class="cell" data-datatype="string" data-id="1"><span class="column-label">Name</span></div>
180
-
181
- <div class="cell" data-datatype="string" data-id="2"><span class="column-label">mime</span></div>
182
-
183
- <div class="cell" data-datatype="number" data-id="3"><span class="column-label">size</span></div>
184
-
185
- <div class="cell" data-datatype="string" data-id="4"><span class="column-label">last modified</span></div>
186
-
187
- <div class="cell" data-datatype="string" data-id="5"><span class="column-label">url relative</span></div>
188
-
189
- </div>
190
- </div>
191
- <div class="jsx-css-table records">
192
-
193
-
194
- <!--table record with props of one file in the current folder-->
195
- <div class="row folder">
196
-
197
- <div class="cell ix number folder table-thin-field-hide-mobile table-thin-field-hide-tablet">
198
- <span class="column-label">num.</span>
199
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
200
- <span class="cell-value">0</span>
201
- </div>
202
-
203
- <div class="cell name string folder ">
204
- <span class="column-label">Name</span>
205
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
206
- <span class="cell-value"><a href="https://update-listing-secure.brightday.email:443/">..</a></span>
207
- </div>
208
-
209
- <div class="cell mimeType string folder table-thin-field-hide-mobile ">
210
- <span class="column-label">mime</span>
211
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
212
- <span class="cell-value">folder</span>
213
- </div>
214
-
215
- <div class="cell size number folder table-thin-field-hide-mobile ">
216
- <span class="column-label">size</span>
217
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
218
- <span class="cell-value">0</span>
219
- </div>
220
-
221
- <div class="cell fileLastModifiedTimestampFormatted string folder table-thin-field-hide-mobile ">
222
- <span class="column-label">last modified</span>
223
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
224
- <span class="cell-value">Wed 30 Jul 2025 23:14:53.814 GMT</span>
225
- </div>
226
-
227
- <div class="cell fileUrlRelative string folder table-thin-field-hide-mobile table-thin-field-hide-tablet">
228
- <span class="column-label">url relative</span>
229
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
230
- <span class="cell-value"><a href="https://update-listing-secure.brightday.email:443/">/</a></span>
231
- </div>
232
-
233
- </div>
234
-
235
-
236
- <!--table record with props of one file in the current folder-->
237
- <div class="row folder">
238
-
239
- <div class="cell ix number folder table-thin-field-hide-mobile table-thin-field-hide-tablet">
240
- <span class="column-label">num.</span>
241
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
242
- <span class="cell-value">1</span>
243
- </div>
244
-
245
- <div class="cell name string folder ">
246
- <span class="column-label">Name</span>
247
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
248
- <span class="cell-value"><a href="https://update-listing-secure.brightday.email:443/several_mime_types/subfolder/">subfolder</a></span>
249
- </div>
250
-
251
- <div class="cell mimeType string folder table-thin-field-hide-mobile ">
252
- <span class="column-label">mime</span>
253
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
254
- <span class="cell-value">folder</span>
255
- </div>
256
-
257
- <div class="cell size number folder table-thin-field-hide-mobile ">
258
- <span class="column-label">size</span>
259
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
260
- <span class="cell-value">0</span>
261
- </div>
262
-
263
- <div class="cell fileLastModifiedTimestampFormatted string folder table-thin-field-hide-mobile ">
264
- <span class="column-label">last modified</span>
265
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
266
- <span class="cell-value">Wed 30 Jul 2025 23:29:30.264 GMT</span>
267
- </div>
268
-
269
- <div class="cell fileUrlRelative string folder table-thin-field-hide-mobile table-thin-field-hide-tablet">
270
- <span class="column-label">url relative</span>
271
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
272
- <span class="cell-value"><a href="https://update-listing-secure.brightday.email:443/several_mime_types/subfolder/">/several_mime_types/subfolder/</a></span>
273
- </div>
274
-
275
- </div>
276
-
277
-
278
- <!--table record with props of one file in the current folder-->
279
- <div class="row ">
280
-
281
- <div class="cell ix number image_webp table-thin-field-hide-mobile table-thin-field-hide-tablet">
282
- <span class="column-label">num.</span>
283
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
284
- <span class="cell-value">2</span>
285
- </div>
286
-
287
- <div class="cell name string image_webp ">
288
- <span class="column-label">Name</span>
289
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
290
- <span class="cell-value"><a href="https://update-listing-secure.brightday.email:443/several_mime_types/1.sm.webp">1.sm.webp</a></span>
291
- </div>
292
-
293
- <div class="cell mimeType string image_webp table-thin-field-hide-mobile ">
294
- <span class="column-label">mime</span>
295
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
296
- <span class="cell-value">image/webp</span>
297
- </div>
298
-
299
- <div class="cell size number image_webp table-thin-field-hide-mobile ">
300
- <span class="column-label">size</span>
301
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
302
- <span class="cell-value">10474</span>
303
- </div>
304
-
305
- <div class="cell fileLastModifiedTimestampFormatted string image_webp table-thin-field-hide-mobile ">
306
- <span class="column-label">last modified</span>
307
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
308
- <span class="cell-value">Wed 30 Jul 2025 23:26:54.792 GMT</span>
309
- </div>
310
-
311
- <div class="cell fileUrlRelative string image_webp table-thin-field-hide-mobile table-thin-field-hide-tablet">
312
- <span class="column-label">url relative</span>
313
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
314
- <span class="cell-value"><a href="https://update-listing-secure.brightday.email:443/several_mime_types/1.sm.webp">/several_mime_types/1.sm.webp</a></span>
315
- </div>
316
-
317
- </div>
318
-
319
-
320
- <!--table record with props of one file in the current folder-->
321
- <div class="row ">
322
-
323
- <div class="cell ix number image_gif table-thin-field-hide-mobile table-thin-field-hide-tablet">
324
- <span class="column-label">num.</span>
325
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
326
- <span class="cell-value">3</span>
327
- </div>
328
-
329
- <div class="cell name string image_gif ">
330
- <span class="column-label">Name</span>
331
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
332
- <span class="cell-value"><a href="https://update-listing-secure.brightday.email:443/several_mime_types/app-icon-16x16.gif">app-icon-16x16.gif</a></span>
333
- </div>
334
-
335
- <div class="cell mimeType string image_gif table-thin-field-hide-mobile ">
336
- <span class="column-label">mime</span>
337
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
338
- <span class="cell-value">image/gif</span>
339
- </div>
340
-
341
- <div class="cell size number image_gif table-thin-field-hide-mobile ">
342
- <span class="column-label">size</span>
343
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
344
- <span class="cell-value">1039</span>
345
- </div>
346
-
347
- <div class="cell fileLastModifiedTimestampFormatted string image_gif table-thin-field-hide-mobile ">
348
- <span class="column-label">last modified</span>
349
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
350
- <span class="cell-value">Wed 30 Jul 2025 23:41:37.270 GMT</span>
351
- </div>
352
-
353
- <div class="cell fileUrlRelative string image_gif table-thin-field-hide-mobile table-thin-field-hide-tablet">
354
- <span class="column-label">url relative</span>
355
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
356
- <span class="cell-value"><a href="https://update-listing-secure.brightday.email:443/several_mime_types/app-icon-16x16.gif">/several_mime_types/app-icon-16x16.gif</a></span>
357
- </div>
358
-
359
- </div>
360
-
361
-
362
- <!--table record with props of one file in the current folder-->
363
- <div class="row ">
364
-
365
- <div class="cell ix number image_png table-thin-field-hide-mobile table-thin-field-hide-tablet">
366
- <span class="column-label">num.</span>
367
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
368
- <span class="cell-value">4</span>
369
- </div>
370
-
371
- <div class="cell name string image_png ">
372
- <span class="column-label">Name</span>
373
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
374
- <span class="cell-value"><a href="https://update-listing-secure.brightday.email:443/several_mime_types/app-icon-16x16.png">app-icon-16x16.png</a></span>
375
- </div>
376
-
377
- <div class="cell mimeType string image_png table-thin-field-hide-mobile ">
378
- <span class="column-label">mime</span>
379
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
380
- <span class="cell-value">image/png</span>
381
- </div>
382
-
383
- <div class="cell size number image_png table-thin-field-hide-mobile ">
384
- <span class="column-label">size</span>
385
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
386
- <span class="cell-value">1255</span>
387
- </div>
388
-
389
- <div class="cell fileLastModifiedTimestampFormatted string image_png table-thin-field-hide-mobile ">
390
- <span class="column-label">last modified</span>
391
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
392
- <span class="cell-value">Wed 30 Jul 2025 23:41:37.273 GMT</span>
393
- </div>
394
-
395
- <div class="cell fileUrlRelative string image_png table-thin-field-hide-mobile table-thin-field-hide-tablet">
396
- <span class="column-label">url relative</span>
397
- <span class="cell-mini-image"><span class="in-cell-mini-image"></span></span>
398
- <span class="cell-value"><a href="https://update-listing-secure.brightday.email:443/several_mime_types/app-icon-16x16.png">/several_mime_types/app-icon-16x16.png</a></span>
399
- </div>
400
-
401
- </div>
402
-
403
- <!--table records finished-->
404
-
405
- </div>
406
- </div>
407
- <!--@jaisocx/css-table-ordered markup finished-->
408
-
409
-
410
- </main>
411
-
412
- </body>
413
-
414
-
415
-
416
-
417
-
418
- <script src="transpiled/Simple/scroll/CssTableScroll.js"></script>
419
- <script src="transpiled/Simple/orderby/CssTableOrderby.js"></script>
420
-
421
-
422
- <script>
423
-
424
- let currentButtonNodeClicked = null;
425
-
426
- let cssClassesNames = [
427
- "jsx",
428
- "theme_visible_height"
429
- ];
430
-
431
-
432
-
433
- // declaring the function, this is used in the event handler of the theme turning button when clicked on this button.
434
- function turnOnTheme ( buttonNodeClicked ) {
435
-
436
- if ( currentButtonNodeClicked !== null ) {
437
- currentButtonNodeClicked.classList.remove( "current" );
438
- }
439
-
440
- const htmlNode = document.getElementsByTagName("html")[0];
441
- const htmlNodeClassList = htmlNode.classList;
442
-
443
- const themeCssClassPrefix = "theme";
444
-
445
- htmlNodeClassList.forEach (
446
- (cssClassName) => {
447
- if ( cssClassesNames.includes( cssClassName ) ) {
448
- return;
449
- }
450
-
451
- if ( cssClassName.startsWith( themeCssClassPrefix ) === true ) {
452
- htmlNodeClassList.remove( cssClassName );
453
- }
454
- }
455
- );
456
-
457
- const themeName = buttonNodeClicked.dataset.theme;
458
- if ( themeName && ( themeName.length !== 0 ) ) {
459
- htmlNode.classList.add( themeName );
460
- }
461
-
462
- currentButtonNodeClicked = buttonNodeClicked;
463
- currentButtonNodeClicked.classList.add( "current" );
464
-
465
- }
466
-
467
- // declaring the function, this adds to buttons the event handler to turn on the theme.
468
- // this function is invoked when the site loads in the browser,
469
- // in the event handler for the event DOMContentLoaded
470
- function addThemeButtonsEventHandlers() {
471
-
472
- const buttonsIDs = [
473
- "button-turn-on-base-theme",
474
- "button-turn-on-daymode",
475
- "button-turn-on-nightmode"
476
- ];
477
-
478
- for ( let buttonId of buttonsIDs ) {
479
-
480
- let buttonNode = document.getElementById( buttonId );
481
-
482
- buttonNode.addEventListener (
483
- "click",
484
- (evt) => {
485
- let buttonNodeClicked = evt.target;
486
- turnOnTheme ( buttonNodeClicked );
487
- }
488
- );
489
-
490
- }
491
- }
492
-
493
-
494
- // DOCUMENT ONLOAD, INVOKES THE FUNCTION TO PRELOAD THEME FONTS
495
- document.addEventListener('DOMContentLoaded', () => {
496
-
497
- // adding to buttons the event handler to turn on the theme.
498
- addThemeButtonsEventHandlers();
499
-
500
- });
501
-
502
- </script>
503
-
504
-
505
-
506
- <script>
507
-
508
- let cssTableScrollInstance = new Object();
509
- let orderbyClassInstance = new Object();
510
-
511
-
512
-
513
- function addScrollEventHandlers() {
514
- cssTableScrollInstance = new CssTableScroll();
515
- cssTableScrollInstance.addScrollEventHandlers();
516
- }
517
-
518
- function addOrderbyEventHandler() {
519
- orderbyClassInstance = new CssTableOrderby();
520
- orderbyClassInstance.setRowsNumberNotOrdered( 1 );
521
- let eventHandlerRetval = orderbyClassInstance.addOrderbyEventHandler();
522
- }
523
-
524
-
525
-
526
- // DOCUMENT ONLOAD
527
- document.addEventListener('DOMContentLoaded', () => {
528
-
529
- addScrollEventHandlers();
530
-
531
- addOrderbyEventHandler();
532
-
533
- });
534
-
535
- </script>
536
-
537
- </html>