PageSourceSearch

https://www.escapadenature-sansvoiture.fr/modules/mod_jmslideshow/assets/js/responsive.js

js escapadenature-sansvoiture.fr collected 2026-10-07 03:39:49 UTC 2,467 bytes, 69 lines download raw bytes

1/*
2#------------------------------------------------------------------------
3# Package - JoomlaMan JMSlideShow
4# Version 1.0
5# -----------------------------------------------------------------------
6# Author - JoomlaMan http://www.joomlaman.com
7# Copyright © 2012 - 2013 JoomlaMan.com. All Rights Reserved.
8# @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later
9# Websites: http://www.JoomlaMan.com
10#------------------------------------------------------------------------
11*/
12var matched, browser;
13jQuery(document).ready(function(){
14    jmslideshow_responsive();
15    jQuery(window).resize(function(){
16        jmslideshow_responsive();
17    });
18    if(typeof jQuery.browser != 'function'){
19        jQuery.uaMatch = function( ua ) {
20            ua = ua.toLowerCase();
21            var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) ||
22            /(webkit)[ \/]([\w.]+)/.exec( ua ) ||
23            /(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) ||
24            /(msie) ([\w.]+)/.exec( ua ) ||
25            ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) ||
26            [];
27            return {
28                browser: match[ 1 ] || "",
29                version: match[ 2 ] || "0"
30            };
31        };
32        matched = jQuery.uaMatch( navigator.userAgent );
33        browser = {};
34        if ( matched.browser ) {
35            browser[ matched.browser ] = true;
36            browser.version = matched.version;
37        }
38        // Chrome is Webkit, but Webkit is also Safari.
39        if ( browser.chrome ) {
40            browser.webkit = true;
41        } else if ( browser.webkit ) {
42            browser.safari = true;
43        }
44        jQuery.browser = browser;
45    }
46    if(jQuery.browser.msie  && parseInt(jQuery.browser.version, 10) === 8) {
47        jQuery.each(jQuery('.jmslide-item'), function(i, el){
48            var $img = jQuery(el).find('img.jmslide-img').attr('src');
49            jQuery(el).css({
50                backgroundImage:'url('+$img+')'
51            });
52        })
53    }
54})
55function jmslideshow_responsive(){
56    if(jQuery(window).width() < 768){
57        jQuery('.jmhidden-mobile').css({
58            display:'none'
59        });
60    }else{
61        jQuery('.jmhidden-mobile').css({
62            display:'block'
63        });
64    }
65    jQuery.each(jQuery('.jmslide-item'), function(i, el){
66        var $width = jQuery(el).parents('.jmslideshow').width();
67        jQuery(el).find('img.jmslide-img').width($width);
68    });
69}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.