PageSourceSearch

https://dsb.gv.at/engine/js/functions.js

js dsb.gv.at collected 2026-09-24 07:18:05 UTC 4,868 bytes, 174 lines download raw bytes

1( function( $ ) {
2        $( '.swipebox' ).swipebox({
3            useCSS : true,
4            useSVG : true,
5            initialIndexOnArray : 0,
6            hideCloseButtonOnMobile : false,
7            removeBarsOnMobile : true,
8            hideBarsDelay : 3000,
9            videoMaxWidth : 1140,
10            beforeOpen: function() {},
11            afterOpen: null,
12            afterClose: function() {},
13            loopAtEnd: false
14        });
15    } )( jQuery );
16
17    // AOS Animation Framework
18    // AOS.init({
19    //    easing: 'ease-in-out-sine'
20    //});
21
22    $("[data-fancybox]").fancybox({
23        speed : 330,
24        loop : false,
25        opacity : 'auto',
26        margin : [0, 0],
27        gutter : 30,
28        infobar : false,
29        toolbar : false,
30        slideShow  : false,
31        fullScreen : false,
32        thumbs     : false,
33        closeBtn   : false,
34        focus      : false,
35        smallBtn : 'ajax',
36        clickOutside : false,
37        dblclickOutside: "close",
38        touch : false,
39        keyboard : false,
40        beforeClose: function( instance, slide) {
41            $(this).disposeVideo();
42        }
43    });
44    
45    $(document).ready(function() {
46        $(".flexslider").css("height","700");
47        sliderHeight();
48    });
49
50    $(window).load(function() {
51        sliderHeight();
52    });
53
54    $(window).resize(function() {
55        sliderHeight();
56    });
57
58function sliderHeight() {
59			var maxHeight = 0;
60			$(".flexslider").css("height", "auto");
61		}
62
63//function sliderHeight() {
64//    var maxHeight = 0;
65//    $(".flexslider").each(function() {
66//        var height = $(this).height();
67//        if (height > maxHeight) {
68//            maxHeight = height;
69//        }
70//    });
71//}
72
73 	// Flexslider Boxed
74	$(window).load(function() {
75		$('.flexslider').flexslider({
76			animation: "slide",
77			animationLoop: true,
78			slideshow: true,
79			slideshowSpeed: 10000,
80			animationSpeed: 600,
81			randomize: false
82		});
83		
84		$('.flexslider_bg').flexslider({
85			animation: "fade",
86			animationLoop: true,
87			slideshow: true,
88			slideshowSpeed: 7000,
89			animationSpeed: 600,
90			controlNav: false,
91			randomize: false
92		});
93	});
94
95    $(document).ready(function(){
96        $('.row_logos .owl-carousel').owlCarousel({
97            loop: true,
98            autoplay: true,
99            margin: 5,
100            dots: true,
101            rtl: false,
102            nav: false,
103            items: 5,
104            autoplaySpeed: 750,
105            slideBy: 1,
106            autoplayTimeout: 3000,
107            responsiveClass: true,
108            responsive: {
109                0: { items: 1 },
110                600: { items: 3 },
111                1000: { items: 5 }
112            }
113        });
114
115        $('.loop').owlCarousel({
116            autoplay: true,
117            autoplaySpeed: 700,
118            center: true,
119            loop: true,
120            margin: 5,
121            autoWidth: true,
122            lazyLoad: true,
123            dots: false,
124            nav: false,
125            navText: ["<i class='fa fa-chevron-left'></i>","<i class='fa fa-chevron-right'></i>"],
126            responsive: {
127                600: { items: 6 }
128            }
129        });
130
131        $('.counter').counterUp({
132            delay: 10,
133            time: 2000
134        });
135    });
136
137
138// Accordion
139	var acc = document.getElementsByClassName("accor");
140	var i; var y;
141	for (i = 0; i < acc.length; i++) {
142	   acc[i].onclick = function(){
143		   for (y = 0; y<acc.length; y++){
144			 if(this != acc[y]){
145				acc[y].classList.remove("active");
146				acc[y].nextElementSibling.classList.remove("show");
147			 }
148		   }
149		   this.classList.toggle("active");
150		   this.nextElementSibling.classList.toggle("show");
151	 }
152	}
153	
154	
155function warenkorb_aktualisieren(){
156		
157		var gesamtpreis = "0.00";
158		var formelement_products_value = document.getElementById('product_elements').value;
159		let formelement_products = formelement_products_value.split(",");
160		let formelement_products_length = formelement_products.length - 1;
161		
162		for (let i = 0; i < formelement_products_length; i++) {
163			var formelement_id = formelement_products[i];
164			var formelement_price =  document.getElementById('preis'+formelement_id).value;
165			var formelement_units = document.getElementById('units'+formelement_id).value;
166			var gesamtpreis = parseFloat(gesamtpreis) + (formelement_price * formelement_units);
167			var versandkosten = parseFloat(document.getElementById('versandkosten').value);
168			var kostenloser_versand_ab = parseFloat(document.getElementById('kostenloser_versand_ab').value);
169			
170			document.getElementById('warenkorb_anzeige').innerHTML = gesamtpreis.toFixed(2);
171			document.getElementById('warenkorb_value').value = gesamtpreis.toFixed(2);			
172		}	
173	}
174

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.