Compare commits

...

10 Commits

Author SHA1 Message Date
ken 2c620fe1ee 'first' 2023-04-09 14:25:48 +08:00
rulingcom ee1f3d44e5 Fix bug. 2022-01-05 03:03:25 +00:00
rulingcom 12c0aa0666 Fix css link bug. 2022-01-03 15:20:29 +00:00
rulingcom f192a42a7b Fix js bug. 2022-01-03 15:09:02 +00:00
rulingcom 2122111358 Fix header video layout. 2022-01-03 04:04:17 +00:00
rulingcom 5693022c91 update template 2021-12-28 12:00:25 +00:00
rulingcom a7cb5476ab update template 2021-12-28 11:56:15 +00:00
rulingcom 9363789509 update template 2021-12-28 11:44:50 +00:00
rulingcom 6a936dcd4e fix error 2021-12-28 11:32:53 +00:00
rulingcom e9bfd5b314 update template 2021-12-28 07:51:52 +00:00
184 changed files with 9246 additions and 2987 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 40 KiB

1
assets/images/down.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44"><title>chevron-circle-down@1x</title><g id="Layer_2" data-name="Layer 2"><g id="Arrows"><g id="Down_Arrow_3_2x.png" data-name="Down Arrow 3@2x.png"><path d="M33,18a1,1,0,0,0-.71.29L22,27.65,11.71,18.29a1,1,0,1,0-1.41,1.41l11,10a1,1,0,0,0,1.41,0l11-10A1,1,0,0,0,33,18ZM22,0A22,22,0,1,0,44,22,22,22,0,0,0,22,0Zm0,42A20,20,0,1,1,42,22,20,20,0,0,1,22,42Z"/></g></g></g></svg>

After

Width:  |  Height:  |  Size: 431 B

View File

@ -0,0 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 22.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 237.7 78" style="enable-background:new 0 0 237.7 78;" xml:space="preserve">
<style type="text/css">
.st0{fill:#EDEDEC;}
.st1{fill:#78161B;}
.st2{fill:none;stroke:#E5E5E5;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
.st3{fill:#E5E5E5;}
.st4{fill:#FFFFFF;}
.st5{fill:#5F616C;}
.st6{fill:#BFCAD9;}
.st7{fill:#3B4552;}
.st8{fill:#040000;}
.st9{fill:#1B1C1C;}
.st10{fill:none;stroke:#FFFFFF;stroke-miterlimit:10;}
.st11{fill:none;stroke:#5F616C;stroke-miterlimit:10;}
.st12{fill:#F6BA56;}
.st13{fill:#F4A045;}
.st14{fill:#645E67;}
.st15{fill:#5A545E;}
.st16{fill:#EFE4DE;}
.st17{fill:#F49F45;}
.st18{fill:#FAF2F3;}
.st19{fill:#756C77;}
.st20{fill:#605B63;}
.st21{fill:#F4A046;}
.st22{fill:#E2D5D0;}
.st23{fill:#CC343C;}
.st24{fill:#CC333B;}
.st25{fill:#BA2930;}
.st26{fill:#BA2A30;}
.st27{fill:#BA2830;}
.st28{fill:#CC323B;}
.st29{fill:#76BB9F;}
.st30{fill:#5F5963;}
.st31{fill:#EFE4DF;}
.st32{fill:#92CC9F;}
.st33{fill:#5AAEB0;}
.st34{fill:none;stroke:#EDEDEC;stroke-miterlimit:10;}
.st35{opacity:3.000000e-02;}
</style>
<g id="圖層_1">
<rect x="93.8" y="30" class="st3" width="49.9" height="10.6"/>
<path class="st33" d="M137.5,21.4c-0.1-0.2-0.3-0.3-0.6-0.3h-18.1h-18.1c-0.2,0-0.4,0.1-0.6,0.3c-2.9,4.6-10.7,5.5-16,5.6
c-0.8,0-1,1.4-0.2,1.6c2.8,0.8,6.6,1.5,10.8,1.5l24,0l24,0c4.2,0.1,8-0.7,10.8-1.5c0.8-0.2,0.7-1.6-0.2-1.6
C148.1,26.9,140.3,26,137.5,21.4z"/>
<path class="st21" d="M137.1,21L137.1,21c-0.2,0-0.3-0.2-0.3-0.4c0-0.2,0-0.4,0-0.7c0-0.8-0.4-1.2-1-1.2c-0.6,0-1,0.5-1,1.3
c0,0.2,0,0.4,0,0.6c0,0.2-0.2,0.4-0.3,0.4h-15.6h-15.5c-0.2,0-0.3-0.2-0.3-0.4c0-0.2,0-0.4,0-0.7c0-0.8-0.4-1.2-1-1.2
c-0.6,0-1,0.5-1,1.3c0,0.2,0,0.4,0,0.6c0,0.2-0.2,0.4-0.3,0.4h-0.1c-0.1,0-0.2,0.1-0.3,0.2c-3.3,5.7-14,5.9-18.9,5.7
c-0.4,0-0.5,0.6-0.1,0.8c0.8,0.3,1.8,0.6,3,0.9c0,0,0.1,0,0.1,0c5.1,0.1,13.5-0.6,16.4-5.5c0.1-0.1,0.2-0.2,0.3-0.2h17.5h17.5
c0.1,0,0.2,0.1,0.3,0.2c3,5.1,12,5.6,17,5.5c0,0,0.1,0,0.1,0c1.1-0.3,2.1-0.6,2.9-0.9c0.4-0.1,0.3-0.8-0.1-0.8
c-4.8,0.2-15.5,0-18.9-5.7C137.3,21,137.2,21,137.1,21z"/>
<line class="st2" x1="7.8" y1="40.6" x2="229.8" y2="40.6"/>
</g>
<g id="圖層_2">
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 22.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 2032 2032" style="enable-background:new 0 0 2032 2032;" xml:space="preserve">
<style type="text/css">
.st0{fill:#EDEDEC;}
.st1{fill:#78161B;}
.st2{fill:none;stroke:#E5E5E5;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
.st3{fill:#E5E5E5;}
.st4{fill:#FFFFFF;}
.st5{fill:#5F616C;}
.st6{fill:#BFCAD9;}
.st7{fill:#3B4552;}
.st8{fill:#040000;}
.st9{fill:#1B1C1C;}
.st10{fill:none;stroke:#FFFFFF;stroke-miterlimit:10;}
.st11{fill:none;stroke:#5F616C;stroke-miterlimit:10;}
.st12{fill:#F6BA56;}
.st13{fill:#F4A045;}
.st14{fill:#645E67;}
.st15{fill:#5A545E;}
.st16{fill:#EFE4DE;}
.st17{fill:#F49F45;}
.st18{fill:#FAF2F3;}
.st19{fill:#756C77;}
.st20{fill:#605B63;}
.st21{fill:#F4A046;}
.st22{fill:#E2D5D0;}
.st23{fill:#CC343C;}
.st24{fill:#CC333B;}
.st25{fill:#BA2930;}
.st26{fill:#BA2A30;}
.st27{fill:#BA2830;}
.st28{fill:#CC323B;}
.st29{fill:#76BB9F;}
.st30{fill:#5F5963;}
.st31{fill:#EFE4DF;}
.st32{fill:#92CC9F;}
.st33{fill:#5AAEB0;}
.st34{fill:none;stroke:#EDEDEC;stroke-miterlimit:10;}
.st35{opacity:8.000000e-02;}
</style>
<g id="圖層_1">
</g>
<g id="圖層_2">
<path class="st35" d="M1987.1,957.6c0,38.6,0,77.1,0,115.7c-0.6,3.4-1.5,6.7-1.7,10.1c-0.4,6.6-0.1,13.3-0.7,19.9
c-3.3,35.2-8.1,70.3-15.2,105c-37.8,183.2-121,342.9-250.2,478.1c-121.9,127.5-268,215.5-437.9,263.8c-63.4,18-128,29.3-193.7,33.8
c-10.7,0.7-21.3,2.3-31.9,3.5c-25.3,0-50.6,0-75.9,0c-3.1-0.5-6.1-1.3-9.3-1.6c-21.7-2-43.5-3.6-65.1-5.9c-56-6-111-17.4-165-33.5
c-154.3-46.2-289.1-125.7-403.8-238.6c-122.2-120.2-206.9-263-254-427.9c-19-66.5-30.4-134.2-34.6-203.2
c-0.4-7.5-2.2-14.9-3.4-22.4c0-25.9,0-51.8,0-77.8c1.2-7.8,3-15.5,3.4-23.3c2.1-35.4,6.2-70.5,12.4-105.3
c21.2-120.8,63.5-233.8,127.7-338.3C274,370.2,387.5,258.9,528.9,176.2C663.2,97.6,808.5,54.5,963.8,46c54.9-3,109.9-1.7,164.7,4.7
c56,6.6,111,17.4,165,33.5c317.9,95.2,563.9,342.4,656.7,660.3c19.5,66.9,32.5,135,35.4,204.9
C1985.6,952.2,1986.6,954.9,1987.1,957.6z M874.8,682.3c0.1-63.5-0.1-126.2,0.1-188.7c14-2.1,87.9-1.5,94.5,0.5
c0,347.9,0,695.7,0,1044.3c-31.8-0.1-62.9,0.3-94.8-0.3c0-63.9,0-126.4,0-189.3c-32,0-63.1,0-94.6,0c0,94.9,0,189.2,0,284.2
c158.4,0,316.2,0,474,0c2.1-12.1,1.5-277.8-0.4-284.2c-30.9,0-61.8,0-93.7,0c0,63.3,0,126,0,188.5c-14.2,2-87.9,1.4-94.3-0.7
c-2-24.6-1-1036.4,1-1043.6c30.8,0,61.7,0,93.5,0c0,63.3,0,126.1,0,188.9c32.2,0,63.2,0,94.3,0c0-95.1,0-189.4,0-283.7
c-12.2-2-467.4-1.4-474.4,0.6c0,94.3,0,188.6,0,283.4C811.5,682.3,842.4,682.3,874.8,682.3z M684,968.1c-21.8,0-42.6,0-63.5,0
c-21.2,0-42.4,0.1-63.5,0c-20.7-0.2-41.4,0.8-62-0.6c0-31.9,0-62.7,0-93.9c94.9,0,189.3,0,283.8,0c0,95,0,189.4,0,284.8
c-126.6,0-252.5,0-378.9,0c0,32.1,0,63.2,0,94.7c158.3,0,315.9,0,473.5,0c2-8.4,2-467.1,0-474.8c-16.8-1.9-467-1.1-473.6,0.9
c-1.8,19.5-1,276.2,0.9,283.1c17.6,1.9,276.2,1,283.2-1.1C684,1030.7,684,1000.1,684,968.1z M1161.2,778.1
c-2.2,12.3-1.5,468.4,0.5,474.8c157.6,0,315.2,0,473.5,0c0-31.6,0-62.7,0-94.7c-32.2,0-63.7,0-95.2,0c-31.6,0-63.2,0-94.8,0
c-31.6,0-63.2,0-94.8,0c-31.5,0-63,0-94.5,0c0-95.7,0-190,0-284.2c12.8-2,277-1.4,283.9,0.6c0,30.7,0,61.6,0,93.5
c-21.4,0-42.2,0-63,0c-21.2,0-42.4-0.1-63.5,0c-20.7,0.1-41.4-0.3-61.9,0.3c-1.9,12.4-1.5,86.8,0.4,93.9c94.3,0,188.6,0,283.5,0
c0-95,0-189.3,0-284.1C1477,778.1,1319.4,778.1,1161.2,778.1z M1635.4,398.7c-8.8-2.1-276.5-2-284.6,0.1c0,94.2,0,188.5,0,283.3
c95.1,0,189.7,0,284.6,0C1635.4,587.2,1635.4,492.9,1635.4,398.7z M1350.8,1348.8c0,95.1,0,189.4,0,283.6
c9.8,2.1,277.1,1.7,284.5-0.3c0-94.2,0-188.5,0-283.3C1540.4,1348.8,1446.1,1348.8,1350.8,1348.8z M683.9,682.4
c0-95.3,0-189.6,0-284.6c-94.8,0-189.2,0-283.9,0c0,95.1,0,189.7,0,284.6C494.7,682.4,588.8,682.4,683.9,682.4z M683.3,1633.2
c1.9-10.9,1.5-277.3-0.3-284.2c-94.3,0-188.7,0-283.1,0c0,95,0,189.4,0,284.2C494.8,1633.2,589.1,1633.2,683.3,1633.2z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 22.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 2032 2032" style="enable-background:new 0 0 2032 2032;" xml:space="preserve">
<style type="text/css">
.st0{fill:#EDEDEC;}
.st1{fill:#78161B;}
.st2{fill:none;stroke:#E5E5E5;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
.st3{fill:#E5E5E5;}
.st4{fill:#FFFFFF;}
.st5{fill:#5F616C;}
.st6{fill:#BFCAD9;}
.st7{fill:#3B4552;}
.st8{fill:#040000;}
.st9{fill:#1B1C1C;}
.st10{fill:none;stroke:#FFFFFF;stroke-miterlimit:10;}
.st11{fill:none;stroke:#5F616C;stroke-miterlimit:10;}
.st12{fill:#F6BA56;}
.st13{fill:#F4A045;}
.st14{fill:#645E67;}
.st15{fill:#5A545E;}
.st16{fill:#EFE4DE;}
.st17{fill:#F49F45;}
.st18{fill:#FAF2F3;}
.st19{fill:#756C77;}
.st20{fill:#605B63;}
.st21{fill:#F4A046;}
.st22{fill:#E2D5D0;}
.st23{fill:#CC343C;}
.st24{fill:#CC333B;}
.st25{fill:#BA2930;}
.st26{fill:#BA2A30;}
.st27{fill:#BA2830;}
.st28{fill:#CC323B;}
.st29{fill:#76BB9F;}
.st30{fill:#5F5963;}
.st31{fill:#EFE4DF;}
.st32{fill:#92CC9F;}
.st33{fill:#5AAEB0;}
.st34{fill:none;stroke:#EDEDEC;stroke-miterlimit:10;}
.st35{opacity:3.000000e-02;}
</style>
<g id="圖層_1">
</g>
<g id="圖層_2">
<path class="st35" d="M1907.6,967.2c0,35.2,0,70.5,0,105.7c-0.5,3.1-1.3,6.2-1.5,9.3c-0.4,6-0.1,12.1-0.7,18.2
c-3,32.2-7.4,64.2-13.9,95.9c-34.6,167.3-110.5,313.2-228.5,436.7c-111.3,116.5-244.8,196.9-400,241
c-57.9,16.5-116.9,26.8-176.9,30.9c-9.7,0.7-19.4,2.1-29.1,3.2c-23.1,0-46.2,0-69.3,0c-2.8-0.5-5.6-1.2-8.5-1.4
c-19.8-1.8-39.7-3.3-59.5-5.4c-51.2-5.5-101.4-15.9-150.7-30.6c-140.9-42.2-264-114.8-368.9-218c-111.6-109.8-189-240.2-232-390.9
c-17.3-60.7-27.8-122.6-31.6-185.6c-0.4-6.8-2-13.6-3.1-20.4c0-23.7,0-47.4,0-71c1.1-7.1,2.7-14.1,3.1-21.3
c1.9-32.3,5.7-64.4,11.3-96.2c19.4-110.3,58-213.5,116.7-309c78.3-127.4,182-229.1,311.1-304.6c122.7-71.8,255.4-111.2,397.3-119
c50.2-2.8,100.4-1.6,150.4,4.3c51.1,6,101.4,15.9,150.7,30.6c290.4,86.9,515,312.8,599.9,603.2c17.8,61.1,29.7,123.3,32.3,187.1
C1906.2,962.2,1907,964.7,1907.6,967.2z M891.5,715.6c0.1-58-0.1-115.3,0.1-172.4c12.8-1.9,80.3-1.4,86.3,0.5
c0,317.8,0,635.5,0,953.9c-29.1-0.1-57.5,0.3-86.6-0.2c0-58.4,0-115.5,0-172.9c-29.2,0-57.6,0-86.5,0c0,86.7,0,172.9,0,259.6
c144.7,0,288.9,0,433,0c1.9-11.1,1.4-253.8-0.4-259.6c-28.2,0-56.4,0-85.6,0c0,57.8,0,115.1,0,172.2c-13,1.9-80.3,1.2-86.1-0.6
c-1.8-22.4-0.9-946.7,0.9-953.3c28.2,0,56.3,0,85.4,0c0,57.9,0,115.1,0,172.6c29.4,0,57.8,0,86.2,0c0-86.8,0-173,0-259.1
c-11.1-1.8-427-1.3-433.4,0.5c0,86.1,0,172.3,0,258.8C833.7,715.6,861.9,715.6,891.5,715.6z M717.2,976.7c-19.9,0-38.9,0-58,0
c-19.3,0-38.7,0.1-58,0c-18.9-0.2-37.8,0.7-56.6-0.6c0-29.1,0-57.3,0-85.8c86.7,0,172.9,0,259.3,0c0,86.8,0,173,0,260.1
c-115.6,0-230.7,0-346.1,0c0,29.3,0,57.7,0,86.5c144.6,0,288.6,0,432.5,0c1.9-7.7,1.8-426.6,0-433.7c-15.4-1.8-426.6-1-432.6,0.8
c-1.6,17.8-0.9,252.3,0.9,258.6c16.1,1.8,252.3,1,258.7-1C717.2,1033.9,717.2,1006,717.2,976.7z M1153.1,803.2
c-2,11.2-1.4,427.8,0.5,433.7c144,0,287.9,0,432.5,0c0-28.9,0-57.2,0-86.5c-29.4,0-58.2,0-87,0c-28.9,0-57.7,0-86.6,0
s-57.7,0-86.6,0c-28.8,0-57.5,0-86.3,0c0-87.4,0-173.6,0-259.6c11.7-1.8,253-1.3,259.3,0.6c0,28.1,0,56.2,0,85.4
c-19.5,0-38.5,0-57.5,0c-19.3,0-38.7-0.1-58,0c-18.9,0.1-37.9-0.3-56.6,0.2c-1.7,11.3-1.4,79.3,0.4,85.7c86.1,0,172.3,0,259,0
c0-86.7,0-172.9,0-259.5C1441.5,803.2,1297.6,803.2,1153.1,803.2z M1586.2,456.6c-8-1.9-252.6-1.8-260,0.1c0,86,0,172.2,0,258.8
c86.9,0,173.2,0,260,0C1586.2,628.8,1586.2,542.7,1586.2,456.6z M1326.3,1324.5c0,86.9,0,173,0,259c9,1.9,253.1,1.6,259.9-0.3
c0-86,0-172.2,0-258.8C1499.5,1324.5,1413.3,1324.5,1326.3,1324.5z M717.1,715.7c0-87,0-173.2,0-259.9c-86.6,0-172.8,0-259.3,0
c0,86.8,0,173.2,0,259.9C544.3,715.7,630.3,715.7,717.1,715.7z M716.5,1584.2c1.7-10,1.4-253.3-0.3-259.6c-86.2,0-172.3,0-258.6,0
c0,86.8,0,173,0,259.6C544.3,1584.2,630.5,1584.2,716.5,1584.2z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.0 KiB

2686
assets/images/花紋1.svg Normal file

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 200 KiB

2665
assets/images/花紋2.svg Normal file

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 198 KiB

View File

@ -11,7 +11,7 @@
var scrollTop = $(window).scrollTop();
var scrollBottom = $('html').height() - $(window).height() - $('.kenjohn').height();
if (scrollTop>5 && scrollBottom>0) { /* 要滑動到選單的距離 */
if (parseInt($('.layout-content').css('margin-top'))==0 && $('.layout-content.topcontent').offset().top<400){
if (parseInt($('.layout-content').css('margin-top'))==0 && $('.layout-content.topcontent').length != 0 && $('.layout-content.topcontent').offset().top<400){
$('.layout-content').css('margin-top',$('.kenjohn').height()-$('#orbit-bar').height());
}
$('.kenjohn').addClass('navFixed').removeClass('navRel'); /* 幫選單加上固定效果 */
@ -548,7 +548,10 @@
$('show').parent('li').focus();
}
forFreeGo();
$(document).on('touchstart','a',function(e){
e.stopPropagation();
$(this).trigger('focus');
});
//背景widget設定
if ( location.href.search('editmode=on') != -1 ) {
$('.background').css('z-index','0');
@ -713,6 +716,7 @@ function transdate(){
// 當文件物件模型(DOM)載入後執行init函數
$(document).ready(function() {
$('.w-annc.tab_nav').before($('.w-annc.w-annc__list'));
$('.group').each(function(){
if ($(this).text().trim()==''){
$(this).css('padding',0);
@ -832,20 +836,20 @@ function transdate(){
var theTop;
if (stop){
$(".kenjohn").addClass('navFixed');
if ($('.layout-content.topcontent').offset().top<400){
if ($('.layout-content.topcontent').length != 0 && $('.layout-content.topcontent').offset().top<400){
$('.layout-content').css('margin-top',$('.kenjohn').height()-$('#orbit-bar').height());
}
if (parseInt($('.layout-content').css('margin-top')==0)){
theTop = $('.layout-content-inner.container').offset().top-$(".kenjohn").position().top+10;
theTop = $('.twosection').offset().top-$(".kenjohn").position().top+5;
}else{
theTop = $('.layout-content-inner.container').offset().top-$(".kenjohn").position().top-$(".kenjohn").height()+10;
theTop = $('.twosection').offset().top-$(".kenjohn").position().top-$(".kenjohn").height()+5;
}
}else{
theTop = 10;
theTop = 5;
}
console.log(theTop);
$("html, body").animate({
scrollTop: theTop }, {duration: 500,easing: "swing",complete: function(){
scrollTop: theTop }, {duration: 400,easing: "swing",complete: function(){
console.log('finish');
if(!stop){
move_to_target(true);

View File

@ -0,0 +1,15 @@
/*
www.OnlineWebFonts.Com
You must credit the author Copy this link on your web
<div>Font made from <a href="https://www.onlinewebfonts.com">oNline Web Fonts</a>is licensed by CC BY 3.0</div>
OR
<a href="https://www.onlinewebfonts.com">oNline Web Fonts</a>
*/
@font-face {font-family: "IndustryW00-Medium";
src: url("https://db.onlinewebfonts.com/t/b8e20323f8f36e06f87745c93c45afcd.eot"); /* IE9*/
src: url("https://db.onlinewebfonts.com/t/b8e20323f8f36e06f87745c93c45afcd.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */
url("https://db.onlinewebfonts.com/t/b8e20323f8f36e06f87745c93c45afcd.woff2") format("woff2"), /* chrome firefox */
url("https://db.onlinewebfonts.com/t/b8e20323f8f36e06f87745c93c45afcd.woff") format("woff"), /* chrome firefox */
url("https://db.onlinewebfonts.com/t/b8e20323f8f36e06f87745c93c45afcd.ttf") format("truetype"), /* chrome firefox opera Safari, Android, iOS 4.2+*/
url("https://db.onlinewebfonts.com/t/b8e20323f8f36e06f87745c93c45afcd.svg#IndustryW00-Medium") format("svg"); /* iOS 4.1- */
}

View File

@ -16,6 +16,9 @@
.big-title{
font-size: 40px;
}
.extra-box{
padding: 0!important;
}
}
@media(max-width: 769px){
.ad-banner-widget-6{

View File

@ -13,16 +13,17 @@ body {
margin-top: 2.5em;
overflow: hidden scroll;
background-color: #F8F8F8;
letter-spacing: 1px;
}
a:link,
a:visited {
color: #288E8E;
color: $theme-color-second;
}
a:hover,
a:focus {
color: #1d6666;
color: #7d0000;
text-decoration: revert;
}
@ -52,13 +53,17 @@ td {
a.btn-primary {
color: $theme-white;
border-color: #288E8E;
background-color: #288E8E;
border-color: $theme-color-second;
background-color: $theme-color-second;
font-size: 0.8125rem;
&:hover {
background-color: darken($theme-color-main, 10%);
border-color: darken($theme-color-main, 10%);
background-color: #7d0000;
border-color: #7d0000;
opacity: .7;
letter-spacing: 3px;
-webkit-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
}

View File

@ -3,7 +3,7 @@
@import "variables";
.go-back-top {
background:#288E8E;
background: rgba($theme-color-second, 0.9);
text-align: center;
padding: 0.625em 0.75em;
position: fixed;
@ -16,6 +16,6 @@
border-radius: 0.125em;
z-index: 1050;
&:hover {
background:#288E8E;
background:$theme-color-second;
}
}

View File

@ -7,11 +7,14 @@
margin: 0.5em 0;
line-height: 1.5;
font-family: $main-font;
font-size: $font-h3;
font-size: $font-h2;
color: $theme-color-main;
text-align: center;
padding-top: 0.7em;
padding-top: 1em;
background: url(/assets/titlecap.svg) top no-repeat;
background-position-x: center;
background-position-y: -12px;
background-size: 165px;
.layout-footer & {
margin-bottom: 0.625em;
border-bottom: none;

View File

@ -16,13 +16,13 @@ $theme-red: #d20001;
$theme-blue: #003d7e;
$theme-color-main: #333333;
$theme-color-second: #E4002B;
$theme-color-second: #c49951;
$theme-color-third: #ed4c43;
$theme-color-green: #288E8E;
$theme-color-green: #c49951;
// Font stacks
$main-font: "IndustryW00-Medium","Barlow", "Roboto", "微軟正黑體", "Helvetica Neue", Helvetica, sans-serif;
$sub-font: "Barlow","Roboto", "微軟正黑體", "Helvetica Neue", Helvetica, sans-serif;
$main-font: "Roboto", "微軟正黑體", "Helvetica Neue", Helvetica, sans-serif;
$sub-font: "Roboto", "微軟正黑體", "Helvetica Neue", Helvetica, sans-serif;
@font-face {font-family: "IndustryW00-Medium"; src: url("//db.onlinewebfonts.com/t/b8e20323f8f36e06f87745c93c45afcd.eot"); src: url("//db.onlinewebfonts.com/t/b8e20323f8f36e06f87745c93c45afcd.eot?#iefix") format("embedded-opentype"), url("//db.onlinewebfonts.com/t/b8e20323f8f36e06f87745c93c45afcd.woff2") format("woff2"), url("//db.onlinewebfonts.com/t/b8e20323f8f36e06f87745c93c45afcd.woff") format("woff"), url("//db.onlinewebfonts.com/t/b8e20323f8f36e06f87745c93c45afcd.ttf") format("truetype"), url("//db.onlinewebfonts.com/t/b8e20323f8f36e06f87745c93c45afcd.svg#IndustryW00-Medium") format("svg"); }

View File

@ -17,10 +17,7 @@ body{
.downIcon{
position: absolute;
left: 50%;
top: 775px;
@media (min-width:1026px) and (max-width:1280px){
top: 735px;
}
bottom: 15%;
//bottom: 10%;
z-index: 2;
color: #fff;
@ -131,14 +128,39 @@ body{
}
}
.bannertwo{
// .ba-banner-widget-1 .w-ba-banner__slide>a img{
// @media(max-width: $screen-xs){
// width: auto;
// max-width: unset;
// transform: translateX(-38%);
// height: 50vw!important;
// }
// }
.w-ba-banner{
@media(max-width: 768px){
height:auto!important;
.banner-overlay{
background: #c49951!important;
}
}
}
@media(min-width:1024px){
padding: 0;
.w-ba-banner{
display: flex;
flex-direction: row-reverse;
height: 35vh!important;
.w-ba-banner__wrap{
flex: 0 0 65%;
flex: 0 0 60%;
height: 35vh!important;
.w-ba-banner__slide{
height: 35vh!important;
img{
height: 100%;
width: auto;
max-width: unset;
}
}
}
.ad-overlay{
position: relative;
@ -250,21 +272,38 @@ body{
width: 100%;
display: flex;
flex-wrap: wrap;
padding: 2em;
@media(max-width: $screen-xs){
flex-wrap: wrap;
}
}
.colorwrapper{
width: 100%;
background-color: #f1f2f4;
}
.iconbox{
width: 20% !important;
flex: 1 1 20%;
&:hover{
opacity: .7;
cursor: pointer;
transform: scale(1.2);
-webkit-transition: .5s ease-out;
-moz-transition: .5s ease-out;
-ms-transition: .5s ease-out;
-o-transition: .5s ease-out;
transition: .5s ease-out;
}
.fas{
font-size: 2.5em;
color: #abb5b4;
color:#d2d2d2;
}
.fab{
font-size: 2.5em;
color: #abb5b4;
color: #d2d2d2;
}
.far{
font-size: 2.5em;
color: #d2d2d2;
}
@media(max-width: $screen-xs){
flex: 50%;
@ -345,7 +384,7 @@ body{
}
.bannertwo{
@media(min-width:1024px){
background-color: #72bcad;
background-color: #c49951;
}
@media(max-width: $screen-sm){
padding: 0;
@ -353,9 +392,6 @@ body{
}
.onesection{
color: #fff;
@media(max-width:$screen-xs){
padding: 0 15px;
}
}
.onepicture{
padding: 0;
@ -363,14 +399,11 @@ body{
.onetext{
padding:3em;
}
.line{
@media(min-width:1025px){
width: 80%!important;
margin: auto!important;
}
}
.threesection{
padding: 2em 0;
}
.extra-box {
padding: 0!important;
}
.widget-event_news-0.widget-event_news-0-new{
.w-event_news__list{
@ -423,7 +456,7 @@ body{
display: none;
}
.card0{
border-top: 25px solid #72bcad;
border-top: 25px solid #c49951;
}
.w-event_news__meta{
top: -25px!important;
@ -438,7 +471,7 @@ body{
.w-event_news__widget-title{
text-align: center;
padding-top: 0.7em;
background: url(/assets/titlecap.png) top no-repeat;
background: url(/assets/titlecap.svg) top no-repeat;
background-size: 164px 35px;
background-position-y: -7px;
font-size: 1.2rem;
@ -499,11 +532,76 @@ body{
.w-event_news__img-wrap.bullseye{
overflow: visible!important;
}
//內頁
.inner-page{
padding: 50px 0;
.twosection{
padding: 2em 0;
background: url(/assets/故宮剪影.svg) bottom repeat #f6f6f6;
background-size: 30px;
// background: url(/assets/故宮剪影.svg) bottom no-repeat #f6f6f6;
// background-position: right 10em;
// background-size: 200px;
@media(min-width: 769px){
align-items: center;
}
#search_query{
-webkit-appearance: none;
border-radius: 20px;
height: 40px;
border: none;
padding: 1em;
color: #333;
@media(max-width: $screen-xs){
width: 86%;
}
}
.icon{
background: #c49951;
border-radius: 50%;
height: 40px;
left: 163px;
top: 2px;
transition-delay: .3s;
width: 40px;
border: none;
padding: 10px;
font-size: 10px;
color: #fff;
&:hover{
background: #9d7528;
}
}
}
.timeinfo{
padding: 2em;
.ho{
&:hover{
.fas{
transform: translateX(5px)!important;
}
}
}
}
.oneshadow{
background-image: linear-gradient(to right, #1212121f, #dedede00);
-pie-background: linear-gradient(to right, #1212121f, #dedede00);
behavior: url("/assets/ie_support/PIE2/PIE.htc");
padding-bottom: 1em;
@media(min-width: 768px){
padding-left: 2em;
padding-right: 0;
}
}
.rightbox{
@media(min-width: 768px){
padding-right: 2em;
}
}
.internal-page{
.ba-banner-widget-1 .ad-overlay, .ba-banner-widget-1 .banner-overlay{
@media(max-width:768px){
position:absolute;
}
}
background-color: #fff;
.kenjohn {
flex-wrap:wrap-reverse;
@ -652,3 +750,8 @@ body{
}
}
}
.middlebox{
@media(min-width: 769px){
padding-left: 0;
}
}

View File

@ -2,17 +2,18 @@
@import "../initial";
.kenfooter{
background-color:#333333;
background-color:#3d3d3d;
width: 100%;
margin: auto;
}
.layout-footer-inner{
background-color:#333333;
background: url(/assets/故宮剪影.svg) bottom no-repeat #3d3d3d;
background-position: right 92px;
padding: 2em!important;
}
.layout-footer {
color:#dfdfdf;
color:#fff;
font-size: 0.8125em;
letter-spacing: 1px;
z-index: 2;
@ -25,11 +26,14 @@
}
.footer-counter a { padding-right: 0.5em; }
a {
color: #bcbac2;
color: #fff;
&:hover,
&:focus {
color:#fff;
letter-spacing: 3px;
-webkit-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
}
}
@ -42,31 +46,3 @@
padding-right: 10px;
}
}
@media(max-width:$screen-xs){
.footer-content{
flex-wrap: wrap;
}
.part{
width: 100%!important;
}
}
.footertext{
@media(min-width:$screen-xs){
flex: 0 0 70%;
}
}
.layout-footer-content{
@media(min-width:$screen-xs){
display: flex;
}
}
.footerimage{
@media(min-width:$screen-xs){
display: flex;
}
}
.footericon{
@media(min-width:$screen-xs){
flex:0 0 50%;
}
}

View File

@ -18,7 +18,7 @@
.header-nav {
text-align: center;
z-index: 1;
padding: 1em 0.5em!important;
padding: 1em 0.5em 0!important;
color: #fff;
font-family: $main-font;
text-transform:uppercase;
@ -80,30 +80,30 @@ a#content{
.navbar-nav>li{
padding: 0.5em;
margin: 0.5em;
border: 1px solid #ddd;
border-left: none;
border-right: none;
.modules-menu-level-1{
display: none;
border: 2px solid #fff;
color: #fff;
padding: calc(0.7777777778em - 2px) calc(2.5em - 2px);
align-items: center;
border-radius: 4px;
behavior: url("/assets/ie_support/PIE2/PIE.htc");
&:nth-child(3){
background: #c49951;
border: 2px solid #c49951;
}
a{
color: #fff;
text-shadow: 0px 0px 8px #00000070;
font-size: 1.2em;
}
&:hover{
.modules-menu-level-1{
display: block;
transition-duration: opacity 0.3s cubic-bezier(0.48, 0.01, 0.5, 0.99),visibility 0.1s linear;
background-color: #fffffff2;
position: absolute;
box-shadow: 2px 2px 5px #00000033;
padding: 1em;
li{
padding: 0.5em;
&:hover{
span {
color:#0d5151!important;
text-decoration: underline;
}
}
}
background: #ffffffe6;
border-color: #f2f2f2;
color: #64696b;
a{
color: #64696b;
text-shadow: none;
text-decoration: none;
}
}
}
@ -113,7 +113,7 @@ a#content{
span{
&:hover{
color: #288E8E!important;
color: #c49951!important;
}
}
@ -121,54 +121,60 @@ a#content{
}
&,& .jp-jplayer{
@media(min-width:1801px){
height: 760px;
.ad-overlay{
bottom: 50%;
bottom: 6%;
position: absolute;
}
}
@media screen and (min-width:1451px) and (max-width:1800px){
height: 760px;
.ad-overlay{
bottom: 6%;
position: absolute;
}
}
@media screen and (min-width:1281px) and (max-width:1450px){
.ad-overlay{
bottom: 6%;
position: absolute;
}
}
@media screen and (min-width:1026px) and (max-width:1280px){
.ad-overlay{
bottom: 6%;
position: absolute;
}
}
@media screen and (min-width:$screen-xs) and (max-width:1025px){
.ad-overlay{
bottom: 40%;
position: absolute;
}
}
@media screen and (min-width:1281px) and (max-width:1450px){
height: 760px;
.ad-overlay{
bottom: 50%;
position: absolute;
}
}
@media screen and (min-width:1026px) and (max-width:1280px){
height: 720px;
.ad-overlay{
bottom: 30%;
position: absolute;
}
}
@media screen and (min-width:991px) and (max-width:1025px){
height: 760px;
.ad-overlay{
bottom: 31%;
position: absolute;
}
}
@media screen and (min-width:$screen-xs) and (max-width:990px){
height: 760px !important;
.ad-overlay{
bottom: 35%;
position: absolute;
}
}
@media(max-width: $screen-xs){
height: 760px !important;
.ad-overlay{
top: 17%;
position: absolute;
}
}
@media screen and (min-width: 769px){
height: 65vh!important;
}
@media screen and(min-width:$screen-xs) and (max-width:768px){
height: 1000px!important;
.w-ad-banner__image{
height: 1000px!important;
max-width: unset;
width: auto;
}
}
@media screen and (max-width: $screen-xs){
height: 680px!important;
.w-ad-banner__image{
height: 680px!important;
max-width: unset;
width: auto;
}
}
}
}
.jp-jplayer{
@ -213,7 +219,28 @@ a#content{
.button-mid{
display: none;
}
input[type=search]{
-webkit-appearance: none;
border-radius: 20px;
height: 40px;
border: none;
padding: 1em;
color: #333;
}
.icon{
background: #c49951;
border-radius: 50%;
height: 40px;
left: 163px;
top: 2px;
transition-delay: .3s;
width: 40px;
border: none;
padding: 10px;
&:hover{
background: #9d7528;
}
}
.container {
@extend .response-container;
}
@ -263,22 +290,23 @@ a#content{
}
@media(min-width:1900px){
width: 225px;
margin-top: -12px;
margin-top: 10px;
}
@media screen and (min-width:1025px) and (max-width:1899px){
width: 181px;
margin-top: -3px;
margin-top: 10px;
}
@media screen and (min-width:769px) and (max-width:1025px){
width: 150px;
margin-top: -5px;
width: 250px !important;
margin-top: 23px;
}
@media screen and (min-width:$screen-xs) and (max-width:769px){
width: 146px !important;
width: 200px !important;
margin-top: 10px;
}
@media screen and (max-width:$screen-xs){
width: 110px !important;
margin-top: 3px;
width: 200px !important;
margin-top: 10px;
}
}
@ -360,7 +388,10 @@ a#content{
}
.navFixed{
position: fixed!important;
top:2.5em;
top:0;
.btn-search{
color: #333333;
}
}
.internal-page .kenjohn.navRel,.navRel {
position: relative!important;
@ -382,10 +413,11 @@ a#content{
}
z-index: 10;
left: 0;
background-color: #fff;
-webkit-backdrop-filter: saturate(180%) blur(20px);
backdrop-filter: saturate(180%) blur(20px);
background-color: #ffffffe6;
margin-top: 0;
min-width: 100%;
opacity: 0.98;
transition: opacity .5s ease-out;
.collapse{
flex: 0 0 62%;
@ -406,8 +438,8 @@ a#content{
.navbar-header{
@media screen and (min-width:769px) {
height: 78px;
margin-bottom: 1em;
height: 80px;
margin-bottom: 0;
width: 35%;
justify-content: center;
}
@ -428,8 +460,10 @@ a#content{
text-shadow: none;
}
.header-nav{
background: #e7e8ea;
padding:0.5em !important;
background:#e2e2e2;
padding:0.5em!important;
margin: 0;
width: 100%;
}
.header-nav a{
text-shadow:none;
@ -444,7 +478,7 @@ a#content{
max-height: 65%;
verflow-y: scroll;
border-radius: 0.5em;
opacity: 1;
opacity: 1;
padding:1em 5% 3em;
transition-duration: opacity 0.3s cubic-bezier(0.48, 0.01, 0.5, 0.99),visibility 0.1s linear;
&::-webkit-scrollbar {
@ -512,3 +546,38 @@ a#content{
display: inline-block;
left: 5px;
}
.btn-search{
&:hover{
.searchbox{
display: block;
}
}
}
.btn-search{
padding-right: 0.5em;
float: right;
padding-top: 5px;
padding-left: 5px;
color: #fff;
@media(max-width:$screen-xs){
float:left;
margin-left: 1em;
.searchbox{
margin-top: 2em;
margin-left: 1em;
}
}
}
.searchbox{
display: none;
position: absolute;
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
color: #fff;
opacity: 1; /* Firefox */
}
input[type=search]{
background: #4e4e4e66;
}
}

View File

@ -5,9 +5,22 @@
.layout-slide {
position: relative;
z-index: 0;
background: #fff;
padding: 0;
.w-ad-banner {
//max-width: 75em;
margin: auto;
}
}
.layout-slidewrapper{
width: 100%;
background: #fff;
// padding-bottom: 2em;
.w-annc__widget-title{
margin: 0;
}
}
.layout-slide-one{
padding-bottom: 1em;
}

View File

@ -8,7 +8,27 @@
// Widget
// ## gerenral styles
.designbox{
background: url(/assets/花紋1.svg) top no-repeat;
background-position: top left;
width: 80%;
height: 80%;
position: absolute;
z-index: 102;
opacity: .7;
float: left;
}.designboxx{
background: url(/assets/花紋2.svg) top no-repeat;
background-position: bottom right;
width: 100%;
height: 100%;
position: relative;
z-index: 102;
opacity: .5;
}
.banner-pager .active-slide button{
background:$theme-color-second!important;
}
.w-ba-banner {
position: relative;
z-index: 0;
@ -48,13 +68,16 @@
font-family: $main-font;
width: 100%;
bottom: 0;
text-align: center;
background: none!important;
// background-image: linear-gradient(180deg,transparent 0,rgba(0,0,0,.7) 40%,#000);
h3 {
margin: 0;
padding: 0 0.5rem;
color: #fff;
font-size: 33px;
font-size: 1.5em;
font-weight: 400;
text-shadow: 2px 2px 5px #333;
}
@ -426,11 +449,15 @@ ul.button-mid{
// Widget 1
.ba-banner-widget-1 {
.banner-overlay{
padding:2em 1em;
}
.w-ba-banner__caption {
color: $theme-color-main;
z-index: 200;
padding: 4em;
padding-bottom: 9%;
// background-image: linear-gradient(180deg, transparent 0, #0000004d 50%, #000000e0);
h2 {
font-family: $main-font;
@ -445,11 +472,10 @@ ul.button-mid{
}
@media(max-width: $screen-sm) {
.ad-overlay {
padding: 0.5em 1em;
position: relative;
background:#72bcad;
h3 { font-size: 1em; }
p { font-size: 0.75em; }
background:$theme-color-second;
h3 { font-size: 1.2em; }
p {}
}
.controlplay {
right: 0;
@ -583,3 +609,59 @@ ul.button-mid{
width: 100%;
height: 100%;
}
// Widget 8
[data-cycle-carousel-visible="4"] .w-ba-banner__slide {
width: auto;
height: auto
}
.ba-banner-widget-8 {
&:hover{
img{
transform: scale(1.2);
-webkit-transition: .3s;
transition: .3s;
overflow: hidden;
}
}
.banner-pager{
display: none!important;
}
.banner-overlay{
text-align: center;
background-image: linear-gradient(
180deg
, transparent 0, #00000045 50%, #00000085);
}
.w-ba-banner__caption {
color: $theme-color-main;
z-index: 200;
padding: 1em;
position: absolute;
h2 {
font-family: $main-font;
font-size: $w-caption-font-size;
margin: 0.5em 0;
}
p {
font-family: $main-font;
font-size:1.2rem;
}
}
@media(max-width: $screen-sm) {
.ad-overlay {
padding: 0.5em 1em;
position: relative;
background:$theme-color-second;
h3 { font-size: 1em; }
p { font-size: 0.75em; }
}
.controlplay {
right: 0;
a { padding: 0 5px;}
a i { font-size: 0.75em; }
}
}
}

View File

@ -5,7 +5,33 @@
//
// Widget
//
.w-annc__item {
margin-bottom: 1.875em;
&:hover{
img{
transform: scale(1.5)!important;
-webkit-transition: .5s ease-out;
-moz-transition: .5s ease-out;
-ms-transition: .5s ease-out;
-o-transition: .5s ease-out;
transition: .5s ease-out;
}
.transitionfade{
height: inherit;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: rgba(0,0,0,.4);
-webkit-transition: .5s ease-out;
-moz-transition: .5s ease-out;
-ms-transition: .5s ease-out;
-o-transition: .5s ease-out;
transition: .5s ease-out;
}
}
}
// Announcement widget
.label{
padding: .4em .6em .4em;
@ -18,19 +44,37 @@
width: 100%;
}
.w-annc__widget-title{
background: url(/assets/titlecap.png) top no-repeat;
background-size: 164px 35px;
background-position-y: -7px;
background: url(/assets/titlecap.svg)top no-repeat;
background-position-x: center;
background-position-y: -12px;
margin: 0.5em 0;
line-height: 1.5;
font-family: "IndustryW00-Medium", "Barlow", "Roboto", "微軟正黑體", "Helvetica Neue", Helvetica, sans-serif;
font-size: 1.5rem;
color: #333333;
text-align: center;
padding-top: 1em;
background-size: 165px;
}
.w-annc__title{
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
.w-annc {
.w-annc__widget-title {
@extend .unity-title;
}
.w-annc__list {
margin: 0;
padding: 0;
list-style: none;
clear: both;
}
.w-annc__item {
@ -47,7 +91,7 @@
.w-annc__postdate-wrap,
.w-annc__category-wrap {
display: inline-block;
margin-right: 0.2em;
margin-right:0;
font-size: 0.8125em;
color: $theme-color-main;
font-weight: normal;
@ -55,6 +99,7 @@
i {
color:$theme-color-main;
padding-right: 5px;
}
}
@ -74,7 +119,7 @@
font-size: 1rem;
line-height: initial;
&:hover {
// color: darken($theme-color-main, 10%);
color: #7d0000;
}
}
}
@ -220,7 +265,6 @@
line-height: 1.3;
font-size: 1.2rem;
}
.w-annc__widget-title { float: left; }
.w-annc__more { margin-top: 1.5em; }
.w-annc__list > .w-annc__item:nth-child(3n+1) {
clear: both;
@ -241,7 +285,7 @@
}
.w-annc__item {
border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
//border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
padding-bottom: 1em;
margin-bottom: 1em;
}
@ -252,7 +296,7 @@
.w-annc__item {
margin-bottom: 0.8em;
padding-bottom: 0.8em;
border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
//border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
}
.w-annc__entry-title {
@ -276,7 +320,7 @@
.w-annc__item {
margin-bottom: 0.8em;
padding-bottom: 0.8em;
border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
//border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
}
.w-annc__entry-title {
@ -299,9 +343,7 @@
.w-annc__postdate,
.w-annc__category {
white-space: nowrap;
font-size: 1rem;
float: right;
}
// Widget-8
@ -356,7 +398,7 @@
.w-annc__item {
margin-bottom: 0.8em;
padding-bottom: 0.8em;
border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
//border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
}
.w-annc__entry-title {
@ -378,7 +420,7 @@
.w-annc__item {
margin-bottom: 0.8em;
padding-bottom: 0.8em;
border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
//border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
}
.w-annc__entry-title {
@ -462,7 +504,7 @@
.w-annc__item {
margin-bottom: 0.8em;
padding-bottom: 0.8em;
border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
//border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
}
.w-annc__entry-title {
@ -493,7 +535,6 @@
line-height: 1.3;
font-size: 1rem;
}
.w-annc__widget-title { float: left; }
.w-annc__more { margin-top: 1.5em; }
.w-annc__list > .w-annc__item:nth-child(3n+1) {
clear: both;
@ -534,7 +575,8 @@
.w-annc__item {
margin-bottom: 0.8em;
padding-bottom: 0.8em;
border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
clear: both;
//border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
}
.w-annc__entry-title {
@ -549,6 +591,14 @@
display: inline-block;
font-size: 0.75rem;
}
.search_block{
p{
float: left;
padding-right: 1em;
line-height: 2;
padding-left: 0.8em
}
}
}
//widget 19
.widget-announcement-19 {
@ -624,7 +674,7 @@
}
.i-annc__th {
color: $theme-color-main;
color: #fff;
background: $theme-color-second;
font-size: 0.8125em;
border: none;
@ -722,7 +772,7 @@ table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before, tabl
.i-annc__item {
margin-bottom: 0.8em;
padding-bottom: 0.8em;
border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
//border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
}
.i-annc__title {
font-size: 0.95rem;
@ -757,7 +807,7 @@ table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before, tabl
.i-annc__item {
margin-bottom: 0.8em;
padding-bottom: 0.8em;
border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
//border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
}
.i-annc__title {
font-size: 0.95rem;
@ -910,7 +960,7 @@ table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before, tabl
.i-annc__item {
margin-bottom: 0.8em;
padding-bottom: 0.8em;
border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
//border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
}
.i-annc__title {
font-size: 0.95rem;

View File

@ -0,0 +1,53 @@
@charset "utf-8";
@import "../initial";
.widget-event-news-calendar-2.w-calendar .w-calendar-table td{
color: #333!important;
}
.widget-event-news-calendar-2.w-calendar .w-calendar-table td.w-calendar-event div{
color: #333!important;
border: none!important;
border-radius: 0!important;
background: none!important;
}
.widget-event-news-calendar-2.w-calendar .event-inner-title{
line-height: normal!important;
}
.widget-event-news-calendar-2.w-calendar .event-header{
font-size: 1em !important;
}
.w-annc .w-annc__subtitle{
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
.widget-event-news-calendar-2.w-calendar .event-container-one .event-content{
font-size: 0.8em!important;
}
.text{
color: #333!important;
}
.widget-event-news-calendar-2.w-calendar{
webkit-box-shadow: 0 2px 10px 0 #00000033!important;
box-shadow: 0 2px 10px 0 #00000033!important;
}
.widget-event-news-calendar-2.w-calendar button.switch_button{
width: 1.8em!important;
height: 1.8em!important;
}
.widget-event-news-calendar-2.w-calendar .event-container-one:hover, .widget-event-news-calendar-2.w-calendar .event-container-one.hover-class{
font-weight: bold!important;
background: none!important;
box-shadow: none!important;
}
.w-annc__list{
padding: 0!important;
}

View File

@ -29,7 +29,7 @@
padding-top: 32px!important;
}
@media (min-width: 1025px){
padding-top: 28px!important;
padding-top: 20px!important;
}
@media (min-width: 769px) {
margin: 0 0 0.8em 0;
@ -89,7 +89,7 @@
position:relative;
margin: 0;
padding: 0 1em;
border-bottom: 0.0625em solid lighten($theme-gray, 5%);
// border-bottom: 0.0625em solid lighten($theme-gray, 5%);
& > a {
display: block;
@ -103,7 +103,7 @@
// border-radius: 0.5em;
& > a {
color: #288E8E;
color: #a85a56;
}
@media (min-width: $screen-sm) {
@ -150,8 +150,8 @@
}
& > a {
padding: 0.8rem;
font-size: 14px;
padding: 0.8rem 1em;
font-size:1.15rem;
color:#fff;
font-weight: 900;
// text-shadow: 1px 1px 1px #0000008c;
@ -221,10 +221,10 @@
& > li {
padding-right: 2em;
flex: 0 0 33.3%;
flex: 0 0 25%;
& > a {
padding-left: 1em;
border-bottom: 2px solid #288E8E;
border-bottom: 2px solid #a85a56;
padding: 5px 0;
}
@ -312,7 +312,7 @@
width: 100%;
position: absolute;
right: 0;
background: #ffffff;
background:#f6f6f6;
height: 100%;
top: 40px;
padding-top: 0;

View File

@ -1,411 +0,0 @@
@charset "utf-8";
@import "../initial";
.collapse{
@media(min-width: 769px){
width:100%;
}
}
.navbar-collapse.in {
overflow-y: unset;
}
.modules-menu {
font-family: $sub-font;
max-height: none;
z-index: 1020;
li {
white-space: nowrap;
}
.menu-drop.opened {
transform: rotateX(180deg);
}
.modules-menu-level-0 {
@media (min-width: 1900px) {
padding-top: 32px!important;
}
@media (min-width: 1025px){
padding-top: 28px!important;
}
@media (min-width: 769px) {
margin: 0 0 0.8em 0;
-webkit-flex-flow: row wrap;
list-style: none;
width:100%;
padding-top: 10px;
display: flex;
}
.has-dropdown.level-1.active {
.modules-menu-level-1 {
display: block;
}
}
.has-dropdown.level-2.active {
.modules-menu-level-2 {
display: block;
}
}
// .dropdown-toggle-icon {
// position: absolute;
// top: 0.5em;
// right: 0.3em;
// width: 2.5em;
// height: 2.5em;
// cursor: pointer;
// line-height: 2.5em;
// font-size: 1em;
// text-align: center;
// border-radius: 0.13em;
// }
.menu-drop {
position: absolute;
right: 0.3em;
width: 2.5em;
height: 2.5em;
cursor: pointer;
line-height: 2.5em;
font-size: 0.5em;
text-align: center;
border-radius: 0.13em;
top: 2em;
}
// .dropdown-toggle-icon.level-1 {
// background-color: lighten($theme-gray, 10%);
// }
// .dropdown-toggle-icon.level-2 {
// background-color: lighten($theme-gray, 10%);
// }
& > li {
position:relative;
margin: 0;
padding: 0 1em;
border-bottom: 0.0625em solid lighten($theme-gray, 5%);
& > a {
display: block;
padding: 1.125em 0;
font-family: $main-font;
}
&:hover {
// background-color: $theme-color-second;
// border-radius: 0.5em;
& > a {
color: #288E8E;
}
@media (min-width: $screen-sm) {
// background-color: $theme-color-second;
// border-radius: 0.5em;
}
}
@media (min-width: $screen-sm) {
position: static;
margin: 0;
padding: 0;
border-bottom: none;
&:first-child {
margin-left: 0;
}
&:last-child {
margin-right: 0;
.modules-menu-level-1 {
left: auto;
&:before {
right: 0.625em;
left: auto;
}
& > li {
padding-right: 1em;
padding-left: 1em;
& > a {
padding-left: 0;
}
}
.modules-menu-level-2 {
right: 100%;
left: auto;
}
}
}
& > a {
padding: 0.8rem;
font-size: 14px;
color:#fff;
font-weight: 900;
// text-shadow: 1px 1px 1px #0000008c;
}
&:hover {
.modules-menu-level-1 {
// display: block;
//
// visibility: visible;
// opacity: 1;
// transition-duration: opacity 0.3s cubic-bezier(0.48, 0.01, 0.5, 0.99),visibility 0.1s linear;
}
}
}
}
}
.modules-menu-level-1 {
background-color:#ffffff;
list-style: none;
z-index: 1;
padding:1em;
@media(min-width:769px){
flex-wrap: wrap;
justify-content: flex-start;
left:0;
display: flex;
visibility: hidden;
position: fixed!important;
opacity: 0;
width: 100vw;
box-shadow: 2px 2px 5px #00000033;
margin: 0.8em 0;
padding: 0;
max-height: 0;
overflow: hidden;
transition-duration: 0.5s;
}
& > li {
position: relative;
// & + li {
// border-top: 0.0625em solid lighten($theme-gray, 5%);
// }
& > a {
display: block;
padding: 1em 1.5em;
font-family: $main-font;
font-size: 16px;
font-weight: 600;
color: #333;
}
// &:hover {
// background-color: $theme-color-second;
// & > a {
// color: $theme-color-main;
// }
// }
}
@media (min-width: $screen-sm) {
position: absolute;
& > li {
padding-right: 2em;
flex: 0 0 33.3%;
& > a {
padding-left: 1em;
border-bottom: 2px solid #288E8E;
padding: 5px 0;
}
&:hover {
.modules-menu-level-2 {
display: block;
}
}
}
}
}
.modules-menu-level-2 {
margin: 0;
padding: 0;
list-style: none;
& > li {
& + li {
// border-top: 0.0625em solid lighten($theme-gray, 5%);
}
& > a {
display: block;
padding: 0.3em 3em;
font-family: $main-font;
color: #333;
font-size: 16px;
font-weight: 500;
}
// &:hover {
// background-color: $theme-color-second;
// }
}
@media (min-width: $screen-sm) {
top: 0;
left: 100%;
& > li > a {
padding-left: 1em;
}
}
}
}
.has-mobile-dropdown {
.modules-menu {
.dropdown-toggle-icon {
display: block;
}
}
}
@media (max-width: 767px) {
.modules-menu .modules-menu-level-0 {
flex-direction: column;
width: 100%;
padding: 0;
}
}
@media (max-width: 769px) {
.modules-menu .modules-menu-level-0 {
width: 100%;
padding: 0;
}
}
//mobile
.mobile-menu {
z-index: 1051;
width: 100vw;
position: fixed;
top: 0;
right: 0;
bottom: 0;
display: none;
&.active {
display: block;
}
.modules-menu {
width: 100%;
position: absolute;
right: 40px;
background: #ffffff;
height: 100%;
top: 0;
padding-top: 40px;
}
.modules-menu .modules-menu-level-0 > li > a, .modules-menu .modules-menu-level-0 ,.modules-menu .modules-menu-level-0 > li {color: #000;
font-size: 18px ;
font-weight: 500; }
.menu-drop{
font-size: 10px ;
}
.navbar-toggle {
position: absolute;
left: 0;
background: transparent;
top: 40px;
z-index: 1;
height: 100vh;
margin: 0;
width: 20%;
border: 0;
}
.cover {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: rgba(0,0,0,0.8);
z-index: 0;
}
}
//覆蓋bootstrap nav設定
.mobile-menu .modules-menu.collapsing {
overflow:unset !important;
transform: translateX(100%);
-webkit-transition-timing-function:ease;
-o-transition-timing-function:ease;
transition-timing-function:ease;
-webkit-transition-duration:.35s;
-o-transition-duration:.35s;
transition-duration:.35s;
-webkit-transition-property:transform;
-o-transition-property:transform;
transition-property:transform;
}
.mobile-menu .modules-menu.collapse.in {
transform: translateX(100%);
-webkit-transition-timing-function:ease;
-o-transition-timing-function:ease;
transition-timing-function:ease;
-webkit-transition-duration:.35s;
-o-transition-duration:.35s;
transition-duration:.35s;
-webkit-transition-property:transform;
-o-transition-property:transform;
transition-property:transform;
}
.mobile-menu .collapse.navbar-collapse.modules-menu {
overflow-y: scroll;
transform: translateX(0%);
}
.display-on{
display:block!important;
transition-duration: 0.9s;
}
.drop-down > a:after{
content:"\f103";
color:#fff;
font-family: FontAwesome;
font-style: normal;
margin-left: 5px;
}
.dropdown-arrow{
align-self: center;
margin-left: 10px;
z-index: 999;
@media(max-width: 768px){
position: absolute;
right: 0.3em;
width: 2.5em;
height: 2.5em;
cursor: pointer;
line-height: 2.5em;
font-size: 1em;
text-align: center;
border-radius: 0.13em;
display: none!important;
}
}
.fa-chevron-right{
align-self: center;
margin-left: 10px;
font-size: 3px;
font-weight: 100!important;
}

View File

@ -1,4 +1,4 @@
@import url("http://fonts.googleapis.com/css?family=Droid+Sans:400,700");
@import url("https://fonts.googleapis.com/css?family=Droid+Sans:400,700");
// Base
@import "base/orbitbar-override";
@ -22,7 +22,17 @@
//RWD
@import "RWD";
div.weather_widget1{
background: unset;
}
.navFixed .modules-menu .modules-menu-level-0 > li:focus-within .modules-menu-level-1, .navRel .modules-menu .modules-menu-level-0 > li:focus-within .modules-menu-level-1{
visibility: visible;
max-height: 65%;
opacity: 1;
border-radius: 0.5em;
padding: 1em 5% 3em;
}
div.extra-box:empty {
display: none;
}
@ -30,7 +40,9 @@ div.extra-box:empty {
// outline: 2px solid #43B5FC;
outline: transparent;
}
.twocontent{
margin-top:0!important;
}
// container setting
.response-container {
position: relative;
@ -62,14 +74,17 @@ div.extra-box:empty {
@media (min-width: $screen-sm) {
width: 100%;
padding:0 2em;
}
@media (min-width: $screen-md) {
width: 60em;
width: 100%;
padding:0 2em;
}
@media (min-width: $screen-lg) {
width:70em;
width: 100%;
padding:0 2em;
}
}
.dropdowns{
@ -129,11 +144,11 @@ ul.tab_nav {
border-radius: 30px;
behavior: url("/assets/ie_support/PIE2/PIE.htc");
&:hover{
background:#288E8E;
background:#c49951;
color: #fff;
}
&.active {
background:#288E8E;
background:#c49951;
color: #fff;
}
}

View File

@ -76,7 +76,7 @@
.sitemenu-list {
border-radius: 0.25em;
box-shadow: 0px 0px 0px 1px #d7d7d7;
margin: 0 -1px!important;
margin:0 0 1em !important;
}
.sitemenu-item{
@media (min-width: 768px) {

View File

@ -2,48 +2,56 @@
<html lang="<%= I18n.locale.to_s %>" class="orbit">
<head>
<%= render_partial("head") %>
<link href="//db.onlinewebfonts.com/c/b8e20323f8f36e06f87745c93c45afcd?family=IndustryW00-Medium" rel="stylesheet" type="text/css"/>
<link href="/assets/template/IndustryW00-Medium.css" rel="stylesheet" type="text/css"/>
</head>
<body class="page-home">
<%= render_orbit_bar %>
<!-- <div class="background" data-pp="100"></div> -->
<%= render_header %>
<div class="downIcon" ><a href="#onesection" title="目標"><span></span></a></div>
<div class="downIcon" ><a href="#onesection" title="目標"><span><img style="display: none;" src="/assets/down.svg" title="移動至目標位置" alt="移動至目標位置"></span></a></div>
<div class="bigcontent">
<div class="layout-content topcontent">
<a id="accesskey_content" accesskey="C" href="/<%= "#{locale.to_s}" %>/accesskey" title="Content">:::</a>
<div class="layout-content-inner container">
<section class="body-banner" data-pp="6"></section>
<div class="row onesection" id="onesection">
<section class="layout-content-box col-sm-12 bannertwo" data-pp="31"></section>
<section class="layout-content-box col-sm-12 bannertwo" data-pp="30"></section>
</div>
<div class="row group">
<section class="layout-content-box box " data-pp="7"></section>
<section class="layout-content-box box " data-pp="2"></section>
<section class="layout-content-box box " data-pp="3"></section>
<section class="layout-content-box box " data-pp="4"></section>
<section class="layout-content-box box " data-pp="1"></section>
<div class="row twosection">
<div class="three-column col-sm-4 oneshadow" data-pp="1"></div>
<div class="three-column col-sm-4 middlebox" data-pp="2"></div>
<div class="three-column col-sm-4 rightbox" data-pp="3"></div>
</div>
<div class="row colorbox">
<section class="extra-box col-sm-12" data-pp="33"></section>
</div>
<div class="layout-content-box2 colorbox container row">
<section class="body-banner line" data-pp="8"></section>
<div class="column row image-carousel">
<div class="extra-box col-sm-12" data-pp="37"></div>
<div class="extra-box col-sm-12" data-pp="38"></div>
<div class="column row">
<section class="extra-box col-sm-12 swiper-banner" data-pp="201"></section>
<div class="row onesection" id="onesection">
<div class="layout-content-box col-sm-3" data-pp="31"></div>
<div class="layout-content-box col-sm-9">
<div class="layout-content-box col-sm-12" data-pp="32"></div>
<div class="layout-content-box col-sm-6" data-pp="34"></div>
<div class="layout-content-box col-sm-6" data-pp="35"></div>
</div>
</div>
</div>
<div class="row line threesection">
<div class="layout-content-box col-sm-6 leftannounce" data-pp="27"></div>
<div class="layout-content-box col-sm-6">
<div class="layout-content-box col-sm-12 tab" data-pp="28"></div>
</div>
<div class="layout-slidewrapper">
<div class="layout-slide no-print single-child-datapp layout-slide-one" data-pp="301"></div>
<div class="layout-slide no-print single-child-datapp" data-pp="302"></div>
</div>
<div class="layout-content-inner container twocontent">
<div class="row group">
<section class="layout-content-box box " data-pp="4"></section>
<section class="layout-content-box box " data-pp="5"></section>
<section class="layout-content-box box " data-pp="17"></section>
<section class="layout-content-box box " data-pp="7"></section>
<section class="layout-content-box box " data-pp="8"></section>
</div>
<div class="row colorbox">
<section class="extra-box col-sm-12" data-pp="9"></section>
</div>
<div class="row line threesection">
<div class="layout-content-box col-sm-6 leftannounce" data-pp="14"></div>
<div class="layout-content-box col-sm-6">
<div class="layout-content-box col-sm-12 tab" data-pp="15"></div>
</div>
</div>
<div class="row group">
<section class="layout-content-box box" data-pp="101"></section>
<section class="layout-content-box box" data-pp="102"></section>
@ -52,37 +60,9 @@
<section class="layout-content-box box" data-pp="105"></section>
</div>
<div class="row">
<div class="extra-box col-sm-12" data-pp="29"></div>
</div>
<div class="foursection">
<div class="column row line">
<div class="extra-box col-sm-12" data-pp="11"></div>
<div class="extra-box col-sm-12 twostyle" data-pp="12"></div>
<div class="three-column col-sm-4" data-pp="14"></div>
<div class="three-column col-sm-4" data-pp="15"></div>
<div class="three-column col-sm-4" data-pp="13"></div>
</div>
</div>
<div class="row line fontgroup">
<div class="extra-box col-sm-12" data-pp="56"></div>
<div class="five-column iconbox" data-pp="40"></div>
<div class="five-column iconbox" data-pp="41"></div>
<div class="five-column iconbox" data-pp="42"></div>
<div class="five-column iconbox" data-pp="43"></div>
<div class="five-column iconbox" data-pp="44"></div>
<div class="five-column iconbox" data-pp="45"></div>
<div class="five-column iconbox" data-pp="46"></div>
<div class="five-column iconbox" data-pp="47"></div>
<div class="five-column iconbox" data-pp="48"></div>
<div class="five-column iconbox" data-pp="49"></div>
<div class="five-column iconbox" data-pp="50"></div>
<div class="five-column iconbox" data-pp="51"></div>
<div class="five-column iconbox" data-pp="52"></div>
<div class="five-column iconbox" data-pp="53"></div>
<div class="five-column iconbox" data-pp="54"></div>
<div class="extra-box col-sm-12" data-pp="16"></div>
</div>
</div>
</div>
</div>
<%= render_footer %>

View File

@ -29,35 +29,33 @@
</div>
</div>
<div class="w-ad-banner__caption ad-overlay w-ba-banner__caption w-ad-banner__caption w-ad-banner__overlay_{{subpart-id}}"></div>
<div class="w-ad-banner__pager-1 w-ba-banner__caption banner-pager banner_caption_{{subpart-id}}" data-list="images" data-level="0">
<li><button title="Slide {{slide_number}}"><span style="display: none;">Slide {{slide_number}}</span></button></li>
</div>
<ul class="controlplay"><a class="resume-slide active" title = "<%= (I18n.locale.to_s =="zh_tw") ? "繼續播放" : "resume" %>"><i></i></a><a class="pause-slide" title = "<%= (I18n.locale.to_s =="zh_tw") ? "暫停播放" : "pause"%>"><i></i></a></ul>
<div class="w-ad-banner__pager-1 w-ba-banner__caption banner-pager banner_caption_{{subpart-id}}" data-list="images" data-level="0">
<li><button title="Slide {{slide_number}}"><span style="display: none;">Slide {{slide_number}}</span></button></li>
</div>
<ul class="controlplay"><a href="javascript:;" class="resume-slide active" title="<%= I18n.t("ad_banner.resume") %>"><i aria-hidden="true" aria-label="<%= I18n.t("ad_banner.resume") %>"></i><p style="display: none;"><%= I18n.t("ad_banner.resume") %></p></a><a href="javascript:;" class="pause-slide" title="<%= I18n.t("ad_banner.pause") %>"><i aria-hidden="true" aria-label="<%= I18n.t("ad_banner.pause") %>"></i><p style="display: none;"><%= I18n.t("ad_banner.pause") %></p></a></ul>
<ul class="button-mid">
<i class="fa fa-angle-left prev-button" aria-hidden="true" title = "<%= (I18n.locale.to_s =="zh_tw") ? "上一張" : "prev" %>"></i>
<i class="fa fa-angle-right next-button" aria-hidden="true" title = "<%= (I18n.locale.to_s =="zh_tw") ? "下一張" : "next" %>"></i>
<i class="fa fa-angle-left prev-button" aria-label="<%= I18n.t("ad_banner.prev") %>"></i>
<i class="fa fa-angle-right next-button" aria-label="<%= I18n.t("ad_banner.next") %>"></i>
</ul>
</div>
<script>
var flag = 1;
$('.pause-slide').off('click').click(function(){
$('[data-subpart-id="{{subpart-id}}"] .pause-slide').click(function(){
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle('pause');
$(this).addClass('active')
$(this).parents('.controlplay').eq(0).find('.resume-slide').removeClass('active')
});
$('.resume-slide').off('click').click(function(){
$('[data-subpart-id="{{subpart-id}}"] .resume-slide').click(function(){
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle('resume');
$(this).addClass('active')
$(this).parents('.controlplay').eq(0).find('.pause-slide').removeClass('active')
});
$('.next-button').off('click').on('click',function(){
$('[data-subpart-id="{{subpart-id}}"] .next-button').click(function(){
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("next");
})
$('.prev-button').off('click').on('click',function(){
$('[data-subpart-id="{{subpart-id}}"] .prev-button').click(function(){
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("prev");
})
</script>
<style type="text/css">
.w-ba-banner .controlplay .resume-slide.active i{
@ -72,9 +70,8 @@
.w-ba-banner .button-mid{
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
height: 0;
top: 50%;
}
.next-button,.prev-button{
cursor: pointer;

View File

@ -11,7 +11,7 @@
data-cycle-timeout="{{timeout}}"
data-cycle-fx="{{ad_fx}}"
data-pager=".banner_caption_{{subpart-id}}"
data-pager-template="<li><button></button></li>"
data-pager-template="<li><button title='pager'></button></li>"
data-pager-active-class="active-slide"
data-cycle-youtube="true"
data-cycle-youtube-autostart="false"
@ -25,31 +25,60 @@
{{html}}
</div>
<div class="ad-overlay w-ad-banner__overlay_{{subpart-id}}"></div>
<div class="w-ba-banner__caption w-ad-banner__pager-2 banner-pager banner_caption_{{subpart-id}}"></div>
<ul class="controlplay"><a class="resume-slide active" title = "<%= (I18n.locale.to_s =="zh_tw") ? "繼續播放" : "resume" %>"><i></i></a><a class="pause-slide" title = "<%= (I18n.locale.to_s =="zh_tw") ? "暫停播放" : "pause"%>"><i></i></a></ul>
<ul class="button-mid">
<i class="fa fa-angle-left prev-button" aria-hidden="true" title = "<%= (I18n.locale.to_s =="zh_tw") ? "上一張" : "prev" %>"></i>
<i class="fa fa-angle-right next-button" aria-hidden="true" title = "<%= (I18n.locale.to_s =="zh_tw") ? "下一張" : "next" %>"></i>
</ul>
</div>
<div class="w-ba-banner__caption w-ad-banner__pager-2 banner-pager banner_caption_{{subpart-id}}"></div>
<ul class="controlplay"><a href="javascript:;" class="resume-slide active" title="<%= I18n.t("ad_banner.resume") %>"><i aria-hidden="true" aria-label="<%= I18n.t("ad_banner.resume") %>"></i><p style="display: none;"><%= I18n.t("ad_banner.resume") %></p></a><a href="javascript:;" class="pause-slide" title="<%= I18n.t("ad_banner.pause") %>"><i aria-hidden="true" aria-label="<%= I18n.t("ad_banner.pause") %>"></i><p style="display: none;"><%= I18n.t("ad_banner.pause") %></p></a></ul>
<ul class="button-mid">
<i class="fa fa-angle-left prev-button" aria-label="<%= I18n.t("ad_banner.prev") %>"></i>
<i class="fa fa-angle-right next-button" aria-label="<%= I18n.t("ad_banner.next") %>"></i>
</ul>
</div>
<script type="text/javascript">
var ad_trigger_time;
if (typeof ad_banners_count === 'undefined'){
var ad_banners_count = 0;
}
var control_play_btn_pause = function(){
this.attr('aria-label', '<%= I18n.t("ad_banner.resume") %>');
this.attr('title', '<%= I18n.t("ad_banner.resume") %>');
this.find('p').text('<%= I18n.t("ad_banner.resume") %>');
this.find('i.fa-pause').removeClass('fa-pause').addClass('fa-play');
}
var control_play_btn_play = function(){
this.attr('aria-label', '<%= I18n.t("ad_banner.pause") %>');
this.attr('title', '<%= I18n.t("ad_banner.pause") %>');
this.find('p').text('<%= I18n.t("ad_banner.pause") %>');
this.find('i.fa-play').removeClass('fa-play').addClass('fa-pause');
}
function ad_audio_button(ele,is_stop){
var $self = $(ele);
var button_container = $self.parents('.ba-banner-widget-youtube').eq(0);
var append_class = "";
if (is_stop){
button_container.find('.jarallax-video-audio').remove();
var control_play_btn = $('.jarallax-video-control-play');
if(control_play_btn.length){
control_play_btn_pause.call(control_play_btn);
}
}else{
var control_play_btn = null;
if(window.accessibility_mode){
append_class = " accessibility_mode_btn";
var control_play_btn = $('.jarallax-video-control-play');
if(control_play_btn.length){
control_play_btn_play.call(control_play_btn);
control_play_btn = null;
}else{
control_play_btn = $('<button title="<%= I18n.t("ad_banner.pause") %>" class="jarallax-video-control-play"><i class="fas fa-pause" aria-label="<%= I18n.t("ad_banner.pause") %>" aria-hidden="true"></i><p style=\"display: none;\"><%= I18n.t("ad_banner.pause") %></p></button>');
}
}
var audio_div;
if ($self.hasClass('have-audio')){
audio_div = $('<div class="jarallax-video-audio"><i class="fas fa-volume-up"></i></div>');
audio_div = $('<button title="<%= I18n.t("ad_banner.muted") %>" class="jarallax-video-audio'+append_class+'"><i class="fas fa-volume-up" aria-label="<%= I18n.t("ad_banner.muted") %>" aria-hidden="true"></i><p style=\"display: none;\"><%= I18n.t("ad_banner.muted") %></p></button>');
}else{
audio_div = $('<div class="jarallax-video-audio"><i class="fas fa-volume-mute"></i></div>');
audio_div = $('<button title="<%= I18n.t("ad_banner.unmuted") %>" class="jarallax-video-audio'+append_class+'"><i class="fas fa-volume-mute" aria-label="<%= I18n.t("ad_banner.unmuted") %>" aria-hidden="true"></i><p style=\"display: none;\"><%= I18n.t("ad_banner.unmuted") %></p></button>');
}
audio_div.find('p').css('display','none'); //fix CSP
audio_div.click(function(event) {
var currentTime = new Date();
if (ad_trigger_time&&currentTime-ad_trigger_time<500){
@ -61,10 +90,10 @@
var $video = $self.find('video');
if ($self.hasClass('have-audio')){
$self.removeClass('have-audio');
$(this).find('i.fas').attr('class','fas fa-volume-mute');
$(this).attr('title','<%= I18n.t("ad_banner.unmuted") %>').find('i.fas').attr('class','fas fa-volume-mute').attr('aria-label','<%= I18n.t("ad_banner.unmuted") %>');
}else{
$self.addClass('have-audio');
$(this).find('i.fas').attr('class','fas fa-volume-up');
$(this).attr('title','<%= I18n.t("ad_banner.muted") %>').find('i.fas').attr('class','fas fa-volume-up').attr('aria-label','<%= I18n.t("ad_banner.muted") %>');
}
if ($video.length>0){
$self.jPlayer("mute", !$self.data().jPlayer.options.muted);
@ -79,7 +108,47 @@
});
button_container.find('.jarallax-video-audio').remove();
button_container.append(audio_div);
if(control_play_btn != null){
audio_div.after(control_play_btn);
control_play_btn.click(function(){
var cycle_slideshow = button_container.find('.cycle-slideshow');
var opts = cycle_slideshow.data('cycle.opts');
var active_slide = opts.slides.filter('.'+opts.slideActiveClass);
if(active_slide.length){
var yt_iframe = active_slide.find('iframe');
if(yt_iframe.length == 0){
var jplayer = active_slide.find('.jp-jplayer').data('jPlayer');
if(jplayer){
if(jplayer.htmlElement.video.paused){
jplayer.play();
}else{
jplayer.pause();
}
}
}else{
if(window.yt_players){
var subpart_id = button_container.attr('data-subpart-id');
var subpart_yt_players = window.yt_players[subpart_id];
if(subpart_yt_players){
var yt_player = subpart_yt_players[yt_iframe.attr('id')];
var play_state = yt_player.getPlayerState();
if(play_state == YT.PlayerState.PLAYING || play_state == YT.PlayerState.BUFFERING){
yt_player.pauseVideo();
}else if(play_state == YT.PlayerState.UNSTARTED || play_state == YT.PlayerState.PAUSED || play_state == YT.PlayerState.ENDED || play_state == YT.PlayerState.CUED){
yt_player.playVideo();
play_state = yt_player.getPlayerState();
if(play_state == YT.PlayerState.UNSTARTED || play_state == YT.PlayerState.PAUSED || play_state == YT.PlayerState.ENDED || play_state == YT.PlayerState.CUED){
yt_player.mute().playVideo();
}
}
}
}
}
}
})
}
}
}
if(document.getElementById("youtube-iframe-api") == null){
var tag = document.createElement('script');
@ -88,89 +157,212 @@
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
}
$("*[data-yt-binded=0]").each(function(){
$(this).attr("data-yt-binded","1");
var obj = $(this).find("iframe");
obj.attr("id",$(this).data("youtube-id") + "_" + ad_banners_count);
ad_banners_count++;
})
if (typeof onYouTubeIframeAPIReady !== 'function'){
$(document).ready(function() {
$(document).on('touchstart click mousedown',".jarallax-video-audio",function(){
$(this).trigger('click');
});
});
if(window.yt_players == undefined)
window.yt_players = {};
function onYouTubeIframeAPIReady(){
$(".w-ba-banner").each(function(i,banner){
var iframes = $(banner).find("iframe");
if(iframes.length > 0){
var id = $(banner).attr("data-subpart-id");
if(yt_players[id] == undefined)
yt_players[id] = {};
var remove_ids = [];
Object.keys(yt_players[id]).forEach(function(k){
var yt_player = yt_players[id][k];
if($(yt_player.getIframe()).length == 0){
yt_player.destroy();
remove_ids.push(k);
}
})
remove_ids.forEach(function(k){
delete yt_players[id][k];
})
iframes.each(function(i,iframe){
var yt_player = yt_players[id][$(iframe).attr("id")];
if(yt_player){
}else{
yt_player = new YT.Player($(iframe).attr("id"), {
events: {
'onReady': function(event){
var height = $(event.target.getIframe()).height();
var banner_wrap = $(iframe).parents('.w-ba-banner__wrap').eq(0);
banner_wrap.height(height).css({"padding-bottom":"","padding-top":""});
banner_wrap.find(".cycle-carousel-wrap").css("top","3em");
delete (event.target.B || event.target.H).onStateChange;
var onStateChange_idx = event.target.l.i.onStateChange;
onStateChange_idx.reverse();
var event_size = 3;
onStateChange_idx.forEach(function(start_idx){
event.target.l.h.splice(start_idx,event_size);
});
event.target.l.i.onStateChange = [];
event.target.l.s = event.target.l.h.length;
event.target.addEventListener('onStateChange',onPlayerStateChange);
{{extra_ready_script}}
},
'onStateChange': onPlayerStateChange
}
});
yt_players[id][$(iframe).attr("id")] = yt_player;
$(iframe).data("yt_player",yt_player);
}
})
if(window.init_yt_banner == undefined){
function init_yt_banner(banner__slide){
var $banner__slide = $(banner__slide);
if( $banner__slide.data("yt-binded")== "0" ){
$banner__slide.data("yt-binded","1");
var obj = $banner__slide.find("iframe");
obj.attr("id", $banner__slide.data("youtube-id") + "_" + ad_banners_count);
ad_banners_count++;
}
})
}
function onPlayerStateChange(event){
var iframe = $(event.target.h),
cyclediv = iframe.parents("div.cycle-slideshow");
var widget = cyclediv.parents('.ba-banner-widget-youtube');
if(event.data == YT.PlayerState.PLAYING || event.data == YT.PlayerState.BUFFERING){
cyclediv[0].need_resume = !(cyclediv.hasClass("cycle-paused"));
cyclediv.cycle("pause");
widget.find('.banner-pager,.controlplay,.button-mid,.ad-overlay').css('visibility','hidden')
ad_audio_button(iframe.parents(".w-ad-banner__slide").eq(0),false);
}else if(event.data == YT.PlayerState.UNSTARTED || event.data == YT.PlayerState.PAUSED || event.data == YT.PlayerState.ENDED){
if(cyclediv[0].need_resume)
cyclediv.cycle("resume");
widget.find('.banner-pager,.controlplay,.button-mid,.ad-overlay').css('visibility','')
ad_audio_button(iframe.parents(".w-ad-banner__slide").eq(0),true);
}
{{extra_state_chnage_script}}
}
}
$("*[data-yt-binded=0]").each(function(){
init_yt_banner(this);
})
if (typeof onYouTubeIframeAPIReady !== 'function'){
$(document).ready(function() {
$(document).on('touchstart click mousedown',".jarallax-video-audio",function(){
$(this).trigger('click');
});
});
if(window.yt_players == undefined)
window.yt_players = {};
function find_out_yt_event_list_key(yt_player){
var defalt_key = 'o';
var all_keys = Object.keys(yt_player).filter(function(s){return s.length == 1});
var prop_nums_thresh = 6;
if(all_keys.indexOf(defalt_key) != -1){
if((yt_player[defalt_key] instanceof Object) && Object.keys(yt_player[defalt_key]).length > prop_nums_thresh){
return defalt_key;
}
}
var event_key;
all_keys.forEach(function(k){
if((yt_player[k] instanceof Object) && Object.keys(yt_player[k]).length > prop_nums_thresh){
event_key = k;
return false;
}
})
return event_key;
}
function find_out_yt_event_list_count_key(yt_player, event_list_key){
var defalt_key = 'v';
var all_keys = Object.keys(yt_player).filter(function(s){return s.length == 1});
var equal_count = yt_player[event_list_key].length;
if(all_keys.indexOf(defalt_key) != -1){
if(yt_player[defalt_key] == equal_count){
return defalt_key;
}
}
var count_key;
all_keys.forEach(function(k){
if(yt_player[k] == equal_count){
count_key = k;
return false;
}
})
return count_key;
}
function find_out_yt_event_list_array_key(event_dict){
var defalt_key = 'i';
var all_keys = Object.keys(event_dict);
if(all_keys.indexOf(defalt_key) != -1){
var tmp = event_dict[defalt_key];
if(Array.isArray(tmp) && tmp.indexOf('onStateChange') != -1){
return defalt_key;
}
}
var array_key;
all_keys.forEach(function(k){
var tmp = event_dict[k];
if(Array.isArray(tmp) && tmp.indexOf('onStateChange') != -1){
array_key = k;
return false;
}
})
return array_key;
}
function find_out_yt_event_relation_key(event_dict, is_obj){ // is_obj = true => store event idx array. false => store whether event init(true or false)
var defalt_key = 'j';
var all_keys = Object.keys(event_dict);
if(all_keys.indexOf(defalt_key) != -1){
var tmp = event_dict[defalt_key];
if((tmp instanceof Object) && tmp['onStateChange']){
if(!is_obj || (tmp['onStateChange'] instanceof Object)){
return defalt_key;
}
}
}
var relation_key;
all_keys.forEach(function(k){
var tmp = event_dict[k];
if((tmp instanceof Object) && tmp['onStateChange']){
if(!is_obj || (tmp['onStateChange'] instanceof Object)){
relation_key = k;
return false;
}
}
})
return relation_key;
}
function onYouTubeIframeAPIReady(){
$(".w-ba-banner").on('cycle-post-initialize', function(){
init_banner(this);
});
function init_banner(banner){
var $banner = $(banner);
$banner.find('.w-ad-banner__slide').each(function(j, banner__slide){
init_yt_banner(banner__slide);
})
var iframes = $banner.find("iframe");
if(iframes.length > 0){
var id = $banner.attr("data-subpart-id");
if(yt_players[id] == undefined)
yt_players[id] = {};
var remove_ids = [];
Object.keys(yt_players[id]).forEach(function(k){
var yt_player = yt_players[id][k];
if($(yt_player.getIframe()).length == 0){
yt_player.destroy();
remove_ids.push(k);
}
})
remove_ids.forEach(function(k){
delete yt_players[id][k];
})
iframes.each(function(i,iframe){
var $iframe = $(iframe);
var yt_id = $iframe.attr("id");
var yt_player = yt_players[id][yt_id];
if(yt_player){
}else{
yt_player = new YT.Player(yt_id, {
events: {
'onReady': function(event){
var yt_player = event.target;
var height = $(yt_player.getIframe()).height();
var banner_wrap = $iframe.parents('.w-ba-banner__wrap').eq(0);
var carousel_wrap = banner_wrap.find(".cycle-carousel-wrap");
if(carousel_wrap.length){
carousel_wrap.css("top","3em");
height += parseInt(carousel_wrap.css('font-size')) * 3;
}
var overlay_in_slide = $iframe.parent().siblings('.ad-overlay,.banner-overlay');
if(overlay_in_slide.length != 0){
height += overlay_in_slide.outerHeight(true);
}
banner_wrap.height(height).css({"padding-bottom":"","padding-top":""});
var init_key = find_out_yt_event_relation_key(yt_player, false);
if(init_key){
delete yt_player[init_key].onStateChange;
}
else{
console.log("{onReady: true, onStateChange: true} missing!");
}
var event_list_key = find_out_yt_event_list_key(yt_player);
if(event_list_key){
var event_dict = yt_player[event_list_key];
var array_key = find_out_yt_event_list_array_key(event_dict);
var count_key = find_out_yt_event_list_count_key(event_dict, array_key);
var relation_key = find_out_yt_event_relation_key(event_dict, true);
var onStateChange_idx = event_dict[relation_key].onStateChange;
onStateChange_idx.reverse();
var event_size = 3;
onStateChange_idx.forEach(function(start_idx){
event_dict[array_key].splice(start_idx,event_size);
});
event_dict[relation_key].onStateChange = [];
event_dict[count_key] = event_dict[array_key].length;
yt_player.addEventListener('onStateChange',onPlayerStateChange);
banner_wrap.trigger('resize');
}else{
console.log("YT player changes its variables!")
}
{{extra_ready_script}}
},
'onStateChange': onPlayerStateChange
}
});
yt_players[id][yt_id] = yt_player;
$iframe.data("yt_player",yt_player);
}
})
}
}
$(".w-ba-banner").each(function(i,banner){
init_banner(banner);
})
}
function onPlayerStateChange(event){
var iframe = $(event.target.getIframe()),
cyclediv = iframe.parents("div.cycle-slideshow");
var widget = cyclediv.parents('.ba-banner-widget-youtube');
if(event.data == YT.PlayerState.PLAYING || event.data == YT.PlayerState.BUFFERING){
cyclediv[0].need_resume = !(cyclediv.hasClass("cycle-paused"));
cyclediv.cycle("pause");
widget.find('.banner-pager,.controlplay,.button-mid,.ad-overlay,.banner-overlay').css('visibility','hidden')
ad_audio_button(iframe.parents(".w-ad-banner__slide").eq(0),false);
}else if(event.data == YT.PlayerState.UNSTARTED || event.data == YT.PlayerState.PAUSED || event.data == YT.PlayerState.ENDED){
if(cyclediv[0].need_resume)
cyclediv.cycle("resume");
widget.find('.banner-pager,.controlplay,.button-mid,.ad-overlay,.banner-overlay').css('visibility','')
ad_audio_button(iframe.parents(".w-ad-banner__slide").eq(0),true);
}
{{extra_state_chnage_script}}
}
}
$(document).ready(function(){
window.onYouTubePlayerAPIReady = function() {
onYouTubeIframeAPIReady.apply(this,arguments);
@ -185,10 +377,12 @@ if (typeof onYouTubeIframeAPIReady !== 'function'){
}
})
banner_wrap.on('cycle-resumed',function(opts){
var controlplay = $(this).nextAll(".controlplay");
if(controlplay.length != 0){
controlplay.find(".resume-slide").addClass("active");
controlplay.find(".pause-slide").removeClass("active");
if(!($(this).data('paused'))){
var controlplay = $(this).nextAll(".controlplay");
if(controlplay.length != 0){
controlplay.find(".resume-slide").addClass("active");
controlplay.find(".pause-slide").removeClass("active");
}
}
})
/*
@ -196,40 +390,28 @@ if (typeof onYouTubeIframeAPIReady !== 'function'){
banner_wrap.height(height)*/
banner_wrap.css("padding-bottom","");
{{extra_document_ready_script}}
$('.pause-slide').off('click').click(function(){
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle('pause');
$('[data-subpart-id="{{subpart-id}}"] .pause-slide').click(function(){
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").data('paused', true).cycle('pause');
$(this).addClass('active');
$(this).parents('.controlplay').eq(0).find('.resume-slide').removeClass('active');
});
$('.resume-slide').off('click').click(function(){
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle('resume');
$('[data-subpart-id="{{subpart-id}}"] .resume-slide').click(function(){
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").data('paused', false).cycle('resume');
$(this).addClass('active');
$(this).parents('.controlplay').eq(0).find('.pause-slide').removeClass('active');
});
$('.next-button').off('click').on('click',function(){
$('[data-subpart-id="{{subpart-id}}"] .next-button').click(function(){
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("next");
})
$('.prev-button').off('click').on('click',function(){
$('[data-subpart-id="{{subpart-id}}"] .prev-button').click(function(){
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("prev");
})
var resize_timeout_id;
$(window).resize(function(){
if(resize_timeout_id){
window.clearTimeout(resize_timeout_id);
}
resize_timeout_id = window.setTimeout(function(){
var banner_wrap = $(".w-ba-banner__wrap[data-overlay=\".w-ad-banner__overlay_{{subpart-id}}\"]");
var opts = banner_wrap.data('cycle.opts');
var height = opts.slides.filter('.active').height() || opts.slides.height();
banner_wrap.height(height).css("padding-bottom","");
},300);
})
})
</script>
<style type="text/css">
.jarallax-video-audio{
.jarallax-video-audio, .jarallax-video-control-play{
z-index: 201;
font-size: 36px;
font-size: 2em;
color: #FFF;
text-align: center;
position: absolute;
@ -244,12 +426,21 @@ if (typeof onYouTubeIframeAPIReady !== 'function'){
background-color: rgba(0,0,0,.6);
transition: all 1.2s ease;
}
.jarallax-video-control-play{
margin-top: 66px;
}
@media (max-width: 768px){
.jarallax-video-audio{
.jarallax-video-audio, .jarallax-video-control-play{
top: 50%;
}
.jarallax-video-audio.accessibility_mode_btn{
margin-top: -33px;
}
.jarallax-video-control-play{
margin-top: 33px;
}
}
.jarallax-video-audio:hover{
.jarallax-video-audio:hover,.jarallax-video-audio:focus,.jarallax-video-control-play:hover,.jarallax-video-control-play:focus {
color: #FFC500;
transition: all 0.6s ease;
}
@ -263,13 +454,6 @@ if (typeof onYouTubeIframeAPIReady !== 'function'){
.w-ba-banner .controlplay{
width: auto;
}
.w-ba-banner .button-mid{
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
.next-button,.prev-button{
cursor: pointer;
}

View File

@ -1,70 +0,0 @@
<div class="w-ba-banner ad-banner-widget-6 ba-banner-widget-6">
<div class="w-ba-banner__wrap cycle-slideshow"
data-list="images"
data-level="0"
data-cycle-slides=".w-ba-banner__slide"
data-cycle-log="false"
data-overlay=".w-ad-banner__overlay_{{subpart-id}}"
data-cycle-auto-height="{{base_image}}"
data-cycle-speed="{{speed}}"
data-cycle-timeout="{{timeout}}"
data-cycle-fx="{{ad_fx}}"
data-cycle-pager=".banner_caption_{{subpart-id}}"
data-pager-template=""
data-pager-active-class="active-slide"
data-cycle-swipe=true
data-cycle-swipe-fx="scrollHorz"
>
<div class="w-ba-banner__slide {{class}}"
data-link="{{link}}"
data-cycle-title="{{title}}"
data-cycle-desc="{{context}}"
data-overlay-template="<h3>{{title}}</h3><p>{{desc}}</p>"
data-target="{{target}}"
>
<a href="{{link}}" target="{{target}}" title="{{alt_title}}">
<img class="w-ba-banner__image banner-responsive" src="{{image_link}}" alt="{{alt_title}}">
</a>
</div>
</div>
<div class="ad-overlay w-ba-banner__caption w-ad-banner__caption w-ad-banner__overlay_{{subpart-id}}"></div>
<div class="w-ba-banner__caption banner-pager banner_caption_{{subpart-id}}" data-list="images" data-level="0">
<li><button title="Slide {{slide_number}}"><span style="display: none;">Slide {{slide_number}}</span></button></li>
</div>
<ul class="controlplay"><a class="resume-slide active" title = "<%= (I18n.locale.to_s =="zh_tw") ? "繼續播放" : "resume" %>"><i></i></a><a class="pause-slide" title = "<%= (I18n.locale.to_s =="zh_tw") ? "暫停播放" : "pause"%>"><i></i></a></ul>
<ul class="button-mid">
<i class="fa fa-angle-left prev-button" aria-hidden="true" title = "<%= (I18n.locale.to_s =="zh_tw") ? "上一張" : "prev" %>"></i>
<i class="fa fa-angle-right next-button" aria-hidden="true" title = "<%= (I18n.locale.to_s =="zh_tw") ? "下一張" : "next" %>"></i>
</ul>
<div class="background-overlay"></div>
</div>
<script>
var flag = 1;
$('.pause-slide').off('click').click(function(){
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle('pause');
$(this).addClass('active')
$(this).parents('.controlplay').eq(0).find('.resume-slide').removeClass('active')
});
$('.resume-slide').off('click').click(function(){
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle('resume');
$(this).addClass('active')
$(this).parents('.controlplay').eq(0).find('.pause-slide').removeClass('active')
});
$('.next-button').off('click').on('click',function(){
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("next");
})
$('.prev-button').off('click').on('click',function(){
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("prev");
})
</script>
<style type="text/css">
.controlplay .resume-slide.active i{
color: #32D9C3;
}
.controlplay .pause-slide.active i{
color: #ff4500;
}
</style>

View File

@ -19,7 +19,7 @@
data-link="{{link}}"
data-cycle-title="{{title}}"
data-cycle-desc="{{context}}"
data-overlay-template="<h3>{{title}}</h3><p>{{desc}}</p>"
data-overlay-template="<a href='{{link}}' target='{{target}}' title='{{alt_title}}'><h3>{{title}}</h3><p>{{desc}}</p></a>"
data-target="{{target}}"
>
<a href="{{link}}" target="{{target}}" title="{{alt_title}}">

View File

@ -1,5 +1,5 @@
<div class="w-ba-banner ad-banner-widget-6 ba-banner-widget-6">
<div class="w-ba-banner__wrap cycle-slideshow"
<div class="w-ad-banner w-ba-banner ad-banner-widget-8 ba-banner-widget-8">
<div class="w-ad-banner__wrap w-ba-banner__wrap cycle-slideshow"
data-list="images"
data-level="0"
data-cycle-slides=".w-ba-banner__slide"
@ -8,14 +8,17 @@
data-cycle-auto-height="{{base_image}}"
data-cycle-speed="{{speed}}"
data-cycle-timeout="{{timeout}}"
data-cycle-fx="{{ad_fx}}"
data-cycle-fx="carousel"
data-cycle-pager=".banner_caption_{{subpart-id}}"
data-pager-template=""
data-pager-active-class="active-slide"
data-cycle-swipe=true
data-cycle-swipe-fx="scrollHorz"
data-cycle-carousel-visible="4"
data-cycle-carousel-fluid=true
data-cycle-timeout="3000"
>
<div class="w-ba-banner__slide {{class}}"
<div class="w-ad-banner__slide w-ba-banner__slide {{class}}"
data-link="{{link}}"
data-cycle-title="{{title}}"
data-cycle-desc="{{context}}"
@ -23,13 +26,13 @@
data-target="{{target}}"
>
<a href="{{link}}" target="{{target}}" title="{{alt_title}}">
<img class="w-ba-banner__image banner-responsive" src="{{image_link}}" alt="{{alt_title}}">
<img class="w-ad-banner__image w-ba-banner__image banner-responsive" src="{{image_link}}" alt="{{alt_title}}">
</a>
</div>
</div>
<div class="ad-overlay w-ba-banner__caption w-ad-banner__caption w-ad-banner__overlay_{{subpart-id}}"></div>
<div class="w-ba-banner__caption banner-pager banner_caption_{{subpart-id}}" data-list="images" data-level="0">
<div class="w-ad-banner__caption ad-overlay w-ba-banner__caption w-ad-banner__caption w-ad-banner__overlay_{{subpart-id}}"></div>
<div class="w-ad-banner__pager-1 w-ba-banner__caption banner-pager banner_caption_{{subpart-id}}" data-list="images" data-level="0">
<li><button title="Slide {{slide_number}}"><span style="display: none;">Slide {{slide_number}}</span></button></li>
</div>
<ul class="controlplay"><a class="resume-slide active" title = "<%= (I18n.locale.to_s =="zh_tw") ? "繼續播放" : "resume" %>"><i></i></a><a class="pause-slide" title = "<%= (I18n.locale.to_s =="zh_tw") ? "暫停播放" : "pause"%>"><i></i></a></ul>
@ -57,13 +60,54 @@
$('.prev-button').off('click').on('click',function(){
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("prev");
})
// var video_carousels = $('.cycle-slideshow[data-cycle-fx="carousel"]');
// if(video_carousels) {
// reinit_cycle();
// var reinitTimer;
// $(window).resize(function() {
// clearTimeout(reinitTimer);
// reinitTimer = setTimeout(reinit_cycle, 100); // Timeout limits the number of calculations
// });
// }
//
// function reinit_cycle() {
// var width = $(window).width(); // Checking size again after window resize
// if ( width < 768 ) {
// $(video_carousels).cycle( "destroy" );
// $(video_carousels).cycle({
// carouselVisible: 1,
// });
// } else if ( width > 768 && width < 980 ) {
// $(video_carousels).cycle( "destroy" );
// $(video_carousels).cycle({
// carouselVisible: 2,
// });
// } else {
// $(video_carousels).cycle( "destroy" );
// $(video_carousels).cycle({
// carouselVisible: 4,
// });
// }
// }
</script>
<style type="text/css">
.controlplay .resume-slide.active i{
.w-ba-banner .controlplay .resume-slide.active i{
color: #32D9C3;
}
.controlplay .pause-slide.active i{
.w-ba-banner .controlplay .pause-slide.active i{
color: #ff4500;
}
.w-ba-banner .controlplay{
width: auto;
}
.w-ba-banner .button-mid{
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
.next-button,.prev-button{
cursor: pointer;
}
</style>

View File

@ -70,6 +70,14 @@
"en" : "7. Carousel ( image, description, navigation )"
},
"thumbnail" : "thumb.png"
}
},
{
"filename" : "ad_banner_widget8",
"name" : {
"zh_tw" : "8. 橫幅輪播 ( 兩張圖片, 圖片說明文字, 導航圖示 )",
"en" : "8. Carousel ( image, description, navigation )"
},
"thumbnail" : "thumb.png"
}
]
}

View File

@ -4,13 +4,13 @@
</h3>
<ul class="w-annc__list" data-level="0" data-list="announcements">
<li class="w-annc__item row">
<h4 class="w-annc__entry-title col-sm-9">
<h4 class="w-annc__entry-title col-sm-8">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span>
</span>
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<span class="w-annc__postdate-wrap col-sm-3" date-format="%Y-%m-%d">
<span class="w-annc__postdate-wrap col-sm-4" date-format="%Y-%m-%d">
<span class="w-annc__postdate">{{postdate}}</span>
</span>

View File

@ -4,11 +4,11 @@
</h3>
<ul class="w-annc__list" data-level="0" data-list="announcements">
<li class="w-annc__item row">
<span class="w-annc__postdate-wrap col-sm-3" date-format="%Y-%m-%d">
<span class="w-annc__postdate-wrap col-sm-4" date-format="%Y-%m-%d">
<span class="w-annc__postdate">{{postdate}}</span>
</span>
<h4 class="w-annc__entry-title col-sm-9">
<h4 class="w-annc__entry-title col-sm-8">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span>
</span>

View File

@ -1,8 +1,8 @@
<div class="w-annc widget-announcement-4 w-annc widget-announcement-15" style="position:relative;">
<h3 class="w-annc__widget-title">
<span>{{widget-title}}</span>
</h3>
<div class="w-annc__more-wrap clearfix">
<h2 class="w-annc__widget-title">
<span>{{widget-title}}</span>
</h2>
<a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
<div style="position: absolute;top: 50%;bottom: 50%;width:100%;">
@ -128,7 +128,7 @@
num=1;
}
var flag=false;
$('.btn-left').click(function(){
$('[data-subpart-id=\"{{subpart-id}}\"] .btn-left').click(function(){
if(!flag){
var uls = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list:not(.hidden_item)').toArray();
var ul_length = uls.length;
@ -147,7 +147,7 @@
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list.active').eq(0).effect("slide", { direction: "left", mode: 'show', duration: 500},function(){$("body").css("overflow-x","");flag=false;});
};
});
$('.btn-right').click(function(){
$('[data-subpart-id=\"{{subpart-id}}\"] .btn-right').click(function(){
var lilength = $('[data-subpart-id=\"{{subpart-id}}\"] li.w-annc__item').length;
if(!flag){
var uls = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list:not(.hidden_item)').toArray();

View File

@ -1,23 +1,25 @@
<div class="w-annc widget-announcement-17">
<h3 class="w-annc__widget-title">
<span>{{widget-title}}</span>
</h3>
<div class="search_block">
<p>Search</p>
<form accept-charset="UTF-8" action="{{more_url}}" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="✓"></div>
<p>
<input id="search_query" name="keywords" placeholder="搜尋" type="text">
<input type="submit" value="搜尋">
<!-- <input type="submit" value="搜尋"><i class="fa fa-search"></i> -->
<button class="icon"><i class="fa fa-search"></i></button>
</p>
</form>
</div>
<h3 class="w-annc__widget-title">
<span>{{widget-title}}</span>
</h3>
<ul class="w-annc__list" data-level="0" data-list="announcements">
<li class="w-annc__item row">
<span class="w-annc__postdate-wrap col-sm-3" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="w-annc__postdate-wrap col-sm-4" date-format="%Y-%m-%d">
<!-- <i class="fa fa-calendar-o"></i> -->
<span class="w-annc__postdate">{{postdate}}</span>
</span>
<h4 class="w-annc__entry-title col-sm-9">
<h4 class="w-annc__entry-title col-sm-8">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span>
</span>

View File

@ -1,8 +1,8 @@
<div class="w-annc widget-announcement-4">
<h3 class="w-annc__widget-title">
<span>{{widget-title}}</span>
</h3>
<div class="w-annc__more-wrap clearfix">
<h2 class="w-annc__widget-title">
<span>{{widget-title}}</span>
</h2>
<a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
<ul class="w-annc__list row" data-level="0" data-list="announcements">

View File

@ -0,0 +1,29 @@
<div class="w-archive widget-archive-1 widget-archive-3" module="archive" data-ps="">
<h3 class="w-archive__widget-title">{{widget-title}}</h3>
<ul class="w-archive__list level-1 list-unstyled" data-list="categories" data-level="0">
<li class="w-archive__item level-1">
<h4 class="w-archive__item-heading">{{category-title}}</h4>
<li class="w-archive__item level-2">
<ul class="w-archive__list level-3" data-list="archives" data-level="1">
<li class="w-archive__item level-3">
<span class="w-archive__title" href="{{archive_url}}">{{archive-title}}</span>
<ul class="w-archive__list level-4" data-list="files" data-level="2">
<li class="w-archive__item level-4">
<a href="{{file-url}}" class="widget-archive-files-item w-archive__link" target="{{target}}" title="{{file-name}}">{{file-name}}</a>
<span class="label label-primary {{file-type}}">{{file-type}}</span>
</li>
</ul>
</li>
</ul>
</li>
</li>
</ul>
<p class="more">
<a class="btn btn-sm btn-primary" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多資訊" : "More" %></a>
</p>
<style>
.widget-archive-3 .w-archive__item-heading {
font-size: 1.2em;
}
</style>
</div>

View File

@ -0,0 +1,51 @@
<div class="w-archive widget-archive-2 widget-archive-4">
<h3 class="widget-title">
<span>{{widget-title}}</span>
</h3>
<div class="panel-group" id="widget-archive-group" data-list="categories" data-level="0">
<div class="panel panel-default">
<div class="panel-heading" style="padding: 0.625em 0.9375em;">
<h4 class="panel-title">
<i class="fa fa-file-text" aria-hidden="true"></i>
<a data-toggle="collapse" data-parent="#widget-archive-group" href="#collapse" class="collapsed" style="padding: 0;display: inline-block;">
{{category-title}}
<i class="fa fa-chevron-down" aria-hidden="true"></i>
</a>
</h4>
</div>
<div id="collapse" class="panel-collapse collapse {{in_class}}">
<div class="panel-body">
<dl class="dl-horizontal widget-archive-item-group" data-list="archives" data-level="1">
<dt class="widget-archive-item-list">
<sapn class="widget-archive-item-title">{{archive-title}}</span>
<span data-list="statuses" data-level="2">
<span class="label status {{status-class}}">{{status}}</span>
</span>
</dt>
<dl class="widget-archive-files-list" data-list="files" data-level="2">
<dd>
<a href="{{file-url}}" class="widget-archive-files-item" target="{{target}}" title="{{file-name}}">{{file-name}}</a>
<span class="label label-primary {{file-type}}">{{file-type}}</span>
</dd>
</dl>
</dl>
</div>
</div>
</div>
{{link_to_edit}}
</div>
<p class="more">
<a class="btn btn-sm btn-primary" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多資訊" : "More" %></a>
</p>
<style>
.widget-archive-4 dt.widget-archive-item-list {
float: none;
width: auto;
text-align: left;
}
.widget-archive-4 .widget-archive-files-list dd {
margin-left: 0;
}
</style>
</div>

View File

@ -13,8 +13,8 @@
</dt>
<dl class="i-archive__file-list" data-list="files" data-level="2">
<dd class="i-archive__file-wrap">
<a class="i-archive__file-name" href="{{file-url}}" target="_blank" title="{{file-name}}">{{file-name}}</a>
<span class="i-archive__file-type label label-primary">{{file-type}}</span>
<a class="i-archive__file-name" href="{{file-url}}" target="{{target}}" title="{{file-name}}">{{file-name}}</a>
<span class="i-archive__file-type label label-primary {{file-type}}">{{file-type}}</span>
</dd>
</dl>
</div>

View File

@ -0,0 +1,44 @@
<div class="i-archive index-archive-2 index-archive-12">
<h3 class="i-archive-title">
<span>{{page-title}}</span>
</h3>
<div class="panel-group" id="index-archive-group" data-list="categories" data-level="0">
<div class="panel panel-default">
<div class="panel-heading" style="padding: 0.625em 0.9375em;">
<h4 class="panel-title">
<i class="fa fa-file-text" aria-hidden="true"></i>
<a data-toggle="collapse" data-parent="#index-archive-group" href="#collapse" class="collapsed" style="padding: 0;display: inline-block;">
{{category-title}}
<i class="fa fa-chevron-down" aria-hidden="true"></i>
</a>
</h4>
</div>
<div id="collapse" class="panel-collapse collapse {{in_class}}">
<div class="panel-body">
<dl class="dl-horizontal i-archive-item-group" data-list="archives" data-level="1">
<dt class="i-archive-item-list">
<sapn class="i-archive-item-title">{{archive-title}}</span>
<span data-list="statuses" data-level="2">
<span class="label status {{status-class}}">{{status}}</span>
</span>
</dt>
<dl class="i-archive-files-list" data-list="files" data-level="2">
<dd>
<a href="{{file-url}}" class="i-archive-files-item" target="{{target}}" title="{{file-name}}">{{file-name}}</a>
<span class="label label-primary {{file-type}}">{{file-type}}</span>
</dd>
</dl>
</dl>
</div>
</div>
</div>
{{link_to_edit}}
</div>
<style>
.index-archive-12 dt.i-archive-item-list{
float: none;
width: auto;
}
</style>
</div>

View File

@ -0,0 +1,44 @@
<div class="i-archive index-archive-13">
<h3 class="i-archive-title">
<span>{{page-title}}</span>
</h3>
<ul class="archive-categories nav nav-tabs" role="tablist" data-list="categories" data-level="0" data-no-edit="true">
<li class="nav-item {{active_class}}" role="presentation">
<a href="#{{category-id}}" role="tab" data-toggle="tab" title="{{category-title}}" >{{category-title}}</a>
</li>
</ul>
<div class="tab-content" data-list="categories" data-level="0">
<div class="tab-pane {{active_class}}" id="{{category-id}}" role="tabpanel" aria-labelledby="{{category-id}}-tab">
<ul class="archives-ul" data-list="archives" data-level="1">
<li class="archive-li">
<p>
<span data-list="statuses" data-level="2">
<span class="label status {{status-class}}">{{status}}</span>
</span>
<a href="{{archive-file-url}}" target="{{target}}" title="{{archive-title}}">
{{archive-title}}
</a>
<span class="i-archive-files-list" data-list="files" data-level="2">
<a href="{{file-url}}" class="i-archive-files-item" target="{{target}}" title="{{file-name}}" data-toggle="tooltip" data-placement="bottom">
<span class="label label-primary {{file-type}}">{{file-type}}</span>
</a>
</span>
</p>
<div class="archive-description">{{description}}</div>
</li>
</ul>
{{link_to_edit}}
</div>
</div>
</div>
<style>
.i-archive.index-archive-13 .i-archive-files-item{
white-space: inherit;
}
.index-archive-13 .archives-ul .archive-li{
list-style-type: disc;
}
.index-archive-13 .archive-description{
color: #9b9b9b;
}
</style>

View File

@ -0,0 +1,36 @@
<div class="i-archive index-archive-2 index-archive-14">
<h3 class="i-archive-title">
<span>{{page-title}}</span>
</h3>
<div class="panel-group" id="index-archive-group" data-list="categories" data-level="0">
<div class="panel panel-default" data-list="archives" data-level="1">
<div class="panel-heading" style="padding: 0.625em 0.9375em;">
<h4 class="panel-title">
<i class="fa fa-file-text" aria-hidden="true"></i>
<a data-toggle="collapse" data-parent="#index-archive-group" href="#collapse" class="collapsed" style="padding: 0;display: inline-block;">
{{archive-title}}
<i class="fa fa-chevron-down" aria-hidden="true"></i>
</a>
</h4>
</div>
<div id="collapse" class="panel-collapse collapse {{in_class}}">
<div class="panel-body">
<ul class="i-archive-files-list" data-list="files" data-level="2">
<li>
<a href="{{file-url}}" class="i-archive-files-item" target="{{target}}" title="{{file-name}}">{{file-name}}</a>
<span class="label label-primary {{file-type}}">{{file-type}}</span>
</li>
</ul>
</div>
</div>
</div>
{{link_to_edit}}
</div>
<style>
.index-archive-12 dt.i-archive-item-list{
float: none;
width: auto;
}
</style>
</div>

View File

@ -0,0 +1,41 @@
<div class="i-archive index-archive-13 index-archive-15">
<h3 class="i-archive-title">
<span>{{page-title}}</span>
</h3>
<ul class="archive-categories nav nav-tabs" role="tablist" data-list="categories" data-level="0" data-no-edit="true">
<li class="nav-item {{active_class}}" role="presentation">
<a href="#{{category-id}}" role="tab" data-toggle="tab" title="{{category-title}}" >{{category-title}}</a>
</li>
</ul>
<div class="tab-content" data-list="categories" data-level="0">
<div class="tab-pane {{active_class}}" id="{{category-id}}" role="tabpanel" aria-labelledby="{{category-id}}-tab">
<ul class="archives-ul" data-list="archives" data-level="1">
<li class="archive-li">
<p>
<span data-list="statuses" data-level="2">
<span class="label status {{status-class}}">{{status}}</span>
</span>
<a href="{{archive-file-url}}" target="{{target}}" title="{{archive-title}}">
{{archive-title}}
</a>
<span class="i-archive-files-list" data-list="files" data-level="2">
<a href="{{file-url}}" class="i-archive-files-item" target="{{target}}" title="{{file-name}}" data-toggle="tooltip" data-placement="bottom">
{{file-name}}<span class="label label-primary {{file-type}}">{{file-type}}</span>
</a>
</span>
</p>
<div class="archive-description">{{description}}</div>
</li>
</ul>
{{link_to_edit}}
</div>
</div>
</div>
<style>
.index-archive-13 .archives-ul .archive-li{
list-style-type: disc;
}
.index-archive-13 .archive-description{
color: #9b9b9b;
}
</style>

View File

@ -12,19 +12,19 @@
</a>
</h4>
</div>
<div id="collapse" class="panel-collapse collapse">
<div id="collapse" class="panel-collapse collapse {{in_class}}">
<div class="panel-body">
<dl class="dl-horizontal i-archive-item-group" data-list="archives" data-level="1">
<dt class="i-archive-item-list col-sm-5">
<dt class="i-archive-item-list col-sm-3">
<sapn class="i-archive-item-title">{{archive-title}}</span>
<span data-list="statuses" data-level="2">
<span class="label status {{status-class}}">{{status}}</span>
</span>
</dt>
<dl class="i-archive-files-list col-sm-7" data-list="files" data-level="2">
<dl class="i-archive-files-list col-sm-9" data-list="files" data-level="2">
<dd>
<a href="{{file-url}}" class="i-archive-files-item" target="_blank" title="{{file-name}}">{{file-name}}</a>
<span class="label label-primary">{{file-type}}</span>
<a href="{{file-url}}" class="i-archive-files-item" target="{{target}}" title="{{file-name}}">{{file-name}}</a>
<span class="label label-primary {{file-type}}">{{file-type}}</span>
</dd>
</dl>
</dl>
@ -33,4 +33,11 @@
</div>
{{link_to_edit}}
</div>
<style>
@media (min-width: 769px){
.index-archive-2 .dl-horizontal dt.col-sm-3{
width: 25%;
}
}
</style>
</div>

View File

@ -12,8 +12,8 @@
</dt>
<dl class="i-archive__file-list" data-list="files" data-level="2">
<dd class="i-archive__file-wrap">
<a class="i-archive__file-name" href="{{file-url}}" target="_blank" title="{{file-name}}">{{file-name}}</a>
<span class="i-archive__file-type label label-primary">{{file-type}}</span>
<a class="i-archive__file-name" href="{{file-url}}" target="{{target}}" title="{{file-name}}">{{file-name}}</a>
<span class="i-archive__file-type label label-primary {{file-type}}">{{file-type}}</span>
</dd>
</dl>
</div>

View File

@ -3,7 +3,7 @@
<span>{{page-title}}</span>
</h3>
<div class="panel-group" id="index-archive-group" data-list="categories" data-level="0">
<div class="panel panel-default">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#index-archive-group" href="#collapse" class="collapsed" title="{{category-title}}">
@ -11,7 +11,7 @@
</a>
</h4>
</div>
<div id="collapse" class="panel-collapse collapse">
<div id="collapse" class="panel-collapse collapse {{in_class}}">
<div class="panel-body">
<dl class="dl-horizontal i-archive-item-group" data-list="archives" data-level="1">
<dt class="i-archive-item-list col-sm-5">
@ -21,14 +21,14 @@
</dt>
<dl class="i-archive-files-list col-sm-7" data-list="files" data-level="2">
<dd>
<a href="{{file-url}}" class="i-archive-files-item" target="_blank" title="{{file-name}}">{{file-name}}</a>
<span class="label label-primary">{{file-type}}</span>
<a href="{{file-url}}" class="i-archive-files-item" target="{{target}}" title="{{file-name}}">{{file-name}}</a>
<span class="label label-primary {{file-type}}">{{file-type}}</span>
</dd>
</dl>
</dl>
</div>
</div>
</div>
{{link_to_edit}}
{{link_to_edit}}
</div>
</div>

View File

@ -12,14 +12,14 @@
</th>
</thead>
<tbody class="tbody" >
<span data-list="archives" data-level="1">
<span class="archives" data-list="archives" data-level="1">
<span data-list="files" data-level="2">
<tr class="archive-items">
<td class="col-sm-8">
<a class="i-archive__file-name" href="{{file-url}}" target="_blank" title="{{file-name}}">{{file-name}}</a>
{{file-name}}
</td>
<td class="col-sm-4">
<a href="{{file-url}}" class="i-archive-files-item" target="_blank" data-toggle="tooltip" data-placement="bottom" title="{{file-name}}"><span class="label label-primary">{{file-type}}</span></a>
<a href="{{file-url}}" class="i-archive-files-item" target="{{target}}" data-toggle="tooltip" data-placement="bottom" title="{{file-name}}"><span class="label label-primary {{file-type}}">{{file-type}}</span></a>
</td>
</tr>
</span>

View File

@ -87,6 +87,40 @@
"en": "11. Table list - Simple - Unfold Files (widget-title, category, Serial Number, filename, download link)"
},
"thumbnail": "ar9.png"
},
{
"filename": "archive_index12",
"name": {
"zh_tw": "12. 手風琴式列表 - 有下拉 ( 模組標題, 類別標題, 檔案名稱, 下載連結 )",
"en": "12. Accordion list - with drop down (widget-title, category, filename, download link)"
},
"thumbnail": "ar2.png"
},
{
"filename": "archive_index13",
"name": {
"zh_tw": "13. 頁籤式 ( 模組標題, 類別標題, 標題, 下載連結, 描述 )",
"en": "13. Tab list (widget-title, category, title, download link, description)"
},
"thumbnail": "ar-tab1.png"
},
{
"filename": "archive_index14",
"name": {
"zh_tw": "14. 手風琴式列表 - 有下拉 - 針對各筆資料 ( 模組標題, 標題, 檔案名稱, 下載連結 )",
"en": "14. Accordion list - with drop down - For every data (widget-title, title, filename, download link)"
},
"force_cover": "true",
"thumbnail": "ar2.png"
},
{
"filename": "archive_index15",
"name": {
"zh_tw": "15. 頁籤式 ( 模組標題, 類別標題, 標題, 完整檔案名稱, 下載連結, 描述 )",
"en": "15. Tab list (widget-title, category, title, full filename, download link, description)"
},
"force_cover": "true",
"thumbnail": "ar-tab1.png"
}
],
"widgets": [
@ -105,6 +139,24 @@
"en": "2. Accordion list (widget-title, category, link of download page)"
},
"thumbnail": "thumb.png"
},
{
"filename": "archive_widget3",
"name": {
"zh_tw": "3. 列表 ( 模組標題, 類別標題, 檔案名稱, 包含檔案 )",
"en": "3. List (widget-title, category, and files)"
},
"force_cover": "true",
"thumbnail": "thumb.png"
},
{
"filename": "archive_widget4",
"name": {
"zh_tw": "4. 手風琴式列表 - 有下拉 ( 模組標題, 類別標題, 包含檔案 )",
"en": "4. Accordion list - with drop down (widget-title, category, and files)"
},
"force_cover": "true",
"thumbnail": "thumb.png"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View File

@ -1,34 +0,0 @@
<div class="w-event_news widget-event_news-1">
<h3 class="w-event_news__widget-title">
<span>{{widget-title}}</span>
</h3>
<ul class="w-event_news__list" data-level="0" data-list="event_news">
<li class="w-event_news__item">
<div class="w-event_news__img-wrap bullseye">
<img class="w-event_news__img" src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
</div>
<div class="w-event_news__meta">
<span class="w-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="w-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<span class="w-event_news__postdate-wrap" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="w-event_news__postdate">{{postdate}}</span>
</span>
<span class="w-event_news__category-wrap">
<i class="fa fa-tasks"></i>
<span class="w-event_news__category">{{category}}</span>
</span>
</div>
<h4 class="w-event_news__entry-title">
<a class="w-event_news__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<div class="w-event_news__subtitle">{{subtitle}}</div>
<div class="w-event_news__speaker" style="{{speaker-css}}">【{{speaker-head}}】 {{speaker}}</div>
<div class="w-event_news__host" style="{{host-css}}">【{{host-head}}】 {{host}}</div>
</li>
</ul>
<div class="w-event_news__more-wrap clearfix">
<a class="w-event_news__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
</div>

View File

@ -1,22 +0,0 @@
<div class="w-event_news widget-event_news-10">
<h3 class="w-event_news__widget-title">
<span>{{widget-title}}</span>
</h3>
<ul class="w-event_news__list" data-level="0" data-list="event_news">
<li class="w-event_news__item row">
<h4 class="w-event_news__entry-title col-sm-9">
<span class="w-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="w-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="w-event_news__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<span class="w-event_news__postdate-wrap col-sm-3" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="w-event_news__postdate">{{postdate}}</span>
</span>
</li>
</ul>
<div class="w-event_news__more-wrap clearfix">
<a class="w-event_news__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
</div>

View File

@ -1,22 +0,0 @@
<div class="w-event_news widget-event_news-11">
<h3 class="w-event_news__widget-title">
<span>{{widget-title}}</span>
</h3>
<ul class="w-event_news__list" data-level="0" data-list="event_news">
<li class="w-event_news__item row">
<span class="w-event_news__postdate-wrap col-sm-3" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="w-event_news__postdate">{{postdate}}</span>
</span>
<h4 class="w-event_news__entry-title col-sm-9">
<span class="w-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="w-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="w-event_news__title" href="{{link_to_show}}">{{title}}</a>
</h4>
</li>
</ul>
<div class="w-event_news__more-wrap clearfix">
<a class="w-event_news__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
</div>

View File

@ -1,27 +0,0 @@
<div class="w-event_news widget-event_news-12">
<h3 class="w-event_news__widget-title">
<span>{{widget-title}}</span>
</h3>
<table class="w-event_news__table table">
<thead>
<tr>
<th class="w-event_news__th w-event_news__th--title">{{title-head}}</th>
<th class="w-event_news__th w-event_news__th--date">{{date-head}}</th>
</tr>
</thead>
<tbody data-level="0" data-list="event_news">
<tr>
<td class="w-event_news_content">
<span class="w-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="w-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="w-event_news__title" href="{{link_to_show}}">{{title}}</a>
</td>
<td class="w-event_news__postdate" date-format="%Y-%m-%d">{{postdate}}</td>
</tr>
</tbody>
</table>
<div class="w-event_news__more-wrap clearfix">
<a class="w-event_news__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
</div>

View File

@ -1,27 +0,0 @@
<div class="w-event_news widget-event_news-13">
<h3 class="w-event_news__widget-title">
<span>{{widget-title}}</span>
</h3>
<table class="w-event_news__table table">
<thead>
<tr>
<th class="w-event_news__th w-event_news__th--date">{{date-head}}</th>
<th class="w-event_news__th w-event_news__th--title">{{title-head}}</th>
</tr>
</thead>
<tbody data-level="0" data-list="event_news">
<tr>
<td class="w-event_news__postdate" date-format="%Y-%m-%d">{{postdate}}</td>
<td class="w-event_news_content">
<span class="w-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="w-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="w-event_news__title" href="{{link_to_show}}">{{title}}</a>
</td>
</tr>
</tbody>
</table>
<div class="w-event_news__more-wrap clearfix">
<a class="w-event_news__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
</div>

View File

@ -1,29 +0,0 @@
<div class="w-event_news widget-event_news-14">
<h3 class="w-event_news__widget-title">
<span>{{widget-title}}</span>
</h3>
<div class="w-event_news__inner row">
<div class="w-event_news__img-wrap col-xs-4 bullseye">
<img class="w-event_news__img" src="{{main_picture}}" alt="{{main_picture_description}}" title="{{main_picture_description}}">
</div>
<ul class="w-event_news__list col-xs-8" data-level="0" data-list="event_news">
<li class="w-event_news__item">
<div class="w-event_news__content row">
<h4 class="w-event_news__entry-title col-xs-9">
<span class="w-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="w-event_news__status label {{status-class}}">{{status}}</span>
</span>
<a class="w-event_news__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<span class="w-event_news__postdate-wrap col-xs-3" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="w-event_news__postdate">{{postdate}}</span>
</span>
</div>
</li>
</ul>
</div>
<div class="w-event_news__more-wrap clearfix">
<a class="w-event_news__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
</div>

View File

@ -1,131 +0,0 @@
<div class="w-event_news widget-event_news-4 w-event_news widget-event_news-15" style="position:relative;">
<div class="w-event_news__more-wrap clearfix">
<h2 class="w-event_news__widget-title">
<span>{{widget-title}}</span>
</h2>
<a class="w-event_news__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
<div style="position: absolute;top: 50%;bottom: 50%;width:100%;">
<button class="btn-left" title = "<%= (I18n.locale.to_s =="zh_tw") ? "上一張" : "prev" %>" style="float: left;height: 2.5em; width: 2.5em;background: url(/assets/left-01.png) no-repeat;border: 0;background-size: contain;position: absolute;transition:.3s; left: 0.6%;"></button>
<button class="btn-right" title = "<%= (I18n.locale.to_s =="zh_tw") ? "下一張" : "next" %>" style="float: right;;height: 2.5em; width: 2.5em;background: url(/assets/right-01.png) no-repeat;background-size: contain;border: 0;position: absolute;transition:.3s;right: 0.6%;"></button>
</div>
<ul class="w-event_news__list row" data-level="0" data-list="event_news">
<li class="w-event_news__item col-md-4">
<div class="w-event_news__img-wrap bullseye">
<img class="w-event_news__img" src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
</div>
<div class="w-event_news__content-wrap">
<div class="w-event_news__meta">
<span class="w-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="w-event_news__status label {{status-class}}">{{status}}</span>
</span>
<span class="w-event_news__postdate-wrap" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="w-event_news__postdate">{{postdate}}</span>
</span>
<span class="w-event_news__category-wrap">
<i class="fa fa-tasks"></i>
<span class="w-event_news__category">{{category}}</span>
</span>
</div>
<h4 class="w-event_news__entry-title">
<a class="w-event_news__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<p class="w-event_news__subtitle">{{subtitle}}</p>
</div>
</li>
</ul>
</div>
<script src="//code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
function combineul(){
for(var i=1;i<$('.widget-event_news-4 ul.w-event_news__list').length;i++)
$('.widget-event_news-4 ul.w-event_news__list').eq(0).find('>li').eq(-1).after($('.widget-event_news-4 ul.w-event_news__list').eq(i).html());
var ullength = $('.widget-event_news-4 ul.w-event_news__list').length;
for(var i = 1;i < ullength;i++)
$('.widget-event_news-4 ul.w-event_news__list').eq(-1).remove();
};
var lilength = $('.widget-event_news-4 li.w-event_news__item').length;
var num;
function reorganize(num){
combineul();
for(var i=1;i< Math.ceil(lilength/num);i++){
$('.widget-event_news-4 ul.w-event_news__list').eq(-1).after('<ul class="w-event_news__list row" data-level="0" data-list="event_news"></ul>')
var lihtml="";
//var liheight=new Array(num);
if(i != (Math.ceil(lilength/num)-1)){
for(var j=0;j<num;j++){
lihtml += "<li class='w-event_news__item col-md-4'>"+$('.widget-event_news-4 li.w-event_news__item').eq(i*num+j).html()+"</li>"
//liheight[j] = $('.widget-event_news-4 li.w-event_news__item').eq(i*num+j).height()+20;//20=>margin-top+margin-bottom
};
}else{
for(var j=0;j< lilength - num *(Math.ceil(lilength/num)-1) ;j++){
lihtml += "<li class='w-event_news__item col-md-4'>"+$('.widget-event_news-4 li.w-event_news__item').eq(i*num+j).html()+"</li>"
//liheight[j] = $('.widget-event_news-4 li.w-event_news__item').eq(i*num+j).height()+20;//20=>margin-top+margin-bottom
};
};
$('.widget-event_news-4 ul.w-event_news__list').eq(-1).html(lihtml);
};
if(Math.ceil(lilength/num) != 1 )
for(var i=0;i< lilength -num ; i++ )
$('.widget-event_news-4 ul.w-event_news__list').eq(0).find("li.w-event_news__item").eq(num).remove();
for(var i=0;i< Math.ceil(lilength/num);i++)
$('.widget-event_news-4 ul.w-event_news__list').eq(i).attr("index",i);
$('.widget-event_news-4 ul.w-event_news__list').css("display","none");
$('.widget-event_news-4 ul.w-event_news__list').eq(0).css("display","flex");
$('.widget-event_news-4 ul.w-event_news__list').eq(0).addClass("active");
$('.widget-event_news-4 ul.w-event_news__list').css('padding','0 1.125em');
$('.widget-event_news-4 button').css('z-index','10');
$('.widget-event_news-4 ul.w-event_news__list >li').css('width','calc('+100/num+'% - '+20/16+'em)'); //20px=>li的margin
$('.widget-event_news-4 ul.w-event_news__list >li').css('float','left');
};
$(window).resize(function(){
if($(window).width()>1024){
reorganize(3);
num=3;
}else if($(window).width()>576){
reorganize(2);
num=2;
}else{
reorganize(1);
num=1;
}
})
$(document).ready(function(){
if($(window).width()>1024){
reorganize(3);
num=3;
}else if($(window).width()>576){
reorganize(2);
num=2;
}else{
reorganize(1);
num=1;
}
var flag=false;
$('.btn-left').click(function(){
if(!flag){
var currentul = Number($('.widget-event_news-4 ul.w-event_news__list.active').attr("index"));
$('.widget-event_news-4 ul.w-event_news__list').css('display','none');
if(currentul - 1 < 0)
currentul += Math.ceil(lilength/num);
$('.widget-event_news-4 ul.w-event_news__list').removeClass("active");
$('.widget-event_news-4 ul.w-event_news__list').eq(currentul-1).addClass("active");
flag=true;
$('.widget-event_news-4 ul.w-event_news__list.active').eq(0).effect("slide", { direction: "left", mode: 'show', duration: 500},function(){flag=false;});
};
});
$('.btn-right').click(function(){
if(!flag){
var currentul = Number($('.widget-event_news-4 ul.w-event_news__list.active').attr("index"));
$('.widget-event_news-4 ul.w-event_news__list').css("display","none");
if(currentul + 1 > Math.ceil(lilength/num) - 1)
currentul -= Math.ceil(lilength/num);
$('.widget-event_news-4 ul.w-event_news__list').removeClass("active");
$('.widget-event_news-4 ul.w-event_news__list').eq(currentul+1).addClass("active");
flag=true;
$('.widget-event_news-4 ul.w-event_news__list.active').eq(0).effect("slide", { direction: "right", mode: 'show', duration: 500},function(){flag=false;});
};
});
});
</script>

View File

@ -1,32 +0,0 @@
<div class="w-event_news widget-event_news-13">
<table class="w-event_news__table table">
<thead>
<tr>
<th class="w-event_news__th w-event_news__th--date">{{event_date-head}}</th>
<th class="w-event_news__th w-event_news__th--date">{{speaker-head}}</th>
<th class="w-event_news__th w-event_news__th--title">{{title-head}}</th>
<th class="w-event_news__th w-event_news__th--title">{{subtitle-head}}</th>
<th class="w-event_news__th w-event_news__th--title">{{host-head}}</th>
<th class="w-event_news__th w-event_news__th--title">{{notes-head}}</th>
</tr>
</thead>
<tbody data-level="0" data-list="event_news">
<tr>
<td class="w-event_news__postdate" date-format="%Y-%m-%d">{{postdate}}</td>
<td class="w-event_news__speaker">{{speaker}}</td>
<td class="w-event_news_content">
<span class="w-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="w-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="w-event_news__title" href="{{link_to_show}}">{{title}}</a>
</td>
<td class="w-event_news_subtitle">{{subtitle}}</td>
<td class="w-event_news__host">{{host}}</td>
<td class="w-event_news__notes">{{notes}}</td>
</tr>
</tbody>
</table>
<div class="w-event_news__more-wrap clearfix">
<a class="w-event_news__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
</div>

View File

@ -1,35 +0,0 @@
<div class="w-event_news widget-event_news-13">
<h3 class="w-event_news__widget-title">
<span>{{widget-title}}</span>
</h3>
<table class="w-event_news__table table">
<thead>
<tr>
<th class="w-event_news__th w-event_news__th--date">{{event_date-head}}</th>
<th class="w-event_news__th w-event_news__th--title">{{title-head}}</th>
<th class="w-event_news__th w-event_news__th--title">{{subtitle-head}}</th>
<th class="w-event_news__th w-event_news__th--date">{{speaker-head}}</th>
<th class="w-event_news__th w-event_news__th--title">{{host-head}}</th>
<th class="w-event_news__th w-event_news__th--title">{{notes-head}}</th>
</tr>
</thead>
<tbody data-level="0" data-list="event_news">
<tr>
<td class="w-event_news__postdate" date-format="%Y-%m-%d">{{postdate}}</td>
<td class="w-event_news_content">
<span class="w-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="w-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="w-event_news__title" href="{{link_to_show}}">【講題】{{title}}</a>
</td>
<td class="w-event_news__speaker">【講者】{{speaker}}</td>
<td class="w-event_news__host">{{host}}</td>
<td class="w-event_news__subtitle">{{subtitle}}</td>
<td class="w-event_news__notes">【備註】{{notes}}</td>
</tr>
</tbody>
</table>
<div class="w-event_news__more-wrap clearfix">
<a class="w-event_news__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多→" : "More NEWS" %></a>
</div>
</div>

View File

@ -1,34 +0,0 @@
<div class="w-event_news widget-event_news-2">
<h3 class="w-event_news__widget-title">
<span>{{widget-title}}</span>
</h3>
<ul class="w-event_news__list" data-level="0" data-list="event_news">
<li class="w-event_news__item row">
<div class="w-event_news__img-wrap col-sm-4 bullseye">
<img class="w-event_news__img" src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
</div>
<div class="w-event_news__content-wrap col-sm-8">
<div class="w-event_news__meta">
<span class="w-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="w-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<span class="w-event_news__postdate-wrap" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="w-event_news__postdate">{{postdate}}</span>
</span>
<span class="w-event_news__category-wrap">
<i class="fa fa-tasks"></i>
<span class="w-event_news__category">{{category}}</span>
</span>
</div>
<h4 class="w-event_news__entry-title">
<a class="w-event_news__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<p class="w-event_news__subtitle">{{subtitle}}</p>
</div>
</li>
</ul>
<div class="w-event_news__more-wrap clearfix">
<a class="w-event_news__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
</div>

View File

@ -1,34 +0,0 @@
<div class="w-event_news widget-event_news-3">
<h3 class="w-event_news__widget-title">
<span>{{widget-title}}</span>
</h3>
<ul class="w-event_news__list" data-level="0" data-list="event_news">
<li class="w-event_news__item row">
<div class="w-event_news__content-wrap col-sm-8">
<div class="w-event_news__meta">
<span class="w-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="w-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<span class="w-event_news__postdate-wrap" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="w-event_news__postdate">{{postdate}}</span>
</span>
<span class="w-event_news__category-wrap">
<i class="fa fa-tasks"></i>
<span class="w-event_news__category">{{category}}</span>
</span>
</div>
<h4 class="w-event_news__entry-title">
<a class="w-event_news__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<p class="w-event_news__subtitle">{{subtitle}}</p>
</div>
<div class="w-event_news__img-wrap col-sm-4 bullseye">
<img class="w-event_news__img" src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
</div>
</li>
</ul>
<div class="w-event_news__more-wrap clearfix">
<a class="w-event_news__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
</div>

View File

@ -1,87 +0,0 @@
<div class="w-event_news widget-event_news-4">
<div class="w-event_news__more-wrap clearfix">
<h2 class="w-event_news__widget-title">
<span>{{widget-title}}</span>
</h2>
<a class="w-event_news__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
<ul class="w-event_news__list row" data-level="0" data-list="event_news">
<li class="w-event_news__item col-md-4">
<div class="w-event_news__img-wrap bullseye">
<img class="w-event_news__img" src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
</div>
<div class="w-event_news__content-wrap">
<div class="w-event_news__meta">
<span class="w-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="w-event_news__status label {{status-class}}">{{status}}</span>
</span>
<span class="w-event_news__postdate-wrap" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="w-event_news__postdate">{{postdate}}</span>
</span>
<span class="w-event_news__category-wrap">
<i class="fa fa-tasks"></i>
<span class="w-event_news__category">{{category}}</span>
</span>
</div>
<h4 class="w-event_news__entry-title">
<a class="w-event_news__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<p class="w-event_news__subtitle">{{subtitle}}</p>
</div>
</li>
</ul>
</div>
<script>
var lilength = $('.widget-event_news-4 li.w-event_news__item').length;
function combineul(){
for(var i=1;i<$('.widget-event_news-4 ul.w-event_news__list').length;i++)
$('.widget-event_news-4 ul.w-event_news__list').eq(0).find('>li').eq(-1).after($('.widget-event_news-4 ul.w-event_news__list').eq(i).html());
var ullength = $('.widget-event_news-4 ul.w-event_news__list').length;
for(var i = 1;i < ullength;i++)
$('.widget-event_news-4 ul.w-event_news__list').eq(-1).remove();
};
function reorganize(num){
combineul();
for(var i=1;i< Math.ceil(lilength/num);i++){
$('.widget-event_news-4 ul.w-event_news__list').eq(-1).after('<ul class="w-event_news__list row" data-level="0" data-list="event_news"></ul>')
var lihtml="";
if(i != (Math.ceil(lilength/num)-1)){
for(var j=0;j<num;j++)
lihtml += "<li class='w-event_news__item col-md-4'>"+$('.widget-event_news-4 li.w-event_news__item').eq(i*num+j).html()+"</li>"
}else{
for(var j=0;j< lilength - num *(Math.ceil(lilength/num)-1) ;j++)
lihtml += "<li class='w-event_news__item col-md-4'>"+$('.widget-event_news-4 li.w-event_news__item').eq(i*num+j).html()+"</li>"
};
$('.widget-event_news-4 ul.w-event_news__list').eq(-1).html(lihtml);
};
if(Math.ceil(lilength/num) != 1 )
for(var i=0;i< lilength -num ; i++ )
$('.widget-event_news-4 ul.w-event_news__list').eq(0).find("li.w-event_news__item").eq(num).remove();
$('.widget-event_news-4 ul.w-event_news__list >li').css('width','calc('+100/num+'% - '+20/16+'em)'); //20px=>li的margin
};
$(document).ready(function(){
if($(window).width()>1024){
reorganize(3);
num=3;
}else if($(window).width()>576){
reorganize(2);
num=2;
}else{
reorganize(1);
num=1;
}
});
$(window).resize(function(){
if($(window).width()>1024){
reorganize(3);
num=3;
}else if($(window).width()>576){
reorganize(2);
num=2;
}else{
reorganize(1);
num=1;
}
})
</script>

View File

@ -1,31 +0,0 @@
<div class="w-event_news widget-event_news-5">
<h3 class="w-event_news__widget-title">
<span>{{widget-title}}</span>
</h3>
<ul class="w-event_news__list row" data-level="0" data-list="event_news">
<li class="w-event_news__item">
<div class="w-event_news__content-wrap">
<div class="w-event_news__meta">
<span class="w-event_news__postdate-wrap" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="w-event_news__postdate">{{postdate}}</span>
</span>
<span class="w-event_news__category-wrap">
<i class="fa fa-tasks"></i>
<span class="w-event_news__category">{{category}}</span>
</span>
<span class="w-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="w-event_news__status label status {{status-class}}">{{status}}</span>
</span>
</div>
<h4 class="w-event_news__entry-title">
<a class="w-event_news__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<p class="w-event_news__subtitle">{{subtitle}}</p>
</div>
</li>
</ul>
<div class="w-event_news__more-wrap clearfix">
<a class="w-event_news__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
</div>

View File

@ -1,26 +0,0 @@
<div class="w-event_news widget-event_news-6">
<h3 class="w-event_news__widget-title">
<span>{{widget-title}}</span>
</h3>
<ul class="w-event_news__list" data-level="0" data-list="event_news">
<li class="w-event_news__item row">
<span class="w-event_news__category-wrap col-sm-2">
<i class="fa fa-tasks"></i>
<span class="w-event_news__category">{{category}}</span>
</span>
<h4 class="w-event_news__entry-title col-sm-8">
<span class="w-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="w-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="w-event_news__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<span class="w-event_news__postdate-wrap col-sm-2" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="w-event_news__postdate">{{postdate}}</span>
</span>
</li>
</ul>
<div class="w-event_news__more-wrap clearfix">
<a class="w-event_news__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
</div>

View File

@ -1,26 +0,0 @@
<div class="w-event_news widget-event_news-7">
<h3 class="w-event_news__widget-title">
<span>{{widget-title}}</span>
</h3>
<ul class="w-event_news__list" data-level="0" data-list="event_news">
<li class="w-event_news__item row">
<span class="w-event_news__postdate-wrap col-sm-2" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="w-event_news__postdate">{{postdate}}</span>
</span>
<h4 class="w-event_news__entry-title col-sm-8">
<span class="w-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="w-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="w-event_news__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<span class="w-event_news__category-wrap col-sm-2">
<i class="fa fa-tasks"></i>
<span class="w-event_news__category">{{category}}</span>
</span>
</li>
</ul>
<div class="w-event_news__more-wrap clearfix">
<a class="w-event_news__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
</div>

View File

@ -1,29 +0,0 @@
<div class="w-event_news widget-event_news-8">
<h3 class="w-event_news__widget-title">
<span>{{widget-title}}</span>
</h3>
<table class="w-event_news__table table">
<thead>
<tr>
<th class="w-event_news__th w-event_news__th--category">{{category-head}}</th>
<th class="w-event_news__th w-event_news__th--title">{{title-head}}</th>
<th class="w-event_news__th w-event_news__th--date">{{date-head}}</th>
</tr>
</thead>
<tbody data-level="0" data-list="event_news">
<tr>
<td class="w-event_news__category">{{category}}</td>
<td class="w-event_news_content">
<span class="w-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="w-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="w-event_news__title" href="{{link_to_show}}">{{title}}</a>
</td>
<td class="w-event_news__postdate" date-format="%Y-%m-%d">{{postdate}}</td>
</tr>
</tbody>
</table>
<div class="w-event_news__more-wrap clearfix">
<a class="w-event_news__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
</div>

View File

@ -1,29 +0,0 @@
<div class="w-event_news widget-event_news-9">
<h3 class="w-event_news__widget-title">
<span>{{widget-title}}</span>
</h3>
<table class="w-event_news__table table">
<thead>
<tr>
<th class="w-event_news__th w-event_news__th--date">{{date-head}}</th>
<th class="w-event_news__th w-event_news__th--title">{{title-head}}</th>
<th class="w-event_news__th w-event_news__th--category">{{category-head}}</th>
</tr>
</thead>
<tbody data-level="0" data-list="event_news">
<tr>
<td class="w-event_news__postdate" date-format="%Y-%m-%d">{{postdate}}</td>
<td class="w-event_news_content">
<span class="w-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="w-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="w-event_news__title" href="{{link_to_show}}">{{title}}</a>
</td>
<td class="w-event_news__category">{{category}}</td>
</tr>
</tbody>
</table>
<div class="w-event_news__more-wrap clearfix">
<a class="w-event_news__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
</div>

View File

@ -1,25 +0,0 @@
<div class="i-event_news index-event_news-1 {{display}}">
<h1 class="i-event_news__page-title">{{page-title}}</h1>
<table class="i-event_news__table table table-striped">
<thead>
<tr>
<th class="i-event_news__th i-event_news__th--category">{{category-head}}</th>
<th class="i-event_news__th i-event_news__th--title">{{title-head}}</th>
<th class="i-event_news__th i-event_news__th--date">{{date-head}}</th>
</tr>
</thead>
<tbody data-level="0" data-list="event_news">
<tr>
<td class="i-event_news__category">{{category}}</td>
<td class="i-event_news__content">
<span class="i-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="i-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="i-event_news__title" href="{{link_to_show}}">{{title}}</a>
</td>
<td class="i-event_news__postdate"><span class="i-event_news__postdate-content" date-format="%Y-%m-%d">{{postdate}}</span></td>
</tr>
</tbody>
</table>
</div>
{{pagination_goes_here}}

View File

@ -1,22 +0,0 @@
<div class="i-event_news index-event_news-10">
<h1 class="i-event_news__page-title">{{page-title}}</h1>
<ul class="i-event_news__list" data-level="0" data-list="event_news">
<li class="i-event_news__item row">
<span class="i-event_news__postdate-wrap col-sm-2" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="i-event_news__postdate">{{postdate}}</span>
</span>
<h4 class="i-event_news__entry-title col-sm-8">
<span class="i-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="i-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="i-event_news__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<span class="i-event_news__category-wrap col-sm-2">
<i class="fa fa-tasks"></i>
<span class="i-event_news__category">{{category}}</span>
</span>
</li>
</ul>>
</div>
{{pagination_goes_here}}

View File

@ -1,18 +0,0 @@
<div class="i-event_news index-event_news-11">
<h1 class="i-event_news__page-title">{{page-title}}</h1>
<ul class="i-event_news__list" data-level="0" data-list="event_news">
<li class="i-event_news__item row">
<h4 class="i-event_news__entry-title col-sm-9">
<span class="i-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="i-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="i-event_news__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<span class="i-event_news__postdate-wrap col-sm-3" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="i-event_news__postdate">{{postdate}}</span>
</span>
</li>
</ul>
</div>
{{pagination_goes_here}}

View File

@ -1,18 +0,0 @@
<div class="i-event_news index-event_news-12">
<h1 class="i-event_news__page-title">{{page-title}}</h1>
<ul class="i-event_news__list" data-level="0" data-list="event_news">
<li class="i-event_news__item row">
<span class="i-event_news__postdate-wrap col-sm-3" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="i-event_news__postdate">{{postdate}}</span>
</span>
<h4 class="i-event_news__entry-title col-sm-9">
<span class="i-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="i-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="i-event_news__title" href="{{link_to_show}}">{{title}}</a>
</h4>
</li>
</ul>
</div>
{{pagination_goes_here}}

View File

@ -1,23 +0,0 @@
<div class="i-event_news index-event_news-13 {{display}}">
<h1 class="i-event_news__page-title">{{page-title}}</h1>
<table class="i-event_news__table table table-striped">
<thead>
<tr>
<th class="i-event_news__th i-event_news__th--title">{{title-head}}</th>
<th class="i-event_news__th i-event_news__th--date">{{date-head}}</th>
</tr>
</thead>
<tbody data-level="0" data-list="event_news">
<tr>
<td class="i-event_news__content">
<span class="i-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="i-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="i-event_news__title" href="{{link_to_show}}">{{title}}</a>
</td>
<td class="i-event_news__postdate" date-format="%Y-%m-%d">{{postdate}}</td>
</tr>
</tbody>
</table>
</div>
{{pagination_goes_here}}

View File

@ -1,23 +0,0 @@
<div class="i-event_news index-event_news-14 {{display}}">
<h1 class="i-event_news__page-title">{{page-title}}</h1>
<table class="i-event_news__table table table-striped">
<thead>
<tr>
<th class="i-event_news__th i-event_news__th--date">{{date-head}}</th>
<th class="i-event_news__th i-event_news__th--title">{{title-head}}</th>
</tr>
</thead>
<tbody data-level="0" data-list="event_news">
<tr>
<td class="i-event_news__postdate" date-format="%Y-%m-%d">{{postdate}}</td>
<td class="i-event_news__content">
<span class="i-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="i-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="i-event_news__title" href="{{link_to_show}}">{{title}}</a>
</td>
</tr>
</tbody>
</table>
</div>
{{pagination_goes_here}}

View File

@ -1,25 +0,0 @@
<div class="i-event_news index-event_news-15 {{display}}">
<h1 class="i-event_news__page-title">{{page-title}}</h1>
<table class="i-event_news__table table table-striped">
<thead>
<tr>
<th class="i-event_news__th i-event_news__th--date">{{date-head}}</th>
<th class="i-event_news__th i-event_news__th--title">{{title-head}}</th>
<th class="i-event_news__th i-event_news__th--category">{{view-count-head}}</th>
</tr>
</thead>
<tbody data-level="0" data-list="event_news">
<tr>
<td class="i-event_news__postdate" date-format="%Y-%m-%d">{{postdate}}</td>
<td class="i-event_news__content">
<span class="i-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="i-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="i-event_news__title" href="{{link_to_show}}">{{title}}</a>
</td>
<td class="i-event_news__view-count">{{view_count}}</td>
</tr>
</tbody>
</table>
</div>
{{pagination_goes_here}}

View File

@ -1,39 +0,0 @@
<div class="i-event_news index-event_news-16 {{display}}">
<h1 class="i-event_news__page-title">{{page-title}}</h1>
<table class="i-event_news__table table table-striped">
<thead>
<tr>
<th class="i-event_news__th i-event_news__th--date">{{date-head}}</th>
<th class="i-event_news__th i-event_news__th--title">{{title-head}}</th>
<th class="i-event_news__th i-event_news__th--title">{{link-head}}</th>
<th class="i-event_news__th i-event_news__th--title">{{file-head}}</th>
</tr>
</thead>
<tbody data-level="0" data-list="event_news">
<tr>
<td class="i-event_news__postdate" date-format="%Y-%m-%d">{{postdate}}</td>
<td class="i-event_news__content">
<span class="i-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="i-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="i-event_news__title" href="{{link_to_show}}">{{title}}</a>
</td>
<td class="i-event_news__links">
<ul data-list="event_news_links" data-level="1">
<li>
<a class="i-event_news__title" href="{{link_url}}">{{link_title}}</a>
</li>
</ul>
</td>
<td class="i-event_news__files">
<ul data-list="event_news_files" data-level="1">
<li>
<a class="i-event_news__title" href="{{file_url}}">{{file_title}}</a>
</li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
{{pagination_goes_here}}

View File

@ -1,27 +0,0 @@
<div class="i-event_news index-event_news-1 {{display}}">
<h1 class="i-event_news__page-title">{{page-title}}</h1>
<table class="i-event_news__table table table-striped">
<thead>
<tr>
<th class="i-event_news__th i-event_news__th--category">{{category-head}}</th>
<th class="i-event_news__th i-event_news__th--title">{{title-head}}</th>
<th class="i-event_news__th i-event_news__th--date">{{date-head}}</th>
<th class="i-event_news__th i-event_news__th--department">{{department-head}}</th>
</tr>
</thead>
<tbody data-level="0" data-list="event_news">
<tr>
<td class="i-event_news__category">{{category}}</td>
<td class="i-event_news__content">
<span class="i-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="i-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="i-event_news__title" href="{{link_to_show}}">{{title}}</a>
</td>
<td class="i-event_news__postdate"><span class="i-event_news__postdate-content" date-format="%Y-%m-%d">{{postdate}}</span></td>
<td class="i-event_news__department"><span class="i-event_news__department-content">{{department}}</span></td>
</tr>
</tbody>
</table>
</div>
{{pagination_goes_here}}

View File

@ -1,29 +0,0 @@
<div class="i-event_news index-event_news-1 {{display}}">
<h1 class="i-event_news__page-title">{{page-title}}</h1>
<table class="i-event_news__table table table-striped">
<thead>
<tr>
<th class="i-event_news__th i-event_news__th--event_date">{{event_date-head}}</th>
<th class="i-event_news__th i-event_news__th--speaker">{{speaker-head}}</th>
<th class="i-event_news__th i-event_news__th--title">{{title-head}}</th>
<th class="i-event_news__th i-event_news__th--host">{{host-head}}</th>
<th class="i-event_news__th i-event_news__th--notes">{{notes-head}}</th>
</tr>
</thead>
<tbody data-level="0" data-list="event_news">
<tr>
<td class="i-event_news__postdate"><span class="i-event_news__postdate-content" date-format="%Y-%m-%d">{{postdate}}</span></td>
<td class="i-event_news__speaker">{{speaker}}</td>
<td class="i-event_news__content">
<span class="i-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="i-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="i-event_news__title" href="{{link_to_show}}">{{title}}</a>
</td>
<td class="i-event_news__host">{{host}}</td>
<td class="i-event_news__notes">{{notes}}</td>
</tr>
</tbody>
</table>
</div>
{{pagination_goes_here}}

View File

@ -1,27 +0,0 @@
<div class="i-event_news index-event_news-2 {{display}}">
<h1 class="i-event_news__page-title">{{page-title}}</h1>
<table class="i-event_news__table table table-striped">
<thead>
<tr>
<th class="i-event_news__th i-event_news__th--category">{{category-head}}</th>
<th class="i-event_news__th i-event_news__th--title">{{title-head}}</th>
<th class="i-event_news__th i-event_news__th--date">{{date-head}}</th>
<th class="i-event_news__th i-event_news__th--category">{{view-count-head}}</th>
</tr>
</thead>
<tbody data-level="0" data-list="event_news">
<tr>
<td class="i-event_news__category">{{category}}</td>
<td class="i-event_news__content">
<span class="i-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="i-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="i-event_news__title" href="{{link_to_show}}">{{title}}</a>
</td>
<td class="i-event_news__postdate"><span class="i-event_news__postdate-content" date-format="%Y-%m-%d">{{postdate}}</span></td>
<td class="i-event_news__view-count">{{view_count}}</td>
</tr>
</tbody>
</table>
</div>
{{pagination_goes_here}}

View File

@ -1,25 +0,0 @@
<div class="i-event_news index-event_news-3 {{display}}">
<h1 class="i-event_news__page-title">{{page-title}}</h1>
<table class="i-event_news__table table table-striped">
<thead>
<tr>
<th class="i-event_news__th i-event_news__th--date">{{date-head}}</th>
<th class="i-event_news__th i-event_news__th--title">{{title-head}}</th>
<th class="i-event_news__th i-event_news__th--category">{{category-head}}</th>
</tr>
</thead>
<tbody data-level="0" data-list="event_news">
<tr>
<td class="i-event_news__postdate"><span class="i-event_news__postdate-content" date-format="%Y-%m-%d">{{postdate}}</span></td>
<td class="i-event_news__content">
<span class="i-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="i-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="i-event_news__title" href="{{link_to_show}}">{{title}}</a>
</td>
<td class="i-event_news__category">{{category}}</td>
</tr>
</tbody>
</table>
</div>
{{pagination_goes_here}}

View File

@ -1,27 +0,0 @@
<div class="i-event_news index-event_news-4 {{display}}">
<h1 class="i-event_news__page-title">{{page-title}}</h1>
<table class="i-event_news__table table table-striped">
<thead>
<tr>
<th class="i-event_news__th i-event_news__th--date">{{date-head}}</th>
<th class="i-event_news__th i-event_news__th--title">{{title-head}}</th>
<th class="i-event_news__th i-event_news__th--category">{{category-head}}</th>
<th class="i-event_news__th i-event_news__th--category">{{view-count-head}}</th>
</tr>
</thead>
<tbody data-level="0" data-list="event_news">
<tr>
<td class="i-event_news__postdate"><span class="i-event_news__postdate-content" date-format="%Y-%m-%d">{{postdate}}</span></td>
<td class="i-event_news__content">
<span class="i-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="i-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="i-event_news__title" href="{{link_to_show}}">{{title}}</a>
</td>
<td class="i-event_news__category">{{category}}</td>
<td class="i-event_news__view-count">{{view_count}}</td>
</tr>
</tbody>
</table>
</div>
{{pagination_goes_here}}

View File

@ -1,30 +0,0 @@
<div class="i-event_news index-event_news-5">
<h1 class="i-event_news__page-title">{{page-title}}</h1>
<ul class="i-event_news__list" data-level="0" data-list="event_news">
<li class="i-event_news__item row">
<div class="i-event_news__img-wrap col-sm-4">
<img class="i-event_news__img" src="{{img_src}}" alt="{{img_description}}">
</div>
<div class="i-event_news__content-wrap col-sm-8">
<div class="i-event_news__meta">
<span class="i-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="i-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<span class="i-event_news__postdate-wrap" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="i-event_news__postdate">{{postdate}}</span>
</span>
<span class="i-event_news__category-wrap">
<i class="fa fa-tasks"></i>
<span class="i-event_news__category">{{category}}</span>
</span>
</div>
<h4 class="i-event_news__entry-title">
<a class="i-event_news__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<p class="i-event_news__subtitle">{{subtitle}}</p>
</div>
</li>
</ul>
</div>
{{pagination_goes_here}}

View File

@ -1,30 +0,0 @@
<div class="i-event_news index-event_news-6">
<h1 class="i-event_news__page-title">{{page-title}}</h1>
<ul class="i-event_news__list" data-level="0" data-list="event_news">
<li class="i-event_news__item row">
<div class="i-event_news__content-wrap col-sm-8">
<div class="i-event_news__meta">
<span class="i-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="i-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<span class="i-event_news__postdate-wrap" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="i-event_news__postdate">{{postdate}}</span>
</span>
<span class="i-event_news__category-wrap">
<i class="fa fa-tasks"></i>
<span class="i-event_news__category">{{category}}</span>
</span>
</div>
<h4 class="i-event_news__entry-title">
<a class="i-event_news__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<p class="i-event_news__subtitle">{{subtitle}}</p>
</div>
<div class="i-event_news__img-wrap col-sm-4">
<img class="i-event_news__img" src="{{img_src}}" alt="{{img_description}}">
</div>
</li>
</ul>
</div>
{{pagination_goes_here}}

View File

@ -1,83 +0,0 @@
<div class="i-event_news index-event_news-7">
<h3 class="i-event_news__page-title">{{page-title}}</h3>
<ul class="i-event_news__list row" data-level="0" data-list="event_news">
<li class="i-event_news__item col-md-4">
<div class="i-event_news__img-wrap bullseye">
<img class="i-event_news__img" src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
</div>
<div class="i-event_news__content-wrap">
<div class="i-event_news__meta">
<span class="i-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="i-event_news__status label {{status-class}}">{{status}}</span>
</span>
<span class="i-event_news__postdate-wrap" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="i-event_news__postdate">{{postdate}}</span>
</span>
<span class="i-event_news__category-wrap">
<i class="fa fa-tasks"></i>
<span class="i-event_news__category">{{category}}</span>
</span>
</div>
<h4 class="i-event_news__entry-title">
<a class="i-event_news__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<p class="i-event_news__subtitle">{{subtitle}}</p>
</div>
</li>
</ul>
</div>
{{pagination_goes_here}}
<script>
var lilength = $('.i-event_news.index-event_news-7 li.i-event_news__item').length;
function combineul(){
for(var i=1;i<$('.i-event_news.index-event_news-7 ul.i-event_news__list').length;i++)
$('.i-event_news.index-event_news-7 ul.i-event_news__list').eq(0).find('>li').eq(-1).after($('.i-event_news.index-event_news-7 ul.i-event_news__list').eq(i).html());
var ullength = $('.i-event_news.index-event_news-7 ul.i-event_news__list').length;
for(var i = 1;i < ullength;i++)
$('.i-event_news.index-event_news-7 ul.i-event_news__list').eq(-1).remove();
};
function reorganize(num){
combineul();
for(var i=1;i< Math.ceil(lilength/num);i++){
$('.i-event_news.index-event_news-7 ul.i-event_news__list').eq(-1).after('<ul class="i-event_news__list row" data-level="0" data-list="event_news"></ul>')
var lihtml="";
if(i != (Math.ceil(lilength/num)-1)){
for(var j=0;j<num;j++)
lihtml += "<li class='i-event_news__item col-md-4'>"+$('.i-event_news.index-event_news-7 li.i-event_news__item').eq(i*num+j).html()+"</li>"
}else{
for(var j=0;j< lilength - num *(Math.ceil(lilength/num)-1) ;j++)
lihtml += "<li class='i-event_news__item col-md-4'>"+$('.i-event_news.index-event_news-7 li.i-event_news__item').eq(i*num+j).html()+"</li>"
};
$('.i-event_news.index-event_news-7 ul.i-event_news__list').eq(-1).html(lihtml);
};
if(Math.ceil(lilength/num) != 1 )
for(var i=0;i< lilength -num ; i++ )
$('.i-event_news.index-event_news-7 ul.i-event_news__list').eq(0).find("li.i-event_news__item").eq(num).remove();
$('.i-event_news.index-event_news-7 ul.i-event_news__list >li').css('width','calc('+100/num+'% - '+20/16+'em)'); //20px=>li的margin
};
$(document).ready(function(){
if($(window).width()>1024){
reorganize(3);
num=3;
}else if($(window).width()>576){
reorganize(2);
num=2;
}else{
reorganize(1);
num=1;
}
});
$(window).resize(function(){
if($(window).width()>1024){
reorganize(3);
num=3;
}else if($(window).width()>576){
reorganize(2);
num=2;
}else{
reorganize(1);
num=1;
}
})
</script>

View File

@ -1,26 +0,0 @@
<div class="i-event_news index-event_news-8">
<h1 class="i-event_news__page-title">{{page-title}}</h1>
<ul class="i-event_news__list row" data-level="0" data-list="event_news">
<li class="i-event_news__item">
<div class="i-event_news__content-wrap">
<div class="i-event_news__meta">
<span class="i-event_news__postdate-wrap" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="i-event_news__postdate">{{postdate}}</span>
</span>
<span class="i-event_news__category-wrap">
<i class="fa fa-tasks"></i>
<span class="i-event_news__category">{{category}}</span>
</span>
<span class="i-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="i-event_news__status label status {{status-class}}">{{status}}</span>
</span>
</div>
<h4 class="i-event_news__entry-title">
<a class="i-event_news__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<p class="i-event_news__subtitle">{{subtitle}}</p>
</div>
</li>
</div>
{{pagination_goes_here}}

View File

@ -1,22 +0,0 @@
<div class="i-event_news index-event_news-9">
<h1 class="i-event_news__page-title">{{page-title}}</h1>
<ul class="i-event_news__list" data-level="0" data-list="event_news">
<li class="i-event_news__item row">
<span class="i-event_news__category-wrap col-sm-2">
<i class="fa fa-tasks"></i>
<span class="i-event_news__category">{{category}}</span>
</span>
<h4 class="i-event_news__entry-title col-sm-8">
<span class="i-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="i-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="i-event_news__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<span class="i-event_news__postdate-wrap col-sm-2" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="i-event_news__postdate">{{postdate}}</span>
</span>
</li>
</ul>
</div>
{{pagination_goes_here}}

View File

@ -1,311 +0,0 @@
{
"frontend": [
{
"filename" : "event_news_index1",
"name" : {
"zh_tw" : "1. 標準標題列表-1A ( 模組標題, 類別, 狀態, 標題, 日期 )",
"en" : "1. Standard Title List-1 (widget-title, category, status, title, postdate)"
},
"thumbnail" : "event_news_index1_thumbs.png"
},
{
"filename" : "event_news_index2",
"name" : {
"zh_tw" : "2. 標準標題列表-1B ( 模組標題, 類別, 狀態, 標題, 日期, 瀏覽人次 )",
"en" : "2. Standard Title List-1B (widget-title, category, status, title, postdate, view-count)"
},
"thumbnail" : "event_news_index2_thumbs.png"
},
{
"filename" : "event_news_index3",
"name" : {
"zh_tw" : "3. 標準表格列表-2A ( 模組標題, 日期, 狀態, 標題, 類別 )",
"en" : "3. Standard Table List-2 (widget-title, postdate, status, title, category)"
},
"thumbnail" : "event_news_index3_thumbs.png"
},
{
"filename" : "event_news_index4",
"name" : {
"zh_tw" : "4. 標準表格列表-2B ( 模組標題, 日期, 狀態, 標題, 類別, 瀏覽人次 )",
"en" : "4. Standard Table List-2 (widget-title, postdate, status, title, category, view-count)"
},
"thumbnail" : "event_news_index4_thumbs.png"
},
{
"filename" : "event_news_index5",
"name" : {
"zh_tw" : "5. 左圖右文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en" : "5. Balanced Image + Text(Left) (widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail" : "event_news_index5_thumbs.png"
},
{
"filename" : "event_news_index6",
"name" : {
"zh_tw" : "6. 右圖左文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en" : "6. Balanced Image + Text(Right) (widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail" : "event_news_index6_thumbs.png"
},
{
"filename" : "event_news_index7",
"name" : {
"zh_tw" : "7. 三欄圖文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en" : "7. 3-Column Standard Image + Text (widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail" : "event_news_index7_thumbs.png"
},
{
"filename" : "event_news_index8",
"name" : {
"zh_tw" : "8. 標準文字列表 ( 模組標題, 日期, 類別, 狀態, 標題, 副標題 )",
"en" : "8. Standard Text List (widget-title, postdate, category, status, title, subtitle)"
},
"thumbnail" : "event_news_index8_thumbs.png"
},
{
"filename" : "event_news_index9",
"name" : {
"zh_tw" : "9. 標準標題列表-1 ( 模組標題, 類別, 狀態, 標題, 日期 )",
"en" : "9. Standard Title List-1 (widget-title, category, status, title, postdate)"
},
"thumbnail" : "event_news_index9_thumbs.png"
},
{
"filename" : "event_news_index10",
"name" : {
"zh_tw" : "10. 標準標題列表-2 ( 模組標題, 日期, 狀態, 標題, 類別 )",
"en" : "10. Standard Title List-2 (widget-title, postdate, status, title, category)"
},
"thumbnail" : "event_news_index10_thumbs.png"
},
{
"filename" : "event_news_index11",
"name" : {
"zh_tw" : "11. 精簡標題列表-1 ( 模組標題, 狀態, 標題, 日期 )",
"en" : "11. Simple Title List-1 (widget-title, status, title, postdate)"
},
"thumbnail" : "event_news_index11_thumbs.png"
},
{
"filename" : "event_news_index12",
"name" : {
"zh_tw" : "12. 精簡標題列表-2 ( 模組標題, 日期, 狀態, 標題 )",
"en" : "12. Simple Title List-2 (widget-title, postdate, status, title)"
},
"thumbnail" : "event_news_index12_thumbs.png"
},
{
"filename" : "event_news_index13",
"name" : {
"zh_tw" : "13. 精簡表格列表-1 ( 模組標題, 狀態, 標題, 日期 )",
"en" : "13. Simple Table List (widget-title, status, title, postdate)"
},
"thumbnail" : "event_news_index13_thumbs.png"
},
{
"filename" : "event_news_index14",
"name" : {
"zh_tw" : "14. 精簡表格列表-2 ( 模組標題, 日期, 狀態, 標題 )",
"en" : "14. Simple Table List (widget-title, postdate, status, title)"
},
"thumbnail" : "event_news_index14_thumbs.png"
},
{
"filename" : "event_news_index15",
"name" : {
"zh_tw" : "15. 精簡表格列表-3 ( 模組標題, 日期, 狀態, 標題, 瀏覽人次 )",
"en" : "15. Simple Table List (widget-title, postdate, status, title, view-count)"
},
"thumbnail" : "event_news_index15_thumbs.png"
},
{
"filename" : "event_news_index16",
"name" : {
"zh_tw" : "16. 連結 + 附件表格列表 ( 模組標題, 類別, 狀態, 標題 )",
"en" : "16. Table List including Links and attachments (widget-title, category, status, title, view-count)"
},
"thumbnail" : "event_news_index16_thumbs.png"
},
{
"filename" : "event_news_index17",
"name" : {
"zh_tw" : "17. 標準標題列表-1A ( 類別, 標題, 日期, 張貼人 )",
"en" : "17. Standard Title List-1 ( category, title, postdate, department)"
},
"thumbnail" : "event_news_index1_thumbs.png"
},
{
"filename" : "event_news_index18",
"name" : {
"zh_tw" : "18. 標準標題列表-2 ( 日期, 演講者, 狀態, 標題, 主持人, 備註 )",
"en" : "18. Standard Title List-2 ( EventDate, speaker, status, title, host, notes)"
},
"thumbnail" : "event_news_index1_thumbs.png"
}
],
"widgets" : [
{
"filename" : "event_news_widget0",
"name" : {
"zh_tw" : "0. 標準四欄圖文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en" : "0. Standard Image + Text (widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail" : "event_news_widget1_thumbs.png"
},
{
"filename" : "event_news_widget0.5",
"name" : {
"zh_tw" : "0.5. 首頁行事曆樣式",
"en" : "0.5. Home calendar"
},
"thumbnail" : "event_news_widget1_thumbs.png"
},
{
"filename" : "event_news_widget0.5_new",
"name" : {
"zh_tw" : "0.5. 首頁行事曆樣式(新版)",
"en" : "0.5. Home calendar(New)"
},
"thumbnail" : "event_news_widget1_thumbs.png"
},
{
"filename" : "event_news_widget1",
"name" : {
"zh_tw" : "1. 標準圖文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en" : "1. Standard Image + Text (widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail" : "event_news_widget1_thumbs.png"
},
{
"filename" : "event_news_widget2",
"name" : {
"zh_tw" : "2. 左圖右文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en" : "2. Balanced Image + Text(Left) (widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail" : "event_news_widget2_thumbs.png"
},
{
"filename" : "event_news_widget3",
"name" : {
"zh_tw" : "3. 右圖左文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en" : "3. Balanced Image + Text(Right) (widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail" : "event_news_widget3_thumbs.png"
},
{
"filename" : "event_news_widget4",
"name" : {
"zh_tw" : "4. 三欄圖文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en" : "4. 3-Column Standard Image + Text (widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail" : "event_news_widget4_thumbs.png"
},
{
"filename" : "event_news_widget15",
"name" : {
"zh_tw" : "4.5. 三欄圖文-slide ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en" : "4.5. 3-Column Standard Image + Text -slide(widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail" : "event_news_widget4_thumbs.png"
},
{
"filename" : "event_news_widget5",
"name" : {
"zh_tw" : "5. 標準文字列表 ( 模組標題, 日期, 類別, 狀態, 標題, 副標題 )",
"en" : "5. Standard Text List (widget-title, postdate, category, status, title, subtitle)"
},
"thumbnail" : "event_news_widget5_thumbs.png"
},
{
"filename" : "event_news_widget6",
"name" : {
"zh_tw" : "6. 標準標題列表-1 ( 模組標題, 類別, 狀態, 標題, 日期 )",
"en" : "6. Standard Title List-1 (widget-title, category, status, title, postdate)"
},
"thumbnail" : "event_news_widget6_thumbs.png"
},
{
"filename" : "event_news_widget7",
"name" : {
"zh_tw" : "7. 標準標題列表-2 ( 模組標題, 日期, 狀態, 標題, 類別 )",
"en" : "7. Standard Title List-2 (widget-title, postdate, status, title, category)"
},
"thumbnail" : "event_news_widget7_thumbs.png"
},
{
"filename" : "event_news_widget8",
"name" : {
"zh_tw" : "8. 標準表格列表-1 ( 模組標題, 類別, 狀態, 標題, 日期 )",
"en" : "8. Standard Table List-1 (widget-title, category, status, title, postdate)"
},
"thumbnail" : "event_news_widget8_thumbs.png"
},
{
"filename" : "event_news_widget9",
"name" : {
"zh_tw" : "9. 標準表格列表-2 ( 模組標題, 日期, 狀態, 標題, 類別 )",
"en" : "9. Standard Table List-2 (widget-title, postdate, status, title, category)"
},
"thumbnail" : "event_news_widget9_thumbs.png"
},
{
"filename" : "event_news_widget10",
"name" : {
"zh_tw" : "10. 精簡標題列表-1 ( 模組標題, 狀態, 標題, 日期 )",
"en" : "10. Simple Title List-1 (widget-title, status, title, postdate)"
},
"thumbnail" : "event_news_widget10_thumbs.png"
},
{
"filename" : "event_news_widget11",
"name" : {
"zh_tw" : "11. 精簡標題列表-2 ( 模組標題, 日期, 狀態, 標題 )",
"en" : "11. Simple Title List-2 (widget-title, postdate, status, title)"
},
"thumbnail" : "event_news_widget11_thumbs.png"
},
{
"filename" : "event_news_widget12",
"name" : {
"zh_tw" : "12. 精簡表格列表-1 ( 模組標題, 狀態, 標題, 日期 )",
"en" : "12. Simple Table List (widget-title, status, title, postdate)"
},
"thumbnail" : "event_news_widget12_thumbs.png"
},
{
"filename" : "event_news_widget13",
"name" : {
"zh_tw" : "13. 精簡表格列表-2 ( 模組標題, 日期, 狀態, 標題 )",
"en" : "13. Simple Table List (widget-title, postdate, status, title)"
},
"thumbnail" : "event_news_widget13_thumbs.png"
},
{
"filename" : "event_news_widget14",
"name" : {
"zh_tw" : "14. 一圖 + 標題列表 ( 模組標題, 圖片, 狀態, 標題, 日期 )",
"en" : "14. 1 Image + Title List (widget-title, image, status, title, postdate)"
},
"thumbnail" : "event_news_widget14_thumbs.png"
},
{
"filename" : "event_news_widget16",
"name" : {
"zh_tw" : "15. 標準表格列表-3 ( 日期, 演講者, 狀態, 標題, 主持人, 備註 )",
"en" : "15. Standard Table List (EventDate, speaker, status, title, host, notes)"
},
"thumbnail" : "event_news_widget13_thumbs.png"
},
{
"filename" : "event_news_widget17",
"name" : {
"zh_tw" : "16. 標準表格列表-3 ( 日期, 狀態, 標題, 演講者, 主持人, 備註 )",
"en" : "16. Standard Table List (EventDate, status, title, speaker, host, notes)"
},
"thumbnail" : "event_news_widget13_thumbs.png"
}
]
}

View File

@ -1,374 +0,0 @@
<style type="text/css">
.full-size-img img {
width: 100%;
}
.full-size-img {
width: 100%;
}
.s-annc__sub-img.pull-right {
margin-left: 2em;
}
.s-annc__sub-img.pull-left {
margin-right: 2em;
}
strong.carousel__description {
color: white;
}
.carousel_images{
{{carousel_display_style}}
}
@media (max-width: 767px){
.carousel_images{
width: 100%;
}
}
</style>
<style type="text/css">
.carousel_img_item{
display: none;
float: left;
}
.controlplay {
position: absolute;
right: 1em;
top: 3%;
z-index: 200;
}
.controlplay a {
display: inline-block;
margin-right: 0.25em;
cursor: pointer;
padding: 5px 10px;
border: 1px solid rgba(255,255,255,0.5);
background: rgba(0,0,0,0.2);
}
.controlplay a i {
font-family: FontAwesome;
position: relative;
font-size: 1rem;
line-height: 1;
color: #FFF;
vertical-align: middle;
font-style: unset;
}
.controlplay .resume-slide i::before {
content: "\f04b";
}
.controlplay .pause-slide i::before {
content: "\f04c";
}
ul.button-mid .prev-button {
transition: 0.4s;
position: relative;
float: left;
left: 0.5rem;
width: 2.5rem;
height: 2.5rem;
font-size: 2.2rem;
color: #ffffff;
background: rgba(0,0,0,0.2);
text-align: center;
line-height: 2.5rem;
top: 50%;
position: absolute;
transform: translateY(-50%);
z-index: 999;
}
ul.button-mid .next-button {
float: right;
transition: 0.4s;
position: relative;
right: 0.5rem;
width: 2.5rem;
height: 2.5rem;
font-size: 2.2rem;
color: #fff;
background: rgba(0,0,0,0.2);
text-align: center;
line-height: 2.5rem;
top: 50%;
position: absolute;
transform: translateY(-50%);
z-index: 999;
}
.carousel_images_slide{
padding: 3em;
}
.carousel_img_item img{
cursor: pointer;
}
@media (max-width: 479px){
.carousel_img_item:nth-child(-n+1){
display: block;
width: 100%;
float: left;
}
.carousel_img_item{
width: 100%;
}
}
@media (min-width: 480px){
.carousel_img_item:nth-child(-n+2){
display: block;
width: 50%;
float: left;
}
.carousel_img_item{
width: 50%;
}
}
@media (min-width: 768px){
.carousel_img_item:nth-child(-n+3){
display: block;
width: 33%;
float: left;
}
.carousel_img_item{
width: 33%;
}
}
@media (min-width: 1280px){
.carousel_img_item:nth-child(-n+4){
display: block;
width: 25%;
float: left;
}
.carousel_img_item{
width: 25%;
}
}
</style>
<article class="s-annc show-annc">
<h1 class="s-annc__show-title">{{title}}</h1>
<ul class="s-annc__meta-wrap list-unstyled no-print">
<li class="s-annc__date-wrap s-annc__meta--item">
<i class="fa fa-calendar-o"></i>
<span class="s-annc__date" date-format="%Y-%m-%d">{{updated_at}}</span>
</li>
<li class="s-annc__author-wrap s-annc__meta--item">
<i class="fa fa-male"></i>
<span class="s-annc__author">{{update_user}}</span>
</li>
<li class="s-annc__tag-wrap s-annc__meta--item ">
<i class="fa fa-tags"></i>
<span data-list="tags" data-level="0">
<a href="{{url}}"><span class="s-annc__tag label label-default">{{tag}}</span></a>
</span>
</li>
<li class="s-annc__extra_info-wrap s-annc__meta--item ">
<span style="display: inline-block;{{speaker-css}}">
<span>{{speaker-head}}:</span>
<span>{{speaker}}</span>
<span>&nbsp;/&nbsp;</span>
</span>
<span style="{{host-css}}">
<span style="display: inline-block;">
<span>{{host-head}}:</span>
<span>{{host}}</span>
</span>
</span>
<div>{{place_text}}</div>
</li>
</ul>
<section class="s-annc__post-wrap">
<div class="s-annc__sub-img {{hide_class}}">
<img src="{{img_src}}"></img>
<span class="s-annc__img_description">{{img_description}}</span>
</div>
<div class="s-annc__subtitle">{{subtitle_ann}}</div>
<p class="s-annc__post-body">{{body}}</p>
</section>
<hr>
<section class="s-annc__post-wrap">
<p class="s-annc__post-notes">{{notes}}</p>
</section>
<ul class="s-annc__related-wrap list-unstyled no-print">
<li class="s-annc__related-file">
<i class="fa fa-fw fa-paperclip"></i>
<div class="s-annc__related-file-list" data-list="event_news_files" data-level="0">
<a class="s-annc__flie-title btn btn-default btn-sm" href="{{file_url}}">{{file_title}}</a>
</div>
</li>
<li class="s-annc__related-link">
<i class="fa fa-fw fa-link"></i>
<div class="s-annc__related-link-list" data-list="event_news_links" data-level="0">
<a class="s-annc__link-title btn btn-default btn-sm" href="{{link_url}}" target="_blank">{{link_title}}</a>
</div>
</li>
</ul>
</article>
<div class="carousel_images">
<div class="w-ba-banner ba-banner-widget-1">
<div class="w-ba-banner__wrap cycle-slideshow"
data-list="event_carousel_images"
data-level="0"
data-cycle-slides=".event_carousel_slide"
data-cycle-log="false"
data-cycle-auto-height="0"
data-cycle-speed="300"
data-cycle-timeout="5000"
data-cycle-fx="fade"
data-pager-active-class="active-slide"
data-cycle-swipe=true
data-cycle-swipe-fx="scrollHorz"
>
<div class="w-ba-banner__slide event_carousel_slide"
data-cycle-title="{{description_text}}"
>
<img class="w-ba-banner__image banner-responsive" src="{{src}}" alt="{{description_text}}">
<div class="ad-overlay w-ad-banner__overlay event_carousel__overlay">
<p><strong class="carousel__description">{{description}}</strong></p>
</div>
<div class="transitionfade"></div>
</div>
</div>
<ul class="controlplay"><a class="resume-slide" title = "{{resume_btn_title}}"><i></i></a><a class="pause-slide" title = "{{pause_btn_title}}"><i></i></a></ul>
<ul class="button-mid">
<i class="fa fa-angle-left prev-button" aria-hidden="true" title = "{{prev_btn_title}}"></i>
<i class="fa fa-angle-right next-button" aria-hidden="true" title = "{{next_btn_title}}"></i>
</ul>
</div>
<div style="position: relative;">
<h4><span class="active_slide">1</span>/{{carousel_count}}</h4>
<ul class="carousel_images_slide w-annc__list row list-unstyled" data-level="0" data-list="event_carousel_images">
<li class="carousel_img_item col-sm-3">
<div class="carousel_img-wrap">
<img class="carousel_img" src="{{src}}" alt="{{description_text}}">
</div>
</li>
</ul>
<ul class="button-mid">
<i class="fa fa-angle-left prev-button prev_img" aria-hidden="true" title = "{{prev_btn_title}}"></i>
<i class="fa fa-angle-right next-button next_img" aria-hidden="true" title = "{{next_btn_title}}"></i>
</ul>
</div>
</div>
{{link_to_edit}}
<script>
(function($) {
function hideEmptyEl(el, elParent) {
if( el.length === 0) {
elParent.addClass('hide');
}
}
// Hiding parent element when children elements are not present
// Tags
hideEmptyEl($('.s-annc__tag'), $('.s-annc__tag-wrap'));
// Attachments
hideEmptyEl($('.s-annc__flie-title'), $('.s-annc__related-file'));
// Links
hideEmptyEl($('.s-annc__link-title'), $('.s-annc__related-link'));
$("img[src='']").remove();
$('.pause-slide').click(function(){
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle('pause');
});
$('.resume-slide').click(function(){
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle('resume');
});
$('.next-button').off('click').on('click',function(){
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("next");
})
$('.prev-button').off('click').on('click',function(){
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("prev");
})
window.active_slide = 0;
$('.prev_img').off('click').on('click',function(){
var carousel_images_slide = $('.carousel_images_slide');
var carousel_images_slide_first_child = carousel_images_slide.find(">li").eq(active_slide);
if(carousel_images_slide_first_child.length > 0){
var content_size = Math.floor((carousel_images_slide.outerWidth() - Number.parseInt(carousel_images_slide.css('font-size')) * 3) / carousel_images_slide_first_child.outerWidth(true));
content_size = Math.max(content_size,1);
if(carousel_images_slide.find(">li").length > content_size && active_slide > 0){
active_slide -= content_size;
carousel_images_slide.find(">li").css("display","none");
for(var i = active_slide; i < active_slide + content_size;i++){
carousel_images_slide.find(">li").eq(i).css("display","block");
}
}
}
})
$('.next_img').off('click').on('click',function(){
var carousel_images_slide = $('.carousel_images_slide');
var carousel_images_slide_first_child = carousel_images_slide.find(">li").eq(active_slide);
if(carousel_images_slide_first_child.length > 0){
var content_size = Math.floor((carousel_images_slide.outerWidth() - Number.parseInt(carousel_images_slide.css('font-size')) * 3) / carousel_images_slide_first_child.outerWidth(true));
content_size = Math.max(content_size,1);
var li_length = carousel_images_slide.find(">li").length;
if(li_length > content_size){
active_slide += content_size;
active_slide = Math.min(active_slide,li_length - 1);
carousel_images_slide.find(">li").css("display","none");
for(var i = active_slide; i < active_slide + content_size;i++){
carousel_images_slide.find(">li").eq(i).css("display","block");
}
}
}
})
$(".carousel_img_item img").off("click").on("click",function(){
$(".carousel_images .cycle-slideshow").cycle($(this).index(".carousel_img_item img"));
})
$(document).ready(function(){
$(".carousel_images .cycle-slideshow").cycle('pause');
var carousel_image_block_width = $('.carousel_images').width();
var heights = $(".event_carousel_slide").map(function(i,v){
return $(v).height() * carousel_image_block_width / $(v).width();
})
var max_height = Math.max.apply(null,heights);
$(".event_carousel_slide").each(function(i,v){
$(v).height(max_height);
})
$(".carousel_images .cycle-slideshow").cycle('resume');
$('.cycle-slideshow').on('cycle-after',function(){
$(".active_slide").text($('.event_carousel_slide.cycle-slide-active').index());
})
})
$(window).on("load",function(){
$(".carousel_images .cycle-slideshow").cycle('pause');
var carousel_image_block_width = $('.carousel_images').width();
var heights = $(".event_carousel_slide").map(function(i,v){
return $(v).height() * carousel_image_block_width / $(v).width();
})
var max_height = Math.max.apply(null,heights);
$(".event_carousel_slide").each(function(i,v){
$(v).height(max_height);
})
$(".carousel_images .cycle-slideshow").cycle('resume');
})
$(window).resize(function(){
var carousel_images_slide = $('.carousel_images_slide');
var carousel_images_slide_first_child = carousel_images_slide.find(">li").eq(active_slide);
if(carousel_images_slide_first_child.length > 0){
var content_size = Math.floor((carousel_images_slide.outerWidth() - Number.parseInt(carousel_images_slide.css('font-size')) * 3) / carousel_images_slide_first_child.outerWidth(true));
content_size = Math.max(content_size,1);
carousel_images_slide.find(">li").css("display","none");
var active_count = carousel_images_slide.find(">li").length - active_slide;
if(active_count < content_size){
active_slide -= (content_size - active_count);
}
active_slide = Math.max(active_slide,0);
console.log(content_size)
for(var i = active_slide; i < active_slide + content_size;i++){
carousel_images_slide.find(">li").eq(i).css("display","block");
}
}
var carousel_image_block_width = $('.carousel_images').width();
$(".event_carousel_slide").css("height",'');
var heights = $(".event_carousel_slide").map(function(i,v){
return $(v).height() * carousel_image_block_width / $(v).width();
})
var max_height = Math.max.apply(null,heights);
$(".event_carousel_slide").each(function(i,v){
$(v).height(max_height);
})
})
}(jQuery));
</script>

View File

@ -0,0 +1,34 @@
<div class="w-annc widget-announcement-1">
<h3 class="w-annc__widget-title">
<span>{{widget-title}}</span>
</h3>
<ul class="w-annc__list" data-level="0" data-list="event_news">
<li class="w-annc__item">
<div class="w-annc__img-wrap bullseye">
<img class="w-annc__img" src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
</div>
<div class="w-annc__meta">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span>
</span>
<span class="w-annc__postdate-wrap" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="w-annc__postdate">{{postdate}}</span>
</span>
<span class="w-annc__category-wrap">
<i class="fa fa-tasks"></i>
<span class="w-annc__category">{{category}}</span>
</span>
</div>
<h4 class="w-annc__entry-title">
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<div class="w-annc__subtitle">{{subtitle}}</div>
<div class="w-annc__speaker" style="{{speaker-css}}">【{{speaker-head}}】 {{speaker}}</div>
<div class="w-annc__host" style="{{host-css}}">【{{host-head}}】 {{host}}</div>
</li>
</ul>
<div class="w-annc__more-wrap clearfix">
<a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
</div>

View File

@ -0,0 +1,22 @@
<div class="w-annc widget-announcement-10">
<h3 class="w-annc__widget-title">
<span>{{widget-title}}</span>
</h3>
<ul class="w-annc__list" data-level="0" data-list="event_news">
<li class="w-annc__item row">
<h4 class="w-annc__entry-title col-sm-9">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span>
</span>
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<span class="w-annc__postdate-wrap col-sm-3" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="w-annc__postdate">{{postdate}}</span>
</span>
</li>
</ul>
<div class="w-annc__more-wrap clearfix">
<a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
</div>

View File

@ -0,0 +1,22 @@
<div class="w-annc widget-announcement-11">
<h3 class="w-annc__widget-title">
<span>{{widget-title}}</span>
</h3>
<ul class="w-annc__list" data-level="0" data-list="event_news">
<li class="w-annc__item row">
<span class="w-annc__postdate-wrap col-sm-3" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="w-annc__postdate">{{postdate}}</span>
</span>
<h4 class="w-annc__entry-title col-sm-9">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span>
</span>
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4>
</li>
</ul>
<div class="w-annc__more-wrap clearfix">
<a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
</div>

View File

@ -0,0 +1,27 @@
<div class="w-annc widget-announcement-12">
<h3 class="w-annc__widget-title">
<span>{{widget-title}}</span>
</h3>
<table class="w-annc__table table">
<thead>
<tr>
<th class="w-annc__th w-annc__th--title">{{title-head}}</th>
<th class="w-annc__th w-annc__th--date">{{date-head}}</th>
</tr>
</thead>
<tbody data-level="0" data-list="event_news">
<tr>
<td class="w-annc_content">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span>
</span>
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</td>
<td class="w-annc__postdate" date-format="%Y-%m-%d">{{postdate}}</td>
</tr>
</tbody>
</table>
<div class="w-annc__more-wrap clearfix">
<a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
</div>

View File

@ -0,0 +1,27 @@
<div class="w-annc widget-announcement-13">
<h3 class="w-annc__widget-title">
<span>{{widget-title}}</span>
</h3>
<table class="w-annc__table table">
<thead>
<tr>
<th class="w-annc__th w-annc__th--date">{{date-head}}</th>
<th class="w-annc__th w-annc__th--title">{{title-head}}</th>
</tr>
</thead>
<tbody data-level="0" data-list="event_news">
<tr>
<td class="w-annc__postdate" date-format="%Y-%m-%d">{{postdate}}</td>
<td class="w-annc_content">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span>
</span>
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</td>
</tr>
</tbody>
</table>
<div class="w-annc__more-wrap clearfix">
<a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
</div>

View File

@ -0,0 +1,29 @@
<div class="w-annc widget-announcement-14">
<h3 class="w-annc__widget-title">
<span>{{widget-title}}</span>
</h3>
<div class="w-annc__inner row">
<div class="w-annc__img-wrap col-xs-4 bullseye">
<img class="w-annc__img" src="{{main_picture}}" alt="{{main_picture_description}}" title="{{main_picture_description}}">
</div>
<ul class="w-annc__list col-xs-8" data-level="0" data-list="event_news">
<li class="w-annc__item">
<div class="w-annc__content row">
<h4 class="w-annc__entry-title col-xs-9">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label {{status-class}}">{{status}}</span>
</span>
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<span class="w-annc__postdate-wrap col-xs-3" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="w-annc__postdate">{{postdate}}</span>
</span>
</div>
</li>
</ul>
</div>
<div class="w-annc__more-wrap clearfix">
<a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
</div>

View File

@ -0,0 +1,169 @@
<div class="w-annc widget-announcement-4 w-annc widget-announcement-15" style="position:relative;">
<h2 class="w-annc__widget-title">
<span>{{widget-title}}</span>
</h2>
<div style="position: absolute;top: 50%;bottom: 50%;width:100%;">
<button class="btn-left" title = "<%= (I18n.locale.to_s =="zh_tw") ? "上一張" : "prev" %>" style="float: left;height: 2.5em; width: 2.5em;background: border: 0;background-size: contain;position: absolute;transition:.3s; left: 0.6%;color: #ffffff;
background: rgba(0, 0, 0, 0.2);
border-radius: 50%;
border: none;"><i class="fa fa-angle-left prev-button" aria-hidden="true" style="font-size: 1.5rem;"></i><span style="display: none;"><%= (I18n.locale.to_s =="zh_tw") ? "上一張" : "prev" %></span></button>
<button class="btn-right" title = "<%= (I18n.locale.to_s =="zh_tw") ? "下一張" : "next" %>" style="float: right;;height: 2.5em; width: 2.5em;background-size: contain;border: 0;position: absolute;transition:.3s;right: 0.6%;color: #ffffff;
background: rgba(0, 0, 0, 0.2);
border-radius: 50%;
border: none;"><i class="fa fa-angle-right next-button" aria-hidden="true" style="font-size: 1.5rem;"></i><span style="display: none;"><%= (I18n.locale.to_s =="zh_tw") ? "下一張" : "next" %></span></button>
</div>
<ul class="w-annc__list row" data-level="0" data-list="event_news">
<li class="w-annc__item col-md-4">
<div class="w-annc__img-wrap bullseye">
<img class="w-annc__img" src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
<div class="transitionfade"></div>
</div>
<div class="w-annc__content-wrap">
<div class="w-annc__meta">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label {{status-class}}">{{status}}</span>
</span>
<span class="w-annc__postdate-wrap" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i>
<span class="w-annc__postdate">{{postdate}}</span>
</span>
<span class="w-annc__category-wrap">
<i class="fa fa-tasks"></i>
<span class="w-annc__category">{{category}}</span>
</span>
</div>
<h4 class="w-annc__entry-title">
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<p class="w-annc__subtitle">{{subtitle}}</p>
</div>
</li>
</ul>
<div class="w-annc__more-wrap clearfix">
<a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
</div>
<script src="//code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
function combineul_{{subpart-id}}(){
var parents = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').parent();
parents.each(function(i,v){
for(var i=1;i<$(v).find('ul.w-annc__list').length;i++)
$(v).find('ul.w-annc__list').eq(0).find('>li').eq(-1).after($(v).find('ul.w-annc__list').eq(i).html());
var ullength = $(v).find('ul.w-annc__list').length;
for(var i = 1;i < ullength;i++)
$(v).find('ul.w-annc__list').eq(-1).remove();
})
};
var num;
var lilength = $('[data-subpart-id=\"{{subpart-id}}\"] li.w-annc__item').length;
function reorganize_{{subpart-id}}(num){
var uls = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').toArray();
var currentul = uls.findIndex(function(v){
return $(v).hasClass("active") && !$(v).hasClass("hidden_item");
})
if(currentul == -1)
currentul = 0;
var li_active_idx = 0;
if(currentul != 0)
li_active_idx = $(uls[currentul]).find("li.w-annc__item").eq(0).index("li.w-annc__item");
combineul_{{subpart-id}}();
var parents = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').parent();
parents.each(function(i,v){
var lilength = $(v).find('li.w-annc__item').length;
var ul_length = Math.ceil(lilength/num);
for(var ii=1;ii< ul_length;ii++){
var clone_ul = $(v).find('ul.w-annc__list').eq(-1).clone();
clone_ul.empty();
clone_ul.removeClass("active");
clone_ul.css("display","");
$(v).find('ul.w-annc__list').eq(-1).after(clone_ul.prop("outerHTML"));
var lihtml="";
if(ii != (ul_length-1)){
for(var j=0;j<num;j++){
lihtml += $(v).find('li.w-annc__item').eq(ii*num+j).prop("outerHTML");
};
}else{
for(var j=0;j< lilength - num *(ul_length-1) ;j++){
lihtml += $(v).find('li.w-annc__item').eq(ii*num+j).prop("outerHTML");
};
};
$(v).find('ul.w-annc__list').eq(-1).html(lihtml);
}
if(ul_length != 1 )
for(var i=0;i< lilength -num ; i++)
$(v).find('ul.w-annc__list').eq(0).find("li.w-annc__item").eq(num).remove();
})
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').css("display","none");
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').css('padding','0 1.125em');
$('[data-subpart-id=\"{{subpart-id}}\"] button').css('z-index','10');
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list >li').css('width','calc('+100/num+'% - '+20/16+'em)'); //20px=>li的margin
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list >li').css('float','left');
var active_ul = $("[data-subpart-id=\"{{subpart-id}}\"] li.w-annc__item").eq(li_active_idx).parents("ul.w-annc__list");
active_ul.addClass("active");
active_ul.removeClass("hidden_item");
active_ul.css("display","");
};
$(window).resize(function(){
if($(window).width()>1024){
reorganize_{{subpart-id}}(3);
num=3;
}else if($(window).width()>576){
reorganize_{{subpart-id}}(2);
num=2;
}else{
reorganize_{{subpart-id}}(1);
num=1;
}
})
$(document).ready(function(){
if($(window).width()>1024){
reorganize_{{subpart-id}}(3);
num=3;
}else if($(window).width()>576){
reorganize_{{subpart-id}}(2);
num=2;
}else{
reorganize_{{subpart-id}}(1);
num=1;
}
var flag=false;
$('.btn-left').click(function(){
if(!flag){
var uls = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list:not(.hidden_item)').toArray();
var ul_length = uls.length;
var currentul = uls.findIndex(function(v){
return $(v).hasClass("active");
})
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').css('display','none');
if(currentul - 1 < 0)
currentul += ul_length;
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list:not(.hidden_item)').removeClass("active");
var active_item = $(uls[currentul-1]);
active_item.addClass("active");
active_item.find("li").css("display","block");
flag=true;
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list.active').eq(0).effect("slide", { direction: "left", mode: 'show', duration: 500},function(){flag=false;});
};
});
$('.btn-right').click(function(){
var lilength = $('[data-subpart-id=\"{{subpart-id}}\"] li.w-annc__item').length;
if(!flag){
var uls = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list:not(.hidden_item)').toArray();
var ul_length = uls.length;
var currentul = uls.findIndex(function(v){
return $(v).hasClass("active");
})
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').css('display','none');
if(currentul + 1 > ul_length - 1)
currentul -= ul_length;
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list:not(.hidden_item)').removeClass("active");
var active_item = $(uls[currentul+1]);
active_item.addClass("active");
active_item.find("li").css("display","block");
flag=true;
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list.active').eq(0).effect("slide", { direction: "left", mode: 'show', duration: 500},function(){flag=false;});
};
});
});
</script>

View File

@ -0,0 +1,32 @@
<div class="w-annc widget-announcement-13">
<table class="w-annc__table table">
<thead>
<tr>
<th class="w-annc__th w-annc__th--date">{{event_date-head}}</th>
<th class="w-annc__th w-annc__th--date">{{speaker-head}}</th>
<th class="w-annc__th w-annc__th--title">{{title-head}}</th>
<th class="w-annc__th w-annc__th--title">{{subtitle-head}}</th>
<th class="w-annc__th w-annc__th--title">{{host-head}}</th>
<th class="w-annc__th w-annc__th--title">{{notes-head}}</th>
</tr>
</thead>
<tbody data-level="0" data-list="event_news">
<tr>
<td class="w-annc__postdate" date-format="%Y-%m-%d">{{postdate}}</td>
<td class="w-annc__speaker">{{speaker}}</td>
<td class="w-annc_content">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span>
</span>
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</td>
<td class="w-annc_subtitle">{{subtitle}}</td>
<td class="w-annc__host">{{host}}</td>
<td class="w-annc__notes">{{notes}}</td>
</tr>
</tbody>
</table>
<div class="w-annc__more-wrap clearfix">
<a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
</div>
</div>

View File

@ -0,0 +1,27 @@
<div class="w-annc widget-announcement-13">
<h3 class="w-annc__widget-title">
<span>{{widget-title}}</span>
</h3>
<table class="w-annc__table table">
<tbody data-level="0" data-list="event_news">
<tr>
<td class="w-annc__postdate">{{postdate}}</td>
<td class="w-annc_content">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span>
</span>
<a class="w-annc__title" href="{{link_to_show}}">{{title-head}}{{title}}</a>
</td>
<td style="{{speaker-css}}" class="w-annc__speaker">{{speaker-head}}{{speaker}}</td>
<td style="{{host-css}}" class="w-annc__host">{{host-head}}{{host}}</td>
<td style="{{place-css}}" class="w-annc__host">{{place-head}}{{place}}</td>
<td style="{{event-time-css}}" class="w-annc__host">{{event_date-head}}{{event-time-formated}}</td>
<td class="w-annc__subtitle">{{subtitle}}</td>
<td style="{{notes-css}}" class="w-annc__notes">{{notes-head}}{{notes}}</td>
</tr>
</tbody>
</table>
<div class="w-annc__more-wrap clearfix">
<a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= t("event_news.more") %></a>
</div>
</div>

View File

@ -0,0 +1,83 @@
<div class="w-calendar widget-calendar-2 widget-event-news-calendar-2" data-module="event_news">
<div class="w-calendar-title {{widget_title_class}}">
<span>{{calendar_title}}</span>
<span>{{widget_title}}</span>
</div>
<div class='month_template'>
<h4 class="widget-title ">
<span class="text"><span style="display: none;">placeholder</span></span>
<i class="fa fa-circle-o-notch fa-spin fa-fw loading hide"></i>
</h4>
<div class="w-calendar-nav">
<a href="#" class="w-calendar-nav-prev">
<i class="fa fa-chevron-left"></i>
<span class="w-calendar-nav-prev-text hide">Prev</span>
</a>
<a href="#" class="w-calendar-nav-next">
<i class="fa fa-chevron-right"></i>
<span class="w-calendar-nav-next-text hide">Next</span>
</a>
</div>
<table class="table table-condensed w-calendar-table">
<thead>
<tr>
<th>Sun</th>
<th>Mon</th>
<th>Tue</th>
<th>Wed</th>
<th>Thu</th>
<th>Fri</th>
<th>Sat</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<div class="calendar-events" style="display: none;">
<div class="event">
<div class="event-header">
<div class="date">
<div class="day"></div>
<div class="month"></div>
</div>
<div class="event-title">
<div class="event-inner-title"></div>
<div class="duration"></div>
</div>
</div>
<div class="event-wraper">
<div class="event-containers">
</div>
</div>
</div>
</div>
</div>
<%= stylesheet_link_tag "event_news_calendar_widget2" %>
<script>
$(document).ready(function(){
if(document.getElementById("event-news-calendar-widget_module2") == null){
var tag = document.createElement('script');
tag.setAttribute("id", "event-news-calendar-widget_module2");
tag.src = "<%= asset_path('event_news_calendar_widget2.js') %>";
tag.onload = function(){
$("div.widget-calendar-2[data-module=event_news]").each(function(index){
var calendar = $(this),
cmi = new EventCalendarModuleMonth2(new Date(), calendar,calendar.data("subpart-id"),"{{more_url}}",false);
cmi.currentMonth();
calendar.find("div.w-calendar-nav a").on("click",function(){
var el = $(this);
if(el.hasClass("w-calendar-nav-prev")){
cmi.prevMonth();
}else if(el.hasClass("w-calendar-nav-next")){
cmi.nextMonth();
}
return false;
})
})
}
var head = document.getElementsByTagName("head");
head[0].appendChild(tag);
}
})
</script>

Some files were not shown because too many files have changed in this diff Show More