Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
enterprise:demos:gallery [2021/10/24 22:25] admin |
enterprise:demos:gallery [2021/10/27 00:45] (current) admin |
||
---|---|---|---|
Line 80: | Line 80: | ||
< | < | ||
function initPage(langx, | function initPage(langx, | ||
- | | + | |
- | var medias = [ | + | var medias = [ |
- | { | + | { |
- | type: ' | + | type: ' |
- | poster : "/ | + | poster : "/ |
- | media : "/ | + | media : "/ |
- | title : " | + | title : " |
- | }, | + | }, |
- | { | + | { |
- | | + | |
- | poster : '/ | + | poster : '/ |
- | media : "/ | + | media : "/ |
- | title : " | + | title : " |
- | }, | + | }, |
- | { | + | { |
- | type: ' | + | type: ' |
- | poster : '/ | + | poster : '/ |
- | media : "/ | + | media : "/ |
- | title : " | + | title : " |
- | }, | + | }, |
- | { | + | { |
- | | + | |
- | poster : "/ | + | poster : "/ |
- | media : "/ | + | media : "/ |
- | title : "grand view park" | + | title : "grand view park" |
- | | + | |
- | | + | |
- | type: ' | + | type: ' |
- | poster : "/ | + | poster : "/ |
- | media : "/ | + | media : "/ |
- | title : " | + | title : " |
- | }, | + | }, |
- | + | ||
- | { | + | { |
- | | + | |
- | poster : "/ | + | poster : "/ |
- | media : "/ | + | media : "/ |
- | title : " | + | title : " |
- | | + | |
- | { | + | { |
- | | + | |
- | poster : "/ | + | poster : "/ |
- | media : "/ | + | media : "/ |
- | title : "the earth around" | + | title : "the earth around" |
- | | + | |
- | ]; | + | ]; |
- | | + | |
- | | + | |
- | for (let i = 0, e = mediaEls.length; | + | for (let i = 0, e = mediaEls.length; |
- | const mediaEl = mediaEls[i], | + | const mediaEl = mediaEls[i], |
- | pickerOptions = { | + | pickerOptions = { |
- | tabs : [ | + | tabs : [ |
- | {label:" | + | {label:" |
- | ], | + | ], |
- | | + | |
- | | + | |
- | tabitem : $("# | + | tabitem : $("# |
- | tabpane : $("# | + | tabpane : $("# |
- | }, | + | }, |
- | | + | |
- | listing : { | + | listing : { |
- | template : $("# | + | template : $("# |
- | | + | |
- | template : $("# | + | template : $("# |
- | }, | + | }, |
- | | + | |
- | template : $("# | + | template : $("# |
- | } | + | |
} | } | ||
} | } | ||
- | }; | + | |
+ | | ||
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | } | + | } |
} | } | ||
+ | } | ||
} | } | ||
</ | </ | ||
Line 192: | Line 193: | ||
} | } | ||
- | .uop-picker .lark-carousel .desc, .lark-carousel .ground { | + | |
- | display: none; | + | display: none; |
- | } | + | } |
- | .uop-picker .lark-carousel.rotate .desc, .lark-carousel.rotate .ground { | + | |
- | display: block; | + | display: block; |
- | } | + | } |
- | .uop-picker .lark-carousel .items-container { | + | |
height: 100%; | height: 100%; | ||
- | } | + | |
- | .uop-picker .lark-carousel | + | |
max-width: 100%; | max-width: 100%; | ||
max-height: 100%; | max-height: 100%; | ||
Line 210: | Line 211: | ||
margin: auto; | margin: auto; | ||
cursor : pointer; | cursor : pointer; | ||
- | } | + | |
- | .uop-picker .lark-carousel.rotate .items-container { | + | |
width: 120px; | width: 120px; | ||
height: 170px; | height: 170px; | ||
- | } | + | |
- | | + | |
+ | | ||
display: block; | display: block; | ||
height : 220px; | height : 220px; | ||
width: 220px; | width: 220px; | ||
- | } | + | |
- | .uop-picker .lark-carousel.coverflow .item { | + | |
- | | + | height : 360px; |
- | | + | width : 360px; |
- | } | + | } |
- | .uop-picker .lark-carousel.coverflow .item img { | + | |
display: block; | display: block; | ||
height : 360px; | height : 360px; | ||
width : 360px; | width : 360px; | ||
- | } | + | |
| | ||
Line 244: | Line 246: | ||
===== Code ===== | ===== Code ===== | ||
< | < | ||
+ | <div style=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <script id=" | ||
+ | | ||
+ | <div class = " | ||
+ | <div class=" | ||
+ | <ul class=" | ||
+ | </ul> | ||
+ | <div class=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | | ||
+ | </ | ||
+ | |||
+ | <script id=" | ||
+ | <li data-pickfrom="< | ||
+ | <a data-toggle=" | ||
+ | </li> | ||
+ | </ | ||
+ | |||
+ | <script id=" | ||
+ | <div class=" | ||
+ | </ | ||
+ | |||
+ | <script id=" | ||
+ | <div class=" | ||
+ | < | ||
+ | <ul class= " | ||
+ | <!-- Add your images (or video) here --> | ||
+ | </ul> | ||
+ | <!-- Text at center of ground --> | ||
+ | <p class = " | ||
+ | <div id=" | ||
+ | </ | ||
+ | <a class=" | ||
+ | <a class=" | ||
+ | <a class=" | ||
+ | <ol class=" | ||
+ | </ol> | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <script id=" | ||
+ | <li class=" | ||
+ | <div class=" | ||
+ | <label class=" | ||
+ | <input name=" | ||
+ | </ | ||
+ | <label class=" | ||
+ | <input name=" | ||
+ | </ | ||
+ | <label class=" | ||
+ | <input name=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <script id=" | ||
+ | <li class=" | ||
+ | <div class=" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | function initPage(langx, | ||
+ | let $ = domx.query; | ||
+ | var medias = [ | ||
+ | { | ||
+ | type: ' | ||
+ | poster : "/ | ||
+ | media : "/ | ||
+ | title : " | ||
+ | }, | ||
+ | { | ||
+ | type: ' | ||
+ | poster : '/ | ||
+ | media : "/ | ||
+ | title : " | ||
+ | }, | ||
+ | { | ||
+ | type: ' | ||
+ | poster : '/ | ||
+ | media : "/ | ||
+ | title : " | ||
+ | }, | ||
+ | { | ||
+ | type: ' | ||
+ | poster : "/ | ||
+ | media : "/ | ||
+ | title : "grand view park" | ||
+ | |||
+ | }, | ||
+ | |||
+ | { | ||
+ | type: ' | ||
+ | poster : "/ | ||
+ | media : "/ | ||
+ | title : " | ||
+ | }, | ||
+ | | ||
+ | { | ||
+ | type: ' | ||
+ | poster : "/ | ||
+ | media : "/ | ||
+ | title : " | ||
+ | |||
+ | }, | ||
+ | { | ||
+ | type: ' | ||
+ | poster : "/ | ||
+ | media : "/ | ||
+ | title : "the earth around" | ||
+ | |||
+ | } | ||
+ | ]; | ||
+ | |||
+ | const mediaEls = Array.prototype.slice.call(document.getElementsByTagName(' | ||
+ | |||
+ | if (mediaEls && mediaEls.length > 0) { | ||
+ | for (let i = 0, e = mediaEls.length; | ||
+ | const mediaEl = mediaEls[i], | ||
+ | pickerOptions = { | ||
+ | tabs : [ | ||
+ | {label:" | ||
+ | ], | ||
+ | |||
+ | template : $("# | ||
+ | |||
+ | templates : { | ||
+ | tabitem : $("# | ||
+ | tabpane : $("# | ||
+ | }, | ||
+ | |||
+ | froms : { | ||
+ | listing : { | ||
+ | template : $("# | ||
+ | |||
+ | item : { | ||
+ | template : $("# | ||
+ | }, | ||
+ | |||
+ | modes : { | ||
+ | template : $("# | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | }; | ||
+ | |||
+ | if (mediaEl.player === undefined) { | ||
+ | | ||
+ | | ||
+ | | ||
+ | }); | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | <link type=" | ||
+ | < | ||
+ | .throbber { | ||
+ | position: absolute; | ||
+ | top: 0px; | ||
+ | left: 0px; | ||
+ | background: rgba(255, 152, 0, 0.86); | ||
+ | color: rgb(255, 255, 255); | ||
+ | display: flex; | ||
+ | align-items: | ||
+ | justify-content: | ||
+ | width: 100%; | ||
+ | height: 100%; | ||
+ | z-index: 9999; | ||
+ | } | ||
+ | .u-oneplayer { | ||
+ | position: absolute; | ||
+ | } | ||
+ | |||
+ | .uop-picker .lark-carousel .desc, .lark-carousel .ground { | ||
+ | display: none; | ||
+ | } | ||
+ | |||
+ | .uop-picker .lark-carousel.rotate .desc, .lark-carousel.rotate .ground { | ||
+ | display: block; | ||
+ | } | ||
+ | |||
+ | .uop-picker .lark-carousel .items-container { | ||
+ | height: 100%; | ||
+ | } | ||
+ | |||
+ | .uop-picker .lark-carousel | ||
+ | max-width: 90%; | ||
+ | max-height: 90%; | ||
+ | display: block; | ||
+ | margin: auto; | ||
+ | cursor : pointer; | ||
+ | } | ||
+ | |||
+ | .uop-picker .lark-carousel.rotate .items-container { | ||
+ | width: 120px; | ||
+ | height: 170px; | ||
+ | } | ||
+ | |||
+ | .uop-picker .lark-carousel.rotate .item img { | ||
+ | display: block; | ||
+ | height : 220px; | ||
+ | width: 220px; | ||
+ | } | ||
+ | |||
+ | .uop-picker .lark-carousel.coverflow .item { | ||
+ | height : 360px; | ||
+ | width : 360px; | ||
+ | } | ||
+ | |||
+ | .uop-picker .lark-carousel.coverflow .item img { | ||
+ | display: block; | ||
+ | height : 360px; | ||
+ | width : 360px; | ||
+ | } | ||
+ | |||
+ | | ||
+ | display: block; | ||
+ | height : 420px; | ||
+ | width : 840px | ||
+ | } | ||
+ | </ | ||
</ | </ |