PageSourceSearch

https://www.tischler.berlin/typo3conf/ext/data_search/Resources/Public/Js/datasearch.js?1694753489

js tischler.berlin collected 2026-10-09 00:35:29 UTC 6,097 bytes, 148 lines download raw bytes

1(function () {
2
3     //$(window).on("load",function(){
4     //	setTimeout(function(){
5	// if(!$('#map-canvas').children().hasClass("gm-style")){
6	//	$("#map-canvas").css({'background-color':'#e8eaed', 'padding':'20px', 'flex-direction':'column'});
7	//        $("#map-canvas").append("<h3 style='font-size:20px; width:85%; background-color:#e8eaed; position:absolute;'>Die Google Maps Einbindung wurde deaktiviert, da keine Einwilligung f&uuml;r die ben&ouml;tigte Richtlinie erteilt wurde. Um die Anzeige zu aktivieren, akzeptieren Sie bitte den Google Maps Cookie &uuml;ber den Cookie Consent Manager.</h3>").css({'color':'#444444', 'display':'flex', 'justify-content':'center', 'align-items':'center' });
8         // }
9// }, 400);
10//setTimeout(function(){
11
12//	if($('#map-canvas').find(".gm-style").length){
13//		$('#map-canvas h3').remove();
14//	}
15//},400);
16//	});
17
18    if(CCM.fullConsentGiven == false){
19	$("#map-canvas").css({'background-color':'#e8eaed', 'padding':'20px', 'flex-direction':'column'});
20	$("#map-canvas").append("<h3 style='font-size:20px; width:85%; background-color:#e8eaed; position:absolute;'>Die Google Maps Einbindung wurde deaktiviert, da keine Einwilligung f&uuml;r die ben&ouml;tigte Richtlinie erteilt wurde. Um die Anzeige zu aktivieren, akzeptieren Sie bitte den Google Maps Cookie &uuml;ber den Cookie Consent Manager.</h3>").css({'color':'#444444', 'display':'flex', 'justify-content':'center', 'align-items':'center' });
21     }
22    
23	
24    // hide-show detail product services 
25    $(".detailservices").hide();
26    $(".desktop").show();
27    $(".detailsearch_link a").click(function(){
28        $(".detailservices").toggle();
29        var icon = $(".detailtext .icon").find("i");
30        if(icon.hasClass("fa-caret-right")){
31          icon.addClass("fa-caret-down").removeClass("fa-caret-right");
32          // Google Map Resize
33          $('#map-canvas').css({'width':'100%','height':'770'});
34          google.maps.event.trigger(map, 'resize'); 
35        }else{
36          icon.addClass("fa-caret-right").removeClass("fa-caret-down");
37          // Google Map Resize
38           $('#map-canvas').css({'width':'100%','height':'320'});
39          google.maps.event.trigger(map, 'resize');
40        }
41    });
42
43    $(".detailtext .icon i").click(function(){
44        $(".detailservices").toggle();
45        var icon = $(".detailtext .icon").find("i");
46        if(icon.hasClass("fa-caret-right")){
47          icon.addClass("fa-caret-down").removeClass("fa-caret-right");
48          // Google Map Resize
49          if($(window).width()>1200) $('#map-canvas').css({'width':'100%','height':'770'});
50          google.maps.event.trigger(map, 'resize');  
51        }else{
52          icon.addClass("fa-caret-right").removeClass("fa-caret-down");
53          // Google Map Resize
54          $('#map-canvas').css({'width':'100%','height':'320'});
55          google.maps.event.trigger(map, 'resize');
56        }
57    });
58
59    if($(".detailservices input[type=checkbox]").is(":checked")){
60        if($(window).width()>1200) $(".detailservices").show();
61        var icon = $(".detailtext .icon").find("i");
62        if(icon.hasClass("fa-caret-right")){
63          icon.addClass("fa-caret-down").removeClass("fa-caret-right");
64          // Google Map Resize
65          if($(window).width()>1200) $('#map-canvas').css({'width':'100%','height':'770'});
66          google.maps.event.trigger(map, 'resize');  
67        }else{
68          icon.addClass("fa-caret-right").removeClass("fa-caret-down");
69          // Google Map Resize
70          $('#map-canvas').css({'width':'100%','height':'320'});
71          google.maps.event.trigger(map, 'resize');
72        }
73    }
74    else{
75        if($(window).width()<1200) $(".detailservices").hide();   
76    }
77
78    // Data search pagination
79    var items_count = $(".searchdata .search_list").length;
80    if(items_count >= 15){
81      $('.pagination-page .pagination-result').show();
82    }
83    else{
84      $('.pagination-page .pagination-result').hide();
85      //$('.search_address').css("margin-bottom", "70px");
86    }
87
88    var items = $(".searchdata .search_list");
89    var numItems = items.length;
90    var perPage = 15;
91
92    // Only show the first 2 (or first `per_page`) items initially.
93    items.slice(perPage).hide();
94
95    // Now setup the pagination using the `.pagination-page` div.
96    $(".pagination-page .pagination-result").pagination({
97        items: numItems,
98        itemsOnPage: perPage,
99        prevText: "<",
100        nextText: ">",
101
102        // This is the actual page changing functionality.
103        onPageClick: function(pageNumber) {
104            // We need to show and hide `tr`s appropriately.
105            var showFrom = perPage * (pageNumber - 1);
106            var showTo = showFrom + perPage;
107
108            // We'll first hide everything...
109            items.hide()
110                 // ... and then only show the appropriate rows.
111                 .slice(showFrom, showTo).show();
112                 return false;
113        }
114    });
115
116		//console.log($('.search_result_list').length+"/"+$(".footer-left").length);
117    if ($('.search_result_list').length > 0 && $(".footer-left").length > 0){
118        $('html, body').animate({
119            scrollTop: $("#map-canvas").offset().top
120        }, 20);
121    }
122   
123    if ($('.no-result-list').length > 0){
124        $('html, body').animate({
125            scrollTop: $("#footer").offset().top
126        }, 20);
127    }
128
129    // Umkreis KM range
130    var slider = document.getElementById("perimeter");
131    var output = document.getElementById("demo");
132    output.innerHTML = slider.value;
133
134    slider.onmousemove = function() {
135        output.innerHTML = this.value;
136        $('#searchperimeter').val(this.value);
137    }
138    slider.ontouchmove = function() {
139        output.innerHTML = this.value;
140        $('#searchperimeter').val(this.value);
141    }
142    slider.onclick = function() {
143        output.innerHTML = this.value;
144        $('#searchperimeter').val(this.value);
145    }
146
147}());
148

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.