waibu-maps 2.7.1 → 2.7.2
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.
|
@@ -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