403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/travnet.co.in/public/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/travnet.co.in/public/js/map_hotels.js
$('#collapseMap').on('shown.bs.collapse', function(e){
	(function(A) {

	if (!Array.prototype.forEach)
		A.forEach = A.forEach || function(action, that) {
			for (var i = 0, l = this.length; i < l; i++)
				if (i in this)
					action.call(that, this[i], i, this);
			};

		})(Array.prototype);

		var
		mapObject,
		markers = [],
		markersData = {
			'Marker': [
			{
				type_point: 'Paris Centre',
				name: 'Park Hyatt Paris',
				location_latitude: 48.865633, 
				location_longitude: 2.321236,
				map_image_url: 'images/thumb_map_single_hotel.jpg',
				rate: 'Superb | 7.5',
				name_point: 'Park Hyatt Paris',
				get_directions_start_address: '',
				phone: '+3934245255',
				url_point: 'hotel-detail.html'
			},
			{
				type_point: 'Paris Centre',
				name: 'Hotel Mariott',
				location_latitude: 48.854183,
				location_longitude: 2.354808,
				map_image_url: 'images/thumb_map_single_hotel.jpg',
				rate: 'Superb | 7.5',
				name_point: 'Hotel Mariott',
				get_directions_start_address: '',
				phone: '+3934245255',
				url_point: 'hotel-detail.html'
			},
			{
				type_point: 'Paris Centre',
				name: 'Hotel Lumiere',
				location_latitude: 48.863893, 
				location_longitude: 2.342348,
				map_image_url: 'images/thumb_map_single_hotel.jpg',
				rate: 'Superb | 7.5',
				name_point: 'Hotel Lumiere',
				get_directions_start_address: '',
				phone: '+3934245255',
				url_point: 'hotel-detail.html'
			},
			{
				type_point: 'Paris Centre',
				name: 'Hotel Place Concorde',
				location_latitude: 48.860642,
				location_longitude: 2.352245,
				map_image_url: 'images/thumb_map_single_hotel.jpg',
				rate: 'Superb | 7.5',
				name_point: 'Hotel Place Concorde',
				get_directions_start_address: '',
				phone: '+3934245255',
				url_point: 'hotel-detail.html'
			},
			{
				type_point: 'Paris Centre',
				name: 'Hotel Name',
				location_latitude: 48.858370, 
				location_longitude: 2.294481,
				map_image_url: 'images/thumb_map_single_hotel.jpg',
				rate: 'Superb | 7.5',
				name_point: 'Hotel Name',
				get_directions_start_address: '',
				phone: '+3934245255',
				url_point: 'hotel-detail.html'
			},
			{
				type_point: 'Paris Centre',
				name: 'Hotel Name',
				location_latitude: 48.837273,
				location_longitude: 2.335387,
				map_image_url: 'images/thumb_map_single_hotel.jpg',
				rate: 'Superb | 7.5',
				name_point: 'Hotel Name',
				get_directions_start_address: '',
				phone: '+3934245255',
				url_point: 'hotel-detail.html'
			},
			{
				type_point: 'Paris Centre',
				name: 'Hotel Name',
				location_latitude: 48.860819, 
				location_longitude: 2.354507,
				map_image_url: 'images/thumb_map_single_hotel.jpg',
				rate: 'Superb | 7.5',
				name_point: 'Hotel Name',
				get_directions_start_address: '',
				phone: '+3934245255',
				url_point: 'hotel-detail.html'
			},
			{
				type_point: 'Paris Centre',
				name: 'Hotel Name',
				location_latitude: 48.853798,
				location_longitude: 2.333328,
				map_image_url: 'images/thumb_map_single_hotel.jpg',
				rate: 'Superb | 7.5',
				name_point: 'Hotel Name',
				get_directions_start_address: '',
				phone: '+3934245255',
				url_point: 'hotel-detail.html'
			},
			{
				type_point: 'Paris Centre',
				name: 'Hotel Name',
				location_latitude: 48.862880, 
				location_longitude: 2.287205,
				map_image_url: 'images/thumb_map_single_hotel.jpg',
				rate: 'Superb | 7.5',
				name_point: 'Hotel Name',
				get_directions_start_address: '',
				phone: '+3934245255',
				url_point: 'hotel-detail.html'
			},
			{
				type_point: 'Paris Centre',
				name: 'Hotel Name',
				location_latitude: 48.865784,
				location_longitude: 2.307314,
				map_image_url: 'images/thumb_map_single_hotel.jpg',
				rate: 'Superb | 7.5',
				name_point: 'Hotel Name',
				get_directions_start_address: '',
				phone: '+3934245255',
				url_point: 'hotel-detail.html'
			},
			{
				type_point: 'Paris Centre',
				name: 'Hotel Name',
				location_latitude: 48.852729, 
				location_longitude: 2.350564,
				map_image_url: 'images/thumb_map_single_hotel.jpg',
				rate: 'Superb | 7.5',
				name_point: 'Hotel Name',
				get_directions_start_address: '',
				phone: '+3934245255',
				url_point: 'hotel-detail.html'
			},
			{
				type_point: 'Paris Centre',
				name: 'Hotel Name',
				location_latitude: 48.870587, 
				location_longitude: 2.318943,
				map_image_url: 'images/thumb_map_single_hotel.jpg',
				rate: 'Superb | 7.5',
				name_point: 'Hotel Name',
				get_directions_start_address: '',
				phone: '+3934245255',
				url_point: 'hotel-detail.html'
			}
			]

		};

			var mapOptions = {
				zoom: 14,
				center: new google.maps.LatLng(48.865633, 2.321236),
				mapTypeId: google.maps.MapTypeId.ROADMAP,

				mapTypeControl: false,
				mapTypeControlOptions: {
					style: google.maps.MapTypeControlStyle.DROPDOWN_MENU,
					position: google.maps.ControlPosition.LEFT_CENTER
				},
				panControl: false,
				panControlOptions: {
					position: google.maps.ControlPosition.TOP_RIGHT
				},
				zoomControl: true,
				zoomControlOptions: {
					style: google.maps.ZoomControlStyle.LARGE,
					position: google.maps.ControlPosition.TOP_LEFT
				},
				scrollwheel: false,
				scaleControl: false,
				scaleControlOptions: {
					position: google.maps.ControlPosition.TOP_LEFT
				},
				streetViewControl: true,
				streetViewControlOptions: {
					position: google.maps.ControlPosition.LEFT_TOP
				},
				styles: [
					{
						"featureType": "administrative.country",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "off"
							}
						]
					},
					{
						"featureType": "administrative.province",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "off"
							}
						]
					},
					{
						"featureType": "administrative.locality",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "off"
							}
						]
					},
					{
						"featureType": "administrative.neighborhood",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "off"
							}
						]
					},
					{
						"featureType": "administrative.land_parcel",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "off"
							}
						]
					},
					{
						"featureType": "landscape.man_made",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "simplified"
							}
						]
					},
					{
						"featureType": "landscape.natural.landcover",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "on"
							}
						]
					},
					{
						"featureType": "landscape.natural.terrain",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "off"
							}
						]
					},
					{
						"featureType": "poi.attraction",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "off"
							}
						]
					},
					{
						"featureType": "poi.business",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "off"
							}
						]
					},
					{
						"featureType": "poi.government",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "off"
							}
						]
					},
					{
						"featureType": "poi.medical",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "off"
							}
						]
					},
					{
						"featureType": "poi.park",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "on"
							}
						]
					},
					{
						"featureType": "poi.park",
						"elementType": "labels",
						"stylers": [
							{
								"visibility": "off"
							}
						]
					},
					{
						"featureType": "poi.place_of_worship",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "off"
							}
						]
					},
					{
						"featureType": "poi.school",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "off"
							}
						]
					},
					{
						"featureType": "poi.sports_complex",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "off"
							}
						]
					},
					{
						"featureType": "road.highway",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "off"
							}
						]
					},
					{
						"featureType": "road.highway",
						"elementType": "labels",
						"stylers": [
							{
								"visibility": "off"
							}
						]
					},
					{
						"featureType": "road.highway.controlled_access",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "off"
							}
						]
					},
					{
						"featureType": "road.arterial",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "simplified"
							}
						]
					},
					{
						"featureType": "road.local",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "simplified"
							}
						]
					},
					{
						"featureType": "transit.line",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "off"
							}
						]
					},
					{
						"featureType": "transit.station.airport",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "off"
							}
						]
					},
					{
						"featureType": "transit.station.bus",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "off"
							}
						]
					},
					{
						"featureType": "transit.station.rail",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "off"
							}
						]
					},
					{
						"featureType": "water",
						"elementType": "all",
						"stylers": [
							{
								"visibility": "on"
							}
						]
					},
					{
						"featureType": "water",
						"elementType": "labels",
						"stylers": [
							{
								"visibility": "off"
							}
						]
					}
				]
			};
			var
			marker;
			mapObject = new google.maps.Map(document.getElementById('map'), mapOptions);
			for (var key in markersData)
				markersData[key].forEach(function (item) {
					marker = new google.maps.Marker({
						position: new google.maps.LatLng(item.location_latitude, item.location_longitude),
						map: mapObject,
						icon: 'images/pins/' + key + '.png',
					});

					if ('undefined' === typeof markers[key])
						markers[key] = [];
					markers[key].push(marker);
					google.maps.event.addListener(marker, 'click', (function () {
				  closeInfoBox();
				  getInfoBox(item).open(mapObject, this);
				  mapObject.setCenter(new google.maps.LatLng(item.location_latitude, item.location_longitude));
				 }));

	});
	
		function hideAllMarkers () {
			for (var key in markers)
				markers[key].forEach(function (marker) {
					marker.setMap(null);
				});
		};

		function closeInfoBox() {
			$('div.infoBox').remove();
		};

		function getInfoBox(item) {
			return new InfoBox({
				content:
				'<div class="marker_info" id="marker_info">' +
				'<img src="' + item.map_image_url + '" alt=""/>' +
				'<span>'+ 
					'<span class="infobox_rate">'+ item.rate +'</span>' +
					'<h3>'+ item.name_point +'</h3>' +
				'<em>'+ item.type_point +'</em>' +
				'<strong>'+ item.description_point +'</strong>' +
				'<a href="'+ item.url_point + '" class="btn_infobox_detail"></a>' +
				'<form action="http://maps.google.com/maps" method="get" target="_blank"><input name="saddr" value="'+ item.get_directions_start_address +'" type="hidden"><input type="hidden" name="daddr" value="'+ item.location_latitude +',' +item.location_longitude +'"><button type="submit" value="Get directions" class="btn_infobox_get_directions">Get directions</button></form>' +
					'<a href="tel://'+ item.phone +'" class="btn_infobox_phone">'+ item.phone +'</a>' +
					'</span>' +
				'</div>',
				disableAutoPan: false,
				maxWidth: 0,
				pixelOffset: new google.maps.Size(10, 92),
				closeBoxMargin: '',
				closeBoxURL: "images/close_infobox.png",
				isHidden: false,
				alignBottom: true,
				pane: 'floatPane',
				enableEventPropagation: true
			});


		};

    });

Youez - 2016 - github.com/yon3zu
LinuXploit