PageSourceSearch

https://www.museedutour.ch/wp-content/themes/nouveau/js/default_dynamic.js?ver=1788782003

js museedutour.ch collected 2026-10-02 21:45:10 UTC 4,417 bytes, 155 lines download raw bytes

1
2
3	    function ajaxSubmitCommentForm(){
4	    "use strict";
5
6	    var options = {
7	    success: function(){
8	    $j("#commentform textarea").val("");
9	    $j("#commentform .success p").text("Comment has been sent!");
10	    }
11	    };
12
13	    $j('#commentform').submit(function() {
14	    $j(this).find('input[type="submit"]').next('.success').remove();
15	    $j(this).find('input[type="submit"]').after('<div class="success"><p></p></div>');
16	    $j(this).ajaxSubmit(options);
17	    return false;
18	    });
19	    }
20
21	    var loading_text;
22	    loading_text = 'Loading new posts...';
23	    var finished_text;
24	    finished_text = 'No more posts';
25
26	    var header_height = 85;
27	    var min_header_height_scroll = 60;
28	    var min_header_height_sticky = 60;
29	    var scroll_amount_for_sticky = 60;
30	    var content_line_height = 45; //this is  line height when content menu is fixed
31	    var add_for_admin_bar = jQuery('body').hasClass('admin-bar') ? 32 : 0;
32										
33	    var logo_height = 75; // theme16 logo height
34	    var logo_width = 148; // theme16 logo width
35		
36					logo_height = 134;
37					logo_width = 308;
38
39									    header_top_height = 0;
40			
41		
42		    var geocoder;
43		    var map;
44
45		    function initialize() {
46		    "use strict";
47		    // Create an array of styles.
48					    var mapStyles = [
49		    {
50		    stylers: [
51		    {hue: "#515f70" },
52		    {saturation: -100},
53		    {lightness: 0},
54		    {gamma: 1}
55		    ]
56		    }
57		    ];
58		    var qodeMapType = new google.maps.StyledMapType(mapStyles,
59		    {name: "Qode Map"});
60
61		    geocoder = new google.maps.Geocoder();
62		    var latlng = new google.maps.LatLng(-34.397, 150.644);
63		    var myOptions = {
64					    zoom: 12,
65						    scrollwheel: false,
66					    center: latlng,
67		    zoomControl: true,
68		    zoomControlOptions: {
69		    style: google.maps.ZoomControlStyle.SMALL,
70		    position: google.maps.ControlPosition.RIGHT_CENTER
71		    },
72		    scaleControl: false,
73		    scaleControlOptions: {
74		    position: google.maps.ControlPosition.LEFT_CENTER
75		    },
76		    streetViewControl: false,
77		    streetViewControlOptions: {
78		    position: google.maps.ControlPosition.LEFT_CENTER
79		    },
80		    panControl: false,
81		    panControlOptions: {
82		    position: google.maps.ControlPosition.LEFT_CENTER
83		    },
84		    mapTypeControl: false,
85		    mapTypeControlOptions: {
86		    mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'qode_style'],
87		    style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
88		    position: google.maps.ControlPosition.LEFT_CENTER
89		    },
90									    mapTypeId: 'qode_style'
91					    };
92		    map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
93						    map.mapTypes.set('qode_style', qodeMapType);
94					    }
95
96		    function codeAddress(data) {
97		    "use strict";
98
99		    if (data === '')
100		    return;
101
102		    var contentString = '<div id="content">'+
103			    '<div id="siteNotice">'+
104				    '</div>'+
105			    '<div id="bodyContent">'+
106				    '<p>'+data+'</p>'+
107				    '</div>'+
108			    '</div>';
109		    var infowindow = new google.maps.InfoWindow({
110		    content: contentString
111		    });
112		    geocoder.geocode( { 'address': data}, function(results, status) {
113		    if (status === google.maps.GeocoderStatus.OK) {
114		    map.setCenter(results[0].geometry.location);
115		    var marker = new google.maps.Marker({
116		    map: map,
117		    position: results[0].geometry.location,
118						    icon:  'http://demo.select-themes.com/nouveau/wp-content/themes/nouveau/img/pin.png',
119					    title: data['store_title']
120		    });
121		    google.maps.event.addListener(marker, 'click', function() {
122		    infowindow.open(map,marker);
123		    });
124		    //infowindow.open(map,marker);
125		    }
126		    });
127		    }
128
129		    var $j = jQuery.noConflict();
130
131		    $j(document).ready(function() {
132		    "use strict";
133
134		    showContactMap();
135		    });
136			
137	    function showContactMap() {
138	    "use strict";
139
140	    if($j("#map_canvas").length > 0 && typeof google === 'object'){
141	    initialize();
142	    codeAddress("");
143	    codeAddress("");
144	    codeAddress("");
145	    codeAddress("");
146	    codeAddress("Musée du tour automatique et d&#039;histoire de moutier, Moutier, Suisse");
147	    }
148	    }
149
150	    var no_ajax_pages = [];
151	    var qode_root = 'https://www.museedutour.ch/';
152	    var theme_root = 'https://www.museedutour.ch/wp-content/themes/nouveau/';
153				    var header_style_admin = "light";
154									    no_ajax_pages.push('');
155				

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.