PageSourceSearch

https://58home.space/TheMaterialTheme/assets/js/materialKitDemo.js…KUqEvPmT-mb_SIGcJfyZ9NuqRvK_8H8GrlH35OWVLh0

js 58home.space collected 2026-09-29 00:45:09 UTC 9,838 bytes, 266 lines download raw bytes

1// JavaScript source code
2
3materialKitDemo = {
4    panorama: null,
5
6    initGoogleMap: function () {
7        var lats = $("#lat").val();
8        var lngs = $("#lng").val();
9        var mlss = $("#mls").val();
10        var prices = $("#price").val();
11
12        var arylats = new Array();
13        var arylngs = new Array();
14        var arymlss = new Array();
15        var aryprices = new Array();
16
17        arylats = lats.split(",");
18        arylngs = lngs.split(",");
19        arymlss = mlss.split(",");
20        aryprices = prices.split(",");
21
22        var mlsLatlng0 = { lat: parseFloat(arylats[0]), lng: parseFloat(arylngs[0]) };
23
24        var zoomNumber = 14;
25        if (arylats.length > 2) {
26            zoomNumber = 10;
27        }
28
29        var map = new google.maps.Map(
30            document.getElementById('googleMap'),
31            {
32                zoom: zoomNumber,
33                center: mlsLatlng0,
34                gestureHandling: 'cooperative',
35                streetViewControl: false
36            });
37
38        for (i in arylats) {
39            var mlsLatlng = { lat: parseFloat(arylats[i]), lng: parseFloat(arylngs[i]) };
40            var price = parseInt(aryprices[i]);
41            var label = "";
42            if (price > 0) {
43                label = "$" + price;
44            }
45            
46            var marker = new google.maps.Marker({ position: mlsLatlng, map: map, title: arymlss[i], label: label });
47            break;  //only call google map 1 time for less charge
48            
49            
50        }
51
52        
53
54        if (arylats.length === 1) {
55            panorama = map.getStreetView();
56            panorama.setPosition(mlsLatlng0);
57            panorama.setPov(({
58                heading: 180,
59                pitch: 0
60            }));
61        }
62
63
64    },
65
66    toggleStreetView : function() {
67        var toggle = panorama.getVisible();
68        if (toggle === false) {
69            panorama.setVisible(true);
70        } else {
71            panorama.setVisible(false);
72        }
73    },
74
75    //initGoogleMap: function () {
76    //    var lat = $("#lat").val();
77    //    var lng = $("#lng").val();
78    //    var mls = $("#mls").val();
79    //    var price = $("#price").val();
80
81       
82
83    //    var arylats = new Array();
84    //    var arylngs = new Array();
85    //    var arymlss = new Array();
86    //    var aryprices = new Array();
87
88    //    arylats = lat.split(",");
89    //    arylngs = lng.split(",");
90    //    arymlss = mls.split(",");
91    //    aryprices = price.split(",");
92       
93        
94    //    var mlsLatlng = { lat: parseFloat(lat), lng: parseFloat(lng) };
95        
96    //    var map = new google.maps.Map(
97    //        document.getElementById('googleMap'),
98    //        { zoom: 14, center: mlsLatlng, gestureHandling: 'cooperative' });
99
100        
101
102    //    var marker = new google.maps.Marker({ position: mlsLatlng, map: map, title: "$" + price + "," + mls, label: "$" + price });
103        
104    //},
105
106    initContactUsMap: function () {
107        var myLatlng = new google.maps.LatLng(44.433530, 26.093928);
108        var mapOptions = {
109            zoom: 14,
110            center: myLatlng,
111            styles:
112                [{ "featureType": "water", "stylers": [{ "saturation": 43 }, { "lightness": -11 }, { "hue": "#0088ff" }] }, { "featureType": "road", "elementType": "geometry.fill", "stylers": [{ "hue": "#ff0000" }, { "saturation": -100 }, { "lightness": 99 }] }, { "featureType": "road", "elementType": "geometry.stroke", "stylers": [{ "color": "#808080" }, { "lightness": 54 }] }, { "featureType": "landscape.man_made", "elementType": "geometry.fill", "stylers": [{ "color": "#ece2d9" }] }, { "featureType": "poi.park", "elementType": "geometry.fill", "stylers": [{ "color": "#ccdca1" }] }, { "featureType": "road", "elementType": "labels.text.fill", "stylers": [{ "color": "#767676" }] }, { "featureType": "road", "elementType": "labels.text.stroke", "stylers": [{ "color": "#ffffff" }] }, { "featureType": "poi", "stylers": [{ "visibility": "off" }] }, { "featureType": "landscape.natural", "elementType": "geometry.fill", "stylers": [{ "visibility": "on" }, { "color": "#b8cb93" }] }, { "featureType": "poi.park", "stylers": [{ "visibility": "on" }] }, { "featureType": "poi.sports_complex", "stylers": [{ "visibility": "on" }] }, { "featureType": "poi.medical", "stylers": [{ "visibility": "on" }] }, { "featureType": "poi.business", "stylers": [{ "visibility": "simplified" }
112] }],
113            scrollwheel: false, //we disable de scroll over the map, it is a really annoing when you scroll through page
114        };
115        var map = new google.maps.Map(document.getElementById("contactUsMap"), mapOptions);
116
117        var marker = new google.maps.Marker({
118            position: myLatlng,
119            title: "Hello World!"
120        });
121        marker.setMap(map);
122    },
123
124    initContactUs2Map: function () {
125        var lat = 44.433530;
126        var long = 26.093928;
127
128        var centerLong = long - 0.025;
129
130        var myLatlng = new google.maps.LatLng(lat, long);
131        var centerPosition = new google.maps.LatLng(lat, centerLong);
132
133        var mapOptions = {
134            zoom: 14,
135            center: centerPosition,
136            styles:
137                [{ "featureType": "water", "stylers": [{ "saturation": 43 }, { "lightness": -11 }, { "hue": "#0088ff" }] }, { "featureType": "road", "elementType": "geometry.fill", "stylers": [{ "hue": "#ff0000" }, { "saturation": -100 }, { "lightness": 99 }] }, { "featureType": "road", "elementType": "geometry.stroke", "stylers": [{ "color": "#808080" }, { "lightness": 54 }] }, { "featureType": "landscape.man_made", "elementType": "geometry.fill", "stylers": [{ "color": "#ece2d9" }] }, { "featureType": "poi.park", "elementType": "geometry.fill", "stylers": [{ "color": "#ccdca1" }] }, { "featureType": "road", "elementType": "labels.text.fill", "stylers": [{ "color": "#767676" }] }, { "featureType": "road", "elementType": "labels.text.stroke", "stylers": [{ "color": "#ffffff" }] }, { "featureType": "poi", "stylers": [{ "visibility": "off" }] }, { "featureType": "landscape.natural", "elementType": "geometry.fill", "stylers": [{ "visibility": "on" }, { "color": "#b8cb93" }] }, { "featureType": "poi.park", "stylers": [{ "visibility": "on" }] }, { "featureType": "poi.sports_complex", "stylers": [{ "visibility": "on" }] }, { "featureType": "poi.medical", "stylers": [{ "visibility": "on" }] }, { "featureType": "poi.business", "stylers": [{ "visibility": "simplified" }] }],
138            scrollwheel: false //we disable de scroll over the map, it is a really annoing when you scroll through page
139        };
140        var map = new google.maps.Map(document.getElementById("contactUs2Map"), mapOptions);
141
142        var marker = new google.maps.Marker({
143            position: myLatlng,
144            title: "Hello World!"
145        });
146        marker.setMap(map);
147    },
148
149    presentationAnimations: function () {
150        $(function () {
151
152            var $window = $(window),
153                isTouch = Modernizr.touch;
154
155            if (isTouch) { $('.add-animation').addClass('animated'); }
156
157            $window.on('scroll', revealAnimation);
158
159            function revealAnimation() {
160                // Showed...
161                $(".add-animation:not(.animated)").each(function () {
162                    var $this = $(this),
163                        offsetTop = $this.offset().top,
164                        scrolled = $window.scrollTop(),
165                        win_height_padded = $window.height();
166                    if (scrolled + win_height_padded > offsetTop) {
167                        $this.addClass('animated');
168                    }
169                });
170                // Hidden...
171                $(".add-animation.animated").each(function (index) {
172                    var $this = $(this),
173                        offsetTop = $this.offset().top;
174                    scrolled = $window.scrollTop(),
175                        windowHeight = $window.height();
176
177                    win_height_padded = windowHeight * 0.8;
178                    if (scrolled + win_height_padded < offsetTop) {
179                        $(this).removeClass('animated');
180                    }
181                });
182            }
183
184            revealAnimation();
185        });
186
187    }
188};
189
190$('.image_cover').each(function () {
191    var imageWidth = $(this).find('img').width();
192    var imageheight = $(this).find('img').height();
193    if (imageWidth !== 0 && imageheight !== 0) {
194        if (imageWidth > imageheight) {
195            $(this).addClass('landscape');
196        } else {
197            $(this).addClass('potrait');
198        }
199    }
200    
201});
202
203//nav-link
204$(".menu-nav-link").click(function () {
205    event.preventDefault();
206    var anchorValue = $(this).attr("href");
207    location.href = anchorValue;
208
209    $(".navbar-toggler").click();
210    //location.href(anchorValue).reload()
211    //location.reload(true);
212    //window.location.href = anchorValue;
213    
214    
215    //location.replace(anchorValue);
216   
217    
218});
219
220function log(str) {
221    $('#result').text($('#result').text() + " " + str);
222}
223
224function inVokeData() {
225    if (typeof wxSharedData !== 'undefined') {
226        log("called invoke ..");
227        try {
228            invokeCSharpAction(wxSharedData);
229        } catch (err) {
230            log(err);
231        }
232
233    } else {
234        log("wxSharedData undefined");
235    }
236}
237function invokeCSharpAction(data) {
238    if (typeof window.webkit !== 'undefined') {
239        window.webkit.messageHandlers.invokeAction.postMessage(data);
240    } else {
241        if (typeof jsBridge !== 'undefined') {
242            jsBridge.invokeAction(data);
243        }
244    }
245}
246function initWinLoad() {
247    if (typeof invokeCSharpAction === 'undefined') {
248        log("Created a new function");
249        
250        inVokeData();
251
252    } else {
253        console.log("call inVokeData");
254        inVokeData();
255
256    }
257}
258
259
260
261
262
263
264
265
266

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.