waibu-maps 2.7.1 → 2.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -27,7 +27,7 @@ async function controlNewsticker () {
|
|
|
27
27
|
.at-ticker-label { --at-bg-cl: #f00 }
|
|
28
28
|
.at-ticker-box { font-size: larger; padding-right: 10px }
|
|
29
29
|
.at-ticker-box ul { padding-top: 5px }
|
|
30
|
-
.text-content { max-height: calc(100vh -
|
|
30
|
+
.text-content { max-height: calc(100vh - 450px); overflow-y: auto }
|
|
31
31
|
`
|
|
32
32
|
|
|
33
33
|
constructor (options) {
|
|
@@ -50,9 +50,9 @@ async function controlNewsticker () {
|
|
|
50
50
|
let rsc = ''
|
|
51
51
|
if (att) {
|
|
52
52
|
if (att.mimeType.startsWith('video')) {
|
|
53
|
-
rsc = '<iframe style="height:
|
|
53
|
+
rsc = '<iframe style="height:250px; width:100%" frameborder="0" allowfullscreen scrolling="no" allow="camera; microphone; fullscreen" src="' + att.url + '"></iframe>'
|
|
54
54
|
} else {
|
|
55
|
-
rsc = '<img style="height:
|
|
55
|
+
rsc = '<img style="height:250px" class="img-fluid" src="' + att.url + '">'
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
const html = '<div class="d-flex border-bottom justify-content-center">' +
|
|
@@ -75,7 +75,7 @@ async function controlNewsticker () {
|
|
|
75
75
|
if (window.newsticker) window.newsticker.destroy()
|
|
76
76
|
const el = document.querySelector('.maplibregl-ctrl-newsticker .content')
|
|
77
77
|
el.innerHTML = ''
|
|
78
|
-
this.posts = await wmpa.fetchApi('/cms/post', { headers: { 'X-Attachments': 'true' } }, { limit:
|
|
78
|
+
this.posts = await wmpa.fetchApi('/cms/post', { headers: { 'X-Attachments': 'true' } }, { limit: 10 })
|
|
79
79
|
this.posts.forEach(post => {
|
|
80
80
|
const li = document.createElement('li')
|
|
81
81
|
const a = document.createElement('a')
|
|
@@ -93,7 +93,7 @@ async function controlNewsticker () {
|
|
|
93
93
|
type: 'vertical',
|
|
94
94
|
direction: 'down',
|
|
95
95
|
speed: 600,
|
|
96
|
-
autoplay:
|
|
96
|
+
autoplay: 4000
|
|
97
97
|
})
|
|
98
98
|
}
|
|
99
99
|
`])
|
package/package.json
CHANGED