PageSourceSearch

https://www.furusjoenrundt.no/wp-content/plugins/smart-logo-showcase-lite/js/smls-frontend-script.js?ver=1.1.9

js furusjoenrundt.no collected 2026-10-02 20:38:43 UTC 6,567 bytes, 216 lines download raw bytes

1function resize() {
2    if (jQuery(window).width() <= 1024) {
3        jQuery('.smls-main-logo-wrapper').addClass('smls-resposive-wrap');
4
5    } else {
6        jQuery('.smls-main-logo-wrapper').removeClass('smls-resposive-wrap');
7    }
8}
9jQuery(document).ready(function($) {
10    $(window).resize(resize);
11    resize();
12
13
14    /*
15     *
16     * check window width
17     */
18     var smlsWindowWidth = $(window).width();
19     $(window).resize(function() {
20        smlsWindowWidth = $(window).width();
21    });
22    /*
23     * Add responsive class for grid column
24     */
25     if (smlsWindowWidth > 1024) {
26
27        for (i = 2; i <= 4; i++) {
28            if ($('.smls-grid').hasClass('smls-tablet-column-' + i + '')) {
29
30                $('.smls-grid').removeClass('smls-tablet-column-' + i + '');
31            }
32        }
33        for (i = 1; i <= 2; i++) {
34            if ($('.smls-grid').hasClass('smls-mobile-column-' + i + '')) {
35
36                $('.smls-grid').removeClass('smls-mobile-column-' + i + '');
37            }
38        }
39
40
41    }
42    if (smlsWindowWidth > 740 && smlsWindowWidth <= 1024) {
43        for (i = 2; i <= 6; i++) {
44            if ($('.smls-grid').hasClass('smls-grid-column-' + i + '')) {
45
46                $('.smls-grid').removeClass('smls-grid-column-' + i + '');
47            }
48        }
49        for (i = 1; i <= 2; i++) {
50            if ($('.smls-grid').hasClass('smls-mobile-column-' + i + '')) {
51
52                $('.smls-grid').removeClass('smls-mobile-column-' + i + '');
53            }
54        }
55    }
56
57    if (smlsWindowWidth <= 740) {
58        for (i = 2; i <= 6; i++) {
59            if ($('.smls-grid').hasClass('smls-grid-column-' + i + '')) {
60
61                $('.smls-grid').removeClass('smls-grid-column-' + i + '');
62            }
63        }
64        for (i = 2; i <= 4; i++) {
65            if ($('.smls-grid').hasClass('smls-tablet-column-' + i + '')) {
66
67                $('.smls-grid').removeClass('smls-tablet-column-' + i + '');
68            }
69        }
70
71    }
72
73
74    //for horizontal slide of logo
75    var smls_carousel = {};
76    $('.smls-carousel-logo').each(function() {
77        var id = $(this).data('id');
78        var pager = $(this).data('pager');
79        var controls = $(this).data('controls');
80        var controls_type = $(this).data('controls-type');
81        var slide_count = $(this).data('slide-count');
82        var auto = $(this).data('autoplay');
83        var auto_speed = $(this).data('auto-speed');
84        var template = $(this).data('template');
85        var arrow_type = $(this).data('arrow-type');
86
87        if (template == 'template-2') {
88            var margin = 0;
89        } else {
90            var margin = 15;
91        }
92        if (controls_type == 'arrow') {
93            if (arrow_type == 'type-5') {
94                var nav_type = [
95                '<i class="fa fa-arrow-left" aria-hidden="true"></i>',
96                '<i class="fa fa-arrow-right" aria-hidden="true"></i>'
97                ];
98            } else {
99                var nav_type = [
100                '<i class="fa fa-angle-left" aria-hidden="true"></i>',
101                '<i class="fa fa-angle-right" aria-hidden="true"></i>'
102                ];
103            }
104        } else {
105            var nav_type = ['<i class="fa fa-long-arrow-left" aria-hidden="true"></i>prev', 'next<i class="fa fa-long-arrow-right" aria-hidden="true"></i>'];
106        }
107
108        smls_carousel.id = $(this).owlCarousel({
109            center: false,
110            items: 1,
111            loop: true,
112            margin: margin,
113            nav: controls,
114            dots: pager,
115            dotsEach: true,
116            navText: nav_type,
117            autoplay: auto,
118            autoplayHoverPause: true,
119            autoplayTimeout: auto_speed,
120            animateOut: 'slideOutUp',
121            animateIn: 'slideInUp',
122            responsiveClass: true,
123            responsive: {
124                768: {
125                    items: slide_count
126                },
127                0: {
128                    items: 1,
129                    center: false,
130                    nav: false,
131                    dots: false
132
133                },
134                480: {
135                    items: 1,
136                    center: false,
137                    nav: false,
138                    dots: false
139
140                },
141                481: {
142                    items: 2,
143                    center: false,
144                    nav: false,
145                    dots: false
146
147                },
148                740: {
149                    items: 2,
150                    center: false,
151                    nav: false,
152                    dots: false
153
154                }
155
156            }
157
158
159        });
160    });
161
162
163
164    /*
165     * Tooltip
166     */
167     var smls_tool = {};
168     $('.smls-tooltip').each(function() {
169        var id = $(this).data('id');
170        var tool_content = $(this).data('tooltip-content');
171        var tool_template = $(this).data('template');
172        var tool_position = $(this).data('position');
173        var animation = $(this).data('animation');
174        var duration = $(this).data('duration');
175        if(tool_content != '') {
176            smls_tool.id = $(this).tooltipster({
177                content: tool_content,
178                animation: animation,
179                animationDuration: duration,
180                position: tool_position, // display the tips to the right of the element
181                theme: ['tooltipster-noir', 'smls-tooltip-' + tool_template + '']
182            });
183        }
184    });
185
186     /*
187     $('.smls-open').click(() => {
188        $('.smls-overlay-contact-info, .popup-content').addClass('active');
189    });
190
191
192     $('.smls-close').click(() => {
193        $('.smls-overlay-contact-info, .popup-content').removeClass('active');
194    });
195
196     $('.smls-close').click(() => {
197        $('.smls-popup-open').removeClass('inactive');
198    });
199
200     $('.smls-open').click(() => {
201        $('.smls-popup-open').addClass('inactive');
202    });
203    */
204    //added codes for open and close
205    $('body').on('click','.smls-open',function(){
206        var myiD = $(this).attr('data-contact-id');
207        $('.smls-overlay-contact-info').removeClass('active');
208        $('#contact-'+myiD+' .smls-overlay-contact-info').addClass('active');
209    });
210    $('body').on('click','.smls-close',function(){
211        $('.smls-overlay-contact-info').removeClass('active');
212    });
213    
214
215});
216

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.