Compare commits
No commits in common. "02fb2c023fe6c366f20f41fd9e06efbf8881051e" and "f52d2d2c25d35068954ac85328fe44a9003bc410" have entirely different histories.
02fb2c023f
...
f52d2d2c25
1 changed files with 3 additions and 5 deletions
|
@ -244,7 +244,6 @@ const updateCarousel = function(slides, posts) {
|
||||||
const showCarousel = function() {
|
const showCarousel = function() {
|
||||||
// show popover
|
// show popover
|
||||||
document.getElementById('popover').style.opacity = '1';
|
document.getElementById('popover').style.opacity = '1';
|
||||||
document.getElementById('popover').style.display = 'block';
|
|
||||||
// Activate Carousel
|
// Activate Carousel
|
||||||
$('#myCarousel').carousel("cycle");
|
$('#myCarousel').carousel("cycle");
|
||||||
}
|
}
|
||||||
|
@ -255,8 +254,8 @@ const strip = function(html) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const hideCarousel = function() {
|
const hideCarousel = function() {
|
||||||
// hide popover
|
// show popover
|
||||||
document.getElementById('popover').style.display = 'none';
|
document.getElementById('popover').style.opacity = '0';
|
||||||
// Activate Carousel
|
// Activate Carousel
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -361,9 +360,8 @@ $(document).ready(async function() {
|
||||||
|
|
||||||
if ( withCarousel) {
|
if ( withCarousel) {
|
||||||
updateCarousel(slides, allPosts.flat());
|
updateCarousel(slides, allPosts.flat());
|
||||||
setTimeout(async function() { showCarousel(); }, duration);
|
setTimeout(async function() { showCarousel(); }, duration)
|
||||||
}
|
}
|
||||||
else setTimeout(async function() { hideCarousel(); }, duration);
|
|
||||||
setInterval(async function() {
|
setInterval(async function() {
|
||||||
const newPosts = await Promise.all(hashtagsArray.map(hashtag => fetchPosts(serverUrl, hashtag)));
|
const newPosts = await Promise.all(hashtagsArray.map(hashtag => fetchPosts(serverUrl, hashtag)));
|
||||||
let updated = updateWall(newPosts.flat());
|
let updated = updateWall(newPosts.flat());
|
||||||
|
|
Loading…
Add table
Reference in a new issue