create-fesd-app 1.0.30 → 1.0.31
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.
- package/package.json +2 -2
- package/src/assets/css/layouts/article4/_article4_setting.sass +117 -10
- package/src/assets/css/pages/index.sass +11 -0
- package/src/assets/js/apps/index/page.js +1 -1
- package/src/assets/js/commons/cookies/cookiePolicy.js +57 -95
- package/src/assets/js/commons/inits.js +8 -0
- package/src/layouts/_template.pug +8 -6
- package/src/layouts/components/_cookiePolicy.pug +3 -4
- package/src/pages/about.pug +16 -15
- package/src/pages/index.pug +72 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-fesd-app",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.31",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@tailwindcss/postcss": "^4.1.10",
|
|
26
26
|
"@tailwindcss/vite": "^4.1.10",
|
|
27
|
-
"@xwadex/fesd": "0.0.
|
|
27
|
+
"@xwadex/fesd": "0.0.54",
|
|
28
28
|
"ansi-colors": "^4.1.3",
|
|
29
29
|
"chalk": "^5.3.0",
|
|
30
30
|
"clsx": "^2.1.1",
|
|
@@ -336,6 +336,7 @@ $quote-TB-gap: 20px
|
|
|
336
336
|
// @extend %table_solid_striped
|
|
337
337
|
// @extend %table_border_rows
|
|
338
338
|
// @extend %table_border_full
|
|
339
|
+
// @extend %table_border_full_column
|
|
339
340
|
@extend %table_solidSingle_borderColumn
|
|
340
341
|
|
|
341
342
|
&[data-table-markdown="on"]
|
|
@@ -423,9 +424,15 @@ $quote-TB-gap: 20px
|
|
|
423
424
|
color: #fff
|
|
424
425
|
background-color: #6AA8FF
|
|
425
426
|
tbody
|
|
427
|
+
tr
|
|
428
|
+
td
|
|
429
|
+
&.lefthead
|
|
430
|
+
color: #fff
|
|
431
|
+
background-color: #6AA8FF
|
|
426
432
|
tr:nth-child(even)
|
|
427
433
|
td
|
|
428
|
-
|
|
434
|
+
&:not(.lefthead)
|
|
435
|
+
background-color: #F2F2F2
|
|
429
436
|
%table_solid_striped
|
|
430
437
|
._table
|
|
431
438
|
border-bottom: 5px solid #6AA8FF
|
|
@@ -439,14 +446,22 @@ $quote-TB-gap: 20px
|
|
|
439
446
|
th:nth-child(even)
|
|
440
447
|
background-color: #3287FF
|
|
441
448
|
tbody
|
|
442
|
-
tr
|
|
449
|
+
tr
|
|
443
450
|
td
|
|
451
|
+
&.lefthead
|
|
452
|
+
color: #fff
|
|
453
|
+
&:nth-child(even)
|
|
454
|
+
background-color: #3287FF
|
|
455
|
+
&:nth-child(odd)
|
|
456
|
+
background-color: #6AA8FF
|
|
457
|
+
tr:nth-child(even)
|
|
458
|
+
td:not(.lefthead)
|
|
444
459
|
background-color: #F2F2F2
|
|
445
460
|
%table_border_rows
|
|
446
461
|
._table
|
|
462
|
+
border-top: 2px solid #000
|
|
447
463
|
border-bottom: 2px solid #000
|
|
448
|
-
&:not(:has(thead))
|
|
449
|
-
border-top: 2px solid #000
|
|
464
|
+
// &:not(:has(thead))
|
|
450
465
|
table
|
|
451
466
|
thead
|
|
452
467
|
th
|
|
@@ -458,7 +473,7 @@ $quote-TB-gap: 20px
|
|
|
458
473
|
width: 100%
|
|
459
474
|
height: 2px
|
|
460
475
|
left: 0
|
|
461
|
-
|
|
476
|
+
bottom: 0
|
|
462
477
|
background: #000
|
|
463
478
|
tr:last-child
|
|
464
479
|
th::after
|
|
@@ -470,6 +485,10 @@ $quote-TB-gap: 20px
|
|
|
470
485
|
left: 0
|
|
471
486
|
background: #000
|
|
472
487
|
tbody
|
|
488
|
+
tr
|
|
489
|
+
td
|
|
490
|
+
&.lefthead
|
|
491
|
+
color: #00C5B1
|
|
473
492
|
tr:not(:first-child)
|
|
474
493
|
td
|
|
475
494
|
position: relative
|
|
@@ -480,7 +499,62 @@ $quote-TB-gap: 20px
|
|
|
480
499
|
height: 1px
|
|
481
500
|
top: 0
|
|
482
501
|
left: 0
|
|
502
|
+
transform: translate3d(0, -50%, 0)
|
|
483
503
|
background-color: rgba(#000, .2)
|
|
504
|
+
&.lefthead
|
|
505
|
+
&::after
|
|
506
|
+
background-color: #000
|
|
507
|
+
height: 2px
|
|
508
|
+
%table_border_full_column
|
|
509
|
+
._table
|
|
510
|
+
border-bottom: 2px solid #000
|
|
511
|
+
&:not(:has(thead))
|
|
512
|
+
border-top: 2px solid #000
|
|
513
|
+
table
|
|
514
|
+
thead
|
|
515
|
+
th
|
|
516
|
+
position: relative
|
|
517
|
+
&::before
|
|
518
|
+
content: ''
|
|
519
|
+
position: absolute
|
|
520
|
+
width: 100%
|
|
521
|
+
height: 2px
|
|
522
|
+
bottom: 0
|
|
523
|
+
left: 0
|
|
524
|
+
background-color: #000
|
|
525
|
+
z-index: 5
|
|
526
|
+
tbody
|
|
527
|
+
tr:not(:first-child)
|
|
528
|
+
td
|
|
529
|
+
&::after
|
|
530
|
+
content: ''
|
|
531
|
+
position: absolute
|
|
532
|
+
width: 100%
|
|
533
|
+
height: 1px
|
|
534
|
+
top: 0
|
|
535
|
+
left: 0
|
|
536
|
+
transform: translate3d(0, -50%, 0)
|
|
537
|
+
background-color: rgba(#000, .2)
|
|
538
|
+
tr
|
|
539
|
+
td
|
|
540
|
+
position: relative
|
|
541
|
+
&.lefthead
|
|
542
|
+
font-weight: 600
|
|
543
|
+
&::after
|
|
544
|
+
height: 2px
|
|
545
|
+
background-color: #000
|
|
546
|
+
&:not(:last-child)
|
|
547
|
+
&::before
|
|
548
|
+
content: ''
|
|
549
|
+
position: absolute
|
|
550
|
+
width: 1px
|
|
551
|
+
height: 100%
|
|
552
|
+
top: 0
|
|
553
|
+
right: 0
|
|
554
|
+
background-color: rgba(#000, .2)
|
|
555
|
+
&.lefthead
|
|
556
|
+
&::before
|
|
557
|
+
content: unset
|
|
484
558
|
%table_border_full
|
|
485
559
|
._table
|
|
486
560
|
border-bottom: 2px solid #000
|
|
@@ -503,15 +577,12 @@ $quote-TB-gap: 20px
|
|
|
503
577
|
&:after
|
|
504
578
|
content: ''
|
|
505
579
|
position: absolute
|
|
506
|
-
top:
|
|
580
|
+
top: 25%
|
|
507
581
|
right: 0
|
|
508
582
|
width: 1px
|
|
509
|
-
height:
|
|
510
|
-
transform: translate3d(50%, -50%, 0)
|
|
583
|
+
height: 50%
|
|
511
584
|
background-color: #000
|
|
512
585
|
tbody
|
|
513
|
-
td
|
|
514
|
-
position: relative
|
|
515
586
|
tr:not(:first-child)
|
|
516
587
|
td
|
|
517
588
|
&::after
|
|
@@ -521,9 +592,16 @@ $quote-TB-gap: 20px
|
|
|
521
592
|
height: 1px
|
|
522
593
|
top: 0
|
|
523
594
|
left: 0
|
|
595
|
+
transform: translate3d(0, -50%, 0)
|
|
524
596
|
background-color: rgba(#000, .2)
|
|
525
597
|
tr
|
|
526
598
|
td
|
|
599
|
+
position: relative
|
|
600
|
+
&.lefthead
|
|
601
|
+
font-weight: 600
|
|
602
|
+
&::after
|
|
603
|
+
height: 2px
|
|
604
|
+
background-color: #000
|
|
527
605
|
&:not(:last-child)
|
|
528
606
|
&::before
|
|
529
607
|
content: ''
|
|
@@ -533,11 +611,25 @@ $quote-TB-gap: 20px
|
|
|
533
611
|
top: 0
|
|
534
612
|
right: 0
|
|
535
613
|
background-color: rgba(#000, .2)
|
|
614
|
+
&.lefthead
|
|
615
|
+
&::before
|
|
616
|
+
background-color: #000
|
|
617
|
+
top: 25%
|
|
618
|
+
height: 50%
|
|
536
619
|
%table_solidSingle_borderColumn
|
|
537
620
|
@extend %table_solid_single
|
|
538
621
|
table
|
|
539
622
|
thead
|
|
540
623
|
th
|
|
624
|
+
&::before
|
|
625
|
+
content: ''
|
|
626
|
+
position: absolute
|
|
627
|
+
bottom: 0
|
|
628
|
+
right: 0
|
|
629
|
+
width: 100%
|
|
630
|
+
height: 1px
|
|
631
|
+
z-index: 3
|
|
632
|
+
background-color: #fff
|
|
541
633
|
&:not(:last-child)
|
|
542
634
|
position: relative
|
|
543
635
|
&:after
|
|
@@ -561,6 +653,21 @@ $quote-TB-gap: 20px
|
|
|
561
653
|
width: 1px
|
|
562
654
|
height: 100%
|
|
563
655
|
background-color: rgba(#000, .2)
|
|
656
|
+
tr
|
|
657
|
+
td.lefthead
|
|
658
|
+
&::after
|
|
659
|
+
background-color: #fff
|
|
660
|
+
&:not(:last-child)
|
|
661
|
+
td.lefthead
|
|
662
|
+
&::before
|
|
663
|
+
content: ''
|
|
664
|
+
position: absolute
|
|
665
|
+
bottom: 0
|
|
666
|
+
right: 0
|
|
667
|
+
width: 100%
|
|
668
|
+
height: 1px
|
|
669
|
+
z-index: 3
|
|
670
|
+
background-color: #fff
|
|
564
671
|
|
|
565
672
|
// markdown文字樣式
|
|
566
673
|
%table_markdown_style
|
|
@@ -96,6 +96,7 @@
|
|
|
96
96
|
display: flex
|
|
97
97
|
flex-wrap: wrap
|
|
98
98
|
gap: 0 20px
|
|
99
|
+
margin-top: 20px
|
|
99
100
|
+rwdmax(575)
|
|
100
101
|
gap: 15px
|
|
101
102
|
.grid
|
|
@@ -282,3 +283,13 @@
|
|
|
282
283
|
.textarea-scrollbar
|
|
283
284
|
width: calc(100% - 30px)
|
|
284
285
|
margin: 0 auto 10px
|
|
286
|
+
.circle
|
|
287
|
+
width: 50px
|
|
288
|
+
height: 50px
|
|
289
|
+
background: rgba(0,0,0,.3)
|
|
290
|
+
display: flex
|
|
291
|
+
justify-content: center
|
|
292
|
+
align-items: center
|
|
293
|
+
cursor: pointer
|
|
294
|
+
[video-cover="off"]
|
|
295
|
+
padding: 0 !important
|
|
@@ -283,16 +283,12 @@ cookieAdvanced.switchState = () => {
|
|
|
283
283
|
|
|
284
284
|
// 存 cookie
|
|
285
285
|
cookieAdvanced.cookieSaveFn = () => {
|
|
286
|
-
const
|
|
287
|
-
.filter(
|
|
288
|
-
|
|
289
|
-
)
|
|
290
|
-
.map(
|
|
291
|
-
([, value]) => value
|
|
292
|
-
)
|
|
286
|
+
const noRequiredValue = Object.entries(cookieNewObj)
|
|
287
|
+
.filter(([key]) => key !== 'required' && key !== 'close')
|
|
288
|
+
.map(([, value]) => value)
|
|
293
289
|
|
|
294
|
-
const
|
|
295
|
-
const globalCloseValue =
|
|
290
|
+
const closeValue = noRequiredValue.every(opt => opt.close === 1)
|
|
291
|
+
const globalCloseValue = closeValue ? 1 : 0
|
|
296
292
|
|
|
297
293
|
// 判斷設定第一層的 close 值
|
|
298
294
|
cookieNewObj.close = globalCloseValue
|
|
@@ -307,95 +303,61 @@ cookieAdvanced.cookieSaveFn = () => {
|
|
|
307
303
|
|
|
308
304
|
// 點擊方法
|
|
309
305
|
cookieAdvanced.clickEvent = (el) => {
|
|
310
|
-
const $settingBlock = $(".cookie-setting")
|
|
311
|
-
const $cookiePolicy = $(".cookie-check")
|
|
312
|
-
|
|
313
|
-
let scrollInstance = null
|
|
306
|
+
const $settingBlock = $(".cookie-setting");
|
|
307
|
+
const $cookiePolicy = $(".cookie-check");
|
|
314
308
|
|
|
315
309
|
$(document)
|
|
316
|
-
.off("click.cookie"
|
|
317
|
-
.on("click.cookie", "[data-cookie]", function
|
|
318
|
-
const $this = $(this)
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
const scrollers = document.querySelector(".cookie-setting")?.querySelectorAll("[data-overlayscrollbars-viewport]")
|
|
333
|
-
scrollLock([...scrollers]);
|
|
334
|
-
}
|
|
335
|
-
})
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
// 打開基本版 cookie 時跑的方法
|
|
339
|
-
const openBasic = () => {
|
|
340
|
-
$cookiePolicy.addClass("first-enter").removeClass("agree hidden")
|
|
341
|
-
clearTimeout(cookieAdvanced.timer)
|
|
342
|
-
|
|
343
|
-
cookieAdvanced.timer = setTimeout(() => {
|
|
344
|
-
$cookiePolicy.addClass("show")
|
|
345
|
-
}, 800)
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
if (targets.has("advance")) openAdvance()
|
|
349
|
-
if (targets.has("basic")) openBasic()
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
// 啟用進階版 cookie 所有選項
|
|
353
|
-
if ($this.is("[data-cookie-all]")) {
|
|
354
|
-
cookieSetting.enableAll()
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
// 關閉進階版 cookie 所有選項
|
|
358
|
-
if ($this.is("[data-cookie-reject]")) {
|
|
359
|
-
cookieSetting.rejectAll()
|
|
360
|
-
cookieAdvanced.cookieSaveFn()
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
// 關閉進階版 cookie 視窗
|
|
364
|
-
if ($this.is("[data-cookie-close]")) {
|
|
365
|
-
const mode = $this.attr("data-cookie-close")
|
|
366
|
-
const targets = new Set(mode === "all" ? ["basic", "advance"] : [mode])
|
|
367
|
-
|
|
368
|
-
const closeAdvance = () => {
|
|
369
|
-
const viewport = $settingBlock.find("[data-overlayscrollbars-viewport]")[0];
|
|
370
|
-
if (viewport) {
|
|
371
|
-
viewport.scrollTo({ top: 0, behavior: 'smooth' });
|
|
310
|
+
.off("click.cookie")
|
|
311
|
+
.on("click.cookie", "[data-cookie]", function() {
|
|
312
|
+
const $this = $(this);
|
|
313
|
+
const data = this.dataset;
|
|
314
|
+
|
|
315
|
+
const actions = {
|
|
316
|
+
open: () => {
|
|
317
|
+
const mode = data.cookieOpen;
|
|
318
|
+
if (mode === "advance" || mode === "all") {
|
|
319
|
+
cookieSetting.openEvent($settingBlock, () => {
|
|
320
|
+
const scrollerEl = $settingBlock.find(".scroller")[0];
|
|
321
|
+
if (scrollerEl) {
|
|
322
|
+
const scrollInstance = OverlayScrollbars(scrollerEl, {});
|
|
323
|
+
scrollLock([...$settingBlock.find("[data-overlayscrollbars-viewport]")]);
|
|
324
|
+
}
|
|
325
|
+
});
|
|
372
326
|
}
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
|
|
327
|
+
if (mode === "basic" || mode === "all") {
|
|
328
|
+
$cookiePolicy.addClass("first-enter").removeClass("agree hidden");
|
|
329
|
+
setTimeout(() => $cookiePolicy.addClass("show"), 800);
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
close: () => {
|
|
333
|
+
const mode = data.cookieClose;
|
|
334
|
+
if (mode === "advance" || mode === "all") {
|
|
335
|
+
cookieSetting.closeEvent($settingBlock);
|
|
336
|
+
scrollUnlock();
|
|
337
|
+
}
|
|
338
|
+
if (mode === "basic" || mode === "all") {
|
|
339
|
+
$cookiePolicy.addClass("hidden");
|
|
340
|
+
sessionStorage.setItem(el, "true");
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
all: () => cookieSetting.enableAll(),
|
|
344
|
+
reject: () => {
|
|
345
|
+
cookieSetting.rejectAll();
|
|
346
|
+
cookieAdvanced.cookieSaveFn();
|
|
347
|
+
},
|
|
348
|
+
save: () => cookieAdvanced.cookieSaveFn(),
|
|
349
|
+
run: () => typeof window._wdSetting === "function" && window._wdSetting()
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
// 根據 dataset 鍵名執行對應 action
|
|
353
|
+
if (data.cookieOpen) actions.open();
|
|
354
|
+
if (data.cookieClose) actions.close();
|
|
355
|
+
if (data.cookieAll !== undefined) actions.all();
|
|
356
|
+
if (data.cookieReject !== undefined) actions.reject();
|
|
357
|
+
if (data.cookieSave !== undefined) actions.save();
|
|
358
|
+
if (data.cookieRun !== undefined) actions.run();
|
|
359
|
+
});
|
|
360
|
+
};
|
|
399
361
|
|
|
400
362
|
// ** --- 工具們 --- **
|
|
401
363
|
// cookie 開啟方法
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Aost4,
|
|
3
|
+
Video4,
|
|
3
4
|
ImageValidate,
|
|
4
5
|
Detect4
|
|
5
6
|
} from '@xwadex/fesd';
|
|
@@ -52,6 +53,13 @@ export const inits = () => {
|
|
|
52
53
|
// pluginInit
|
|
53
54
|
lazyLoadImg();
|
|
54
55
|
new ImageValidate();
|
|
56
|
+
new Video4('[video-target]');
|
|
57
|
+
new Video4('[video-target]', {
|
|
58
|
+
isGlobal: true,
|
|
59
|
+
videoMode: "inBox",
|
|
60
|
+
videoTargetRoute: "https://cdn.wdd.idv.tw/fesd/video4_inbox_lightbox.html",
|
|
61
|
+
videoTarget: 'video-inBox',
|
|
62
|
+
})
|
|
55
63
|
// uiInit
|
|
56
64
|
navbar.init();
|
|
57
65
|
// 預設為 false -> 基礎版, true -> 進階版, 各專案 key 名要記得更改
|
|
@@ -9,6 +9,8 @@ html(lang="zh-Hant-TW" data-overlayscrollbars-initialize)
|
|
|
9
9
|
meta(name="viewport" content="width=device-width, initial-scale=1.0")
|
|
10
10
|
// Safari 電話號碼判斷
|
|
11
11
|
meta(content="telephone=no" name="format-detection")
|
|
12
|
+
meta(name="robots" content="noindex")
|
|
13
|
+
meta(name="googlebot" content="noindex")
|
|
12
14
|
title WDD F2E Framework
|
|
13
15
|
link(rel="shortcut icon" href="./assets/img/favicon.ico" type="image/x-icon")
|
|
14
16
|
// Google font
|
|
@@ -51,9 +53,9 @@ html(lang="zh-Hant-TW" data-overlayscrollbars-initialize)
|
|
|
51
53
|
|
|
52
54
|
modern-modal(data-modal-id="my-modal" data-modal-animate="clip-right")
|
|
53
55
|
.close-btn(data-modal-close)
|
|
54
|
-
.title Modal4
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
.title(data-modal-target="other-modal") Modal4
|
|
57
|
+
|
|
58
|
+
modern-modal(data-modal-id="other-modal" data-modal-animate="clip-right")
|
|
59
|
+
.close-btn(data-modal-close)
|
|
60
|
+
.title other Modal
|
|
61
|
+
|
|
@@ -14,9 +14,8 @@
|
|
|
14
14
|
p.title Cookie
|
|
15
15
|
p.text 關於本網站使用瀏覽器紀錄 Cookie 來提供您最好的使用體驗,我們使用的 Cookie 也包括了第三方 Cookie 。<br>相關資訊請訪問我們的隱私權與 Cookie 政策。如果您選擇繼續瀏覽或關閉這個提示,便表示您已接受我們的網站使用條款。
|
|
16
16
|
.button-group
|
|
17
|
-
|
|
18
|
-
.cookie-btn.
|
|
19
|
-
.cookie-btn.agree(data-cookie data-cookie-save) OK 我接受
|
|
17
|
+
.cookie-btn.close(data-cookie data-cookie-reject data-cookie-save) Reject 我拒絕
|
|
18
|
+
.cookie-btn.agree(data-cookie data-cookie-all data-cookie-save) OK 我接受
|
|
20
19
|
// 若此專案無開進階版 cookie, 請移除以下結構!
|
|
21
20
|
.cookie-setting-btn(data-cookie data-cookie-open="advance")
|
|
22
21
|
span Cookie 偏好設定
|
|
@@ -39,7 +38,7 @@
|
|
|
39
38
|
// JS append 結構 (cookieStep1El)
|
|
40
39
|
.button-group
|
|
41
40
|
.cookie-btn.open(data-cookie data-cookie-all) 啟用所有 Cookie
|
|
42
|
-
.cookie-btn.save(data-cookie data-cookie-close="
|
|
41
|
+
.cookie-btn.save(data-cookie data-cookie-save data-cookie-close="all") SAVE 儲存本次變更
|
|
43
42
|
// 步驟 2
|
|
44
43
|
.setting-container(t4-role="tabPanel" t4-id='step2')
|
|
45
44
|
.back(onClick=`document.body.fesd.cookieGoToNext(false)`)
|
package/src/pages/about.pug
CHANGED
|
@@ -821,37 +821,38 @@ block content
|
|
|
821
821
|
|
|
822
822
|
.titleBox(data-anchor=`tableFreezeDemo`)
|
|
823
823
|
.title Table freeze Demo
|
|
824
|
-
.dep 此範例搭配屬性<span class='code'>freeze-table</span>之特殊表格<br>此功能僅特殊案例開啟 請至<span class='lightHigh'>段落編輯器需求表</span
|
|
824
|
+
.dep 此範例搭配屬性<span class='code'>freeze-table</span>之特殊表格<br>此功能僅特殊案例開啟 請至<span class='lightHigh'>段落編輯器需求表</span>確認各專案要開啟什麼功能!只有表頭才可以選擇凍結!側邊表頭<span class='code'>class="lefthead"</span>
|
|
825
825
|
+article(tableData.tableFreezeDemo)
|
|
826
826
|
table
|
|
827
|
-
|
|
827
|
+
thead
|
|
828
828
|
tr(data-row='0')
|
|
829
|
-
|
|
829
|
+
th(data-column="A" rowspan="3" style='width:200px; min-width:200px;')
|
|
830
830
|
span aaa
|
|
831
|
-
|
|
831
|
+
th(data-column="B" colspan="3" style='width:200px; min-width:200px;')
|
|
832
832
|
span bbb
|
|
833
|
-
|
|
833
|
+
th(data-column="E" style='width:300px; min-width:300px;')
|
|
834
834
|
span eee
|
|
835
|
-
|
|
835
|
+
th(data-column="F" style='width:300px; min-width:300px;')
|
|
836
836
|
span fff
|
|
837
837
|
tr(data-row='1')
|
|
838
|
-
|
|
838
|
+
th(data-column="B" rowspan="2" style='width:200px; min-width:200px;')
|
|
839
839
|
span bbb
|
|
840
|
-
|
|
840
|
+
th(data-column="C" colspan="3" style='width:200px; min-width:200px;')
|
|
841
841
|
span ccc
|
|
842
|
-
|
|
842
|
+
th(data-column="F" style='width:300px; min-width:300px;')
|
|
843
843
|
span fff
|
|
844
844
|
tr(data-row='2')
|
|
845
|
-
|
|
845
|
+
th(data-column="C" style='width:300px; min-width:300px;')
|
|
846
846
|
span ccc
|
|
847
|
-
|
|
847
|
+
th(data-column="D" style='width:300px; min-width:300px;')
|
|
848
848
|
span ddd
|
|
849
|
-
|
|
849
|
+
th(data-column="E" style='width:300px; min-width:300px;')
|
|
850
850
|
span eee
|
|
851
|
-
|
|
851
|
+
th(data-column="F" style='width:300px; min-width:300px;')
|
|
852
852
|
span fff
|
|
853
|
+
tbody
|
|
853
854
|
tr(data-row='3')
|
|
854
|
-
td(data-column="A" rowspan="2" style='width:200px; min-width:200px;')
|
|
855
|
+
td.lefthead(data-column="A" rowspan="2" style='width:200px; min-width:200px;')
|
|
855
856
|
span aaa
|
|
856
857
|
td(data-column="B" style='width:200px; min-width:200px;')
|
|
857
858
|
span bbb
|
|
@@ -876,7 +877,7 @@ block content
|
|
|
876
877
|
span fff
|
|
877
878
|
for i in [1,2,3,4,5,6,7]
|
|
878
879
|
tr(data-row=`${i+3}`)
|
|
879
|
-
td(data-column="A" style='width:200px; min-width:200px;')
|
|
880
|
+
td.lefthead(data-column="A" style='width:200px; min-width:200px;')
|
|
880
881
|
span aaa
|
|
881
882
|
td(data-column="B" style='width:200px; min-width:200px;')
|
|
882
883
|
span bbb
|
package/src/pages/index.pug
CHANGED
|
@@ -93,29 +93,97 @@ block content
|
|
|
93
93
|
h3 Video4 👇
|
|
94
94
|
.row
|
|
95
95
|
.grid
|
|
96
|
-
|
|
96
|
+
p onPage youtube
|
|
97
|
+
.photo-box(video-target video-mode="onPage" video-id="5bMdjkfvONE" video-type="youtube")
|
|
97
98
|
picture
|
|
98
|
-
source(srcset="https://cdn.wdd.idv.tw/image/video-
|
|
99
|
-
source(srcset="https://cdn.wdd.idv.tw/image/video-
|
|
100
|
-
img(src="https://cdn.wdd.idv.tw/image/video-
|
|
99
|
+
source(srcset="https://cdn.wdd.idv.tw/image/video-cover04.webp" type="image/webp")
|
|
100
|
+
source(srcset="https://cdn.wdd.idv.tw/image/video-cover04.jpg" type="image/jpeg")
|
|
101
|
+
img(src="https://cdn.wdd.idv.tw/image/video-cover04.jpg" alt="")
|
|
101
102
|
.grid
|
|
103
|
+
p onBox youtube
|
|
102
104
|
.photo-box(video-target video-id="5bMdjkfvONE" video-type="youtube")
|
|
103
105
|
picture
|
|
104
106
|
source(srcset="https://cdn.wdd.idv.tw/image/video-cover02.webp" type="image/webp")
|
|
105
107
|
source(srcset="https://cdn.wdd.idv.tw/image/video-cover02.jpg" type="image/jpeg")
|
|
106
108
|
img(src="https://cdn.wdd.idv.tw/image/video-cover02.jpg" alt="")
|
|
107
109
|
.grid
|
|
110
|
+
p onBox youku
|
|
108
111
|
.photo-box(video-target video-id="XNDk5NzkwNzY3Mg" video-type="youku")
|
|
109
112
|
picture
|
|
110
113
|
source(srcset="https://cdn.wdd.idv.tw/image/video-cover03.webp" type="image/webp")
|
|
111
114
|
source(srcset="https://cdn.wdd.idv.tw/image/video-cover03.jpg" type="image/jpeg")
|
|
112
115
|
img(src="https://cdn.wdd.idv.tw/image/video-cover03.jpg" alt="")
|
|
113
116
|
.grid
|
|
117
|
+
p onBox vimeo
|
|
114
118
|
.photo-box(video-target video-id="777062285" video-type="vimeo")
|
|
115
119
|
picture
|
|
116
120
|
source(srcset="https://cdn.wdd.idv.tw/image/video-cover04.webp" type="image/webp")
|
|
117
121
|
source(srcset="https://cdn.wdd.idv.tw/image/video-cover04.jpg" type="image/jpeg")
|
|
118
122
|
img(src="https://cdn.wdd.idv.tw/image/video-cover04.jpg" alt="")
|
|
123
|
+
.row
|
|
124
|
+
.grid
|
|
125
|
+
p instagram
|
|
126
|
+
.photo-box(video-target="video-ig-template" video-button="playing" video-target-route="./ajax/ajax_igDemo.html" video-id="../../public/assets/img/banner.jpg" video-type="instagram")
|
|
127
|
+
picture
|
|
128
|
+
source(srcset="https://cdn.wdd.idv.tw/image/video-cover01.webp" type="image/webp")
|
|
129
|
+
source(srcset="https://cdn.wdd.idv.tw/image/video-cover01.jpg" type="image/jpeg")
|
|
130
|
+
img(src="https://cdn.wdd.idv.tw/image/video-cover01.jpg" alt="")
|
|
131
|
+
.grid
|
|
132
|
+
p video
|
|
133
|
+
.photo-box(video-target video-id="https://cdn.wdd.idv.tw/video/chappie_Video1.mp4" video-type="video")
|
|
134
|
+
picture
|
|
135
|
+
source(srcset="https://cdn.wdd.idv.tw/image/video-cover04.webp" type="image/webp")
|
|
136
|
+
source(srcset="https://cdn.wdd.idv.tw/image/video-cover04.jpg" type="image/jpeg")
|
|
137
|
+
img(src="https://cdn.wdd.idv.tw/image/video-cover04.jpg" alt="")
|
|
138
|
+
.grid
|
|
139
|
+
p inBox youtube
|
|
140
|
+
.photo-box(
|
|
141
|
+
video-target="video-inBox"
|
|
142
|
+
video-mode="inBox"
|
|
143
|
+
video-target-route="https://cdn.wdd.idv.tw/fesd/video4_inbox_lightbox.html"
|
|
144
|
+
video-id="5bMdjkfvONE"
|
|
145
|
+
video-type="youtube"
|
|
146
|
+
)
|
|
147
|
+
picture
|
|
148
|
+
source(srcset="https://cdn.wdd.idv.tw/image/video-cover04.webp" type="image/webp")
|
|
149
|
+
source(srcset="https://cdn.wdd.idv.tw/image/video-cover04.jpg" type="image/jpeg")
|
|
150
|
+
img(src="https://cdn.wdd.idv.tw/image/video-cover04.jpg" alt="")
|
|
151
|
+
.grid
|
|
152
|
+
p inBox video
|
|
153
|
+
.photo-box(
|
|
154
|
+
video-target="video-inBox"
|
|
155
|
+
video-mode="inBox"
|
|
156
|
+
video-target-route="https://cdn.wdd.idv.tw/fesd/video4_inbox_lightbox.html"
|
|
157
|
+
video-id="https://cdn.wdd.idv.tw/video/chappie_Video1.mp4"
|
|
158
|
+
video-type="video"
|
|
159
|
+
)
|
|
160
|
+
.row
|
|
161
|
+
.grid
|
|
162
|
+
p video onBox 燈箱
|
|
163
|
+
.photo-box(video-cover="off" video-target video-id="https://cdn.wdd.idv.tw/video/chappie_Video1.mp4" video-type="video")
|
|
164
|
+
.circle :)
|
|
165
|
+
.grid
|
|
166
|
+
p yt inBox 燈箱
|
|
167
|
+
.photo-box(
|
|
168
|
+
video-cover="off"
|
|
169
|
+
video-target="video-inBox"
|
|
170
|
+
video-mode="inBox"
|
|
171
|
+
video-target-route="https://cdn.wdd.idv.tw/fesd/video4_inbox_lightbox.html"
|
|
172
|
+
video-id="5bMdjkfvONE"
|
|
173
|
+
video-type="youtube"
|
|
174
|
+
video-inbox-img="https://cdn.wdd.idv.tw/image/video-cover04.jpg"
|
|
175
|
+
)
|
|
176
|
+
.circle :)
|
|
177
|
+
.grid
|
|
178
|
+
p yt onBox 燈箱
|
|
179
|
+
.photo-box(
|
|
180
|
+
video-target
|
|
181
|
+
video-cover="off"
|
|
182
|
+
video-id="5bMdjkfvONE"
|
|
183
|
+
video-type="youtube"
|
|
184
|
+
)
|
|
185
|
+
.circle :)
|
|
186
|
+
|
|
119
187
|
section.section4
|
|
120
188
|
.container
|
|
121
189
|
h3 Tab4 👇
|