Skip to content

Commit

Permalink
Updated responsiveslides
Browse files Browse the repository at this point in the history
  • Loading branch information
GodMod committed Jun 23, 2020
1 parent 0d1fb84 commit 3178fc1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion articleslider_portal.class.php
Expand Up @@ -153,7 +153,7 @@ public function output() {
$strImage = $this->server_path.'portal/articleslider/images/dummy.jpg';
}
$strTitle = $this->pdh->get('articles', 'title', array($intArticleID));
$strOut .= '<div class="callbacks_imagecontainer"><img src="'.$strImage.'" alt="'.$strTitle.'" /></div>';
$strOut .= '<div class="callbacks_imagecontainer"><img src="'.$strImage.'" alt="'.$strTitle.'" loading="lazy" /></div>';
if(strlen($strTitle)){
$strText = $this->pdh->get('articles', 'text', array($intArticleID));
$strText = $this->bbcode->remove_embeddedMedia($this->bbcode->remove_shorttags($strText));
Expand Down
8 changes: 4 additions & 4 deletions js/responsiveslides.js
@@ -1,4 +1,4 @@
/*! ResponsiveSlides.js v1.54
/*! ResponsiveSlides.js v1.55
* http://responsiveslides.com
* http://viljamis.com
*
Expand Down Expand Up @@ -49,7 +49,7 @@
// Helpers
index = 0,
$slide = $this.children(),
length = $slide.size(),
length = $slide.length,
fadeTime = parseFloat(settings.speed),
waitTime = parseFloat(settings.timeout),
maxw = parseFloat(settings.maxwidth),
Expand Down Expand Up @@ -171,7 +171,7 @@
}

// Only run if there's more than one slide
if ($slide.size() > 1) {
if ($slide.length > 1) {

// Make sure the timeout is at least 100ms longer than the fade
if (waitTime < fadeTime + 100) {
Expand Down Expand Up @@ -388,4 +388,4 @@
});

};
})(jQuery, this, 0);
})(jQuery, this, 0);
16 changes: 8 additions & 8 deletions js/responsiveslides.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3178fc1

Please sign in to comment.