1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212
| <!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Untitled Page</title>
<meta name="keywords" content="JQuery
AJax
JavaScript
MySQL">
<meta name="author" content="Paul Przekowiak">
<style>
body
{
background-color: #FFFFFF;
color: #000000;
font-family: Arial;
font-weight: normal;
font-size: 13px;
line-height: 1.1875;
margin: 0;
padding: 0;
}
</style>
<link href="cupertino/jquery-ui.min.css" rel="stylesheet">
<style>
a
{
color: #0000FF;
text-decoration: underline;
}
a:visited
{
color: #800080;
}
a:active
{
color: #FF0000;
}
a:hover
{
color: #0000FF;
text-decoration: underline;
}
#wb_Form1
{
background-color: #87CEEB;
background-image: none;
border: 1px #CCCCCC solid;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
}
.ui-widget
{
font-size: 1em !important;
}
#jQueryTabs1
{
padding: 4px 4px 4px 4px;
}
#jQueryTabs1 .ui-tabs-nav
{
font-family: Arial;
font-weight: normal;
font-size: 13px;
padding: 4px 4px 0px 4px;
}
#jQueryTabs1 .ui-tabs-nav li
{
font-family: Arial;
font-weight: normal;
font-style: normal;
margin: 0px 2px -1px 0px;
}
#jQueryTabs1 .ui-tabs-nav li a
{
padding: 8px 10px 8px 10px;
}
#jQueryTabs1, #jQueryTabs1 .ui-corner-all, #jQueryTabs1 .ui-corner-top
{
-webkit-border-top-left-radius: 6px;
-moz-border-top-left-radius: 6px;
border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
-moz-border-top-right-radius: 6px;
border-top-right-radius: 6px;
}
#jQueryTabs1, #jQueryTabs1 .ui-corner-all, #jQueryTabs1 .ui-corner-bottom
{
-webkit-border-bottom-right-radius: 6px;
-moz-border-bottom-right-radius: 6px;
border-bottom-right-radius: 6px;
-webkit-border-bottom-left-radius: 6px;
-moz-border-bottom-left-radius: 6px;
border-bottom-left-radius: 6px;
}
#jQueryTabs1 .ui-helper-reset
{
line-height: 16px;
}
#wb_Text1
{
background-color: #0000FF;
background-image: none;
border: 0px #000000 solid;
padding: 0;
margin: 0;
text-align: center;
}
#wb_Text1 div
{
text-align: center;
}
</style>
<script src="jquery-1.11.3.min.js"></script>
<script src="jquery.ui.core.min.js"></script>
<script src="jquery.ui.widget.min.js"></script>
<script src="jquery.ui.mouse.min.js"></script>
<script src="jquery.ui.sortable.min.js"></script>
<script src="jquery.ui.tabs.min.js"></script>
<script>
$(document).ready(function()
{
var jQueryTabs1Options =
{
show: false,
event: 'click',
collapsible: false
};
$("#jQueryTabs1").tabs(jQueryTabs1Options);
$("#jQueryTabs1").on('tabsactivate', function(event, ui)
{
var index = $("#jQueryTabs1").tabs('option', 'active');
switch(index)
{
case 1:
GoogleMapInit();
break;
}
});
});
</script>
</head>
<body>
<div id="wb_Form1" style="position:absolute;left:49px;top:44px;width:919px;height:676px;z-index:6;">
<form name="Form1" method="post" action="mailto:yourname@yourdomain.com" enctype="text/plain" id="Form1">
<div id="jQueryTabs1" style="position:absolute;left:33px;top:64px;width:842px;height:563px;z-index:2;">
<ul>
<li><a href="#jquerytabs1-page-0"><span>Item 1</span></a></li>
<li><a href="#jquerytabs1-page-1"><span>Item 2</span></a></li>
</ul>
<div style="height:523px;overflow:auto;padding:0;" id="jquerytabs1-page-0">
<div id="wb_Text1" style="position:absolute;left:225px;top:188px;width:403px;height:196px;text-align:center;z-index:0;">
<span style="background-color:#0000FF;color:#FFFF00;font-family:Arial;font-size:43px;">Cliquer sur le deuxième onglet pour la démonstration</span></div>
</div>
<div style="height:523px;overflow:auto;padding:0;" id="jquerytabs1-page-1">
<div id="wb_JavaScript1" style="position:absolute;left:56px;top:77px;width:740px;height:419px;z-index:1;">
<div id="GoogleMaps" style="width:100%;height:100%;"></div>
<script type='text/javascript' src='http://maps.google.com/maps/api/js?sensor=false'></script>
<script>
var map;
var marker;
var geocoder;
function GoogleMapInit(id, latitude, longitude, address)
{ var id = "GoogleMaps";
var latitude = 40.7127837;
var longitude = -74.00594130000002;
var address = "New+York,NY";
var latlng = new google.maps.LatLng(latitude, longitude);
var latlngMarker = new google.maps.LatLng(latitude, longitude);
var mapOptions =
{
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP,
mapTypeControl: false,
streetViewControl: false,
zoom: 9,
zoomControl: true,
zoomControlOptions: { style: google.maps.ZoomControlStyle.SMALL }
}
element = document.getElementById(id);
map = new google.maps.Map(element, mapOptions);
marker = new google.maps.Marker({ draggable:true, map: map, position: latlngMarker});
geocoder = new google.maps.Geocoder();
geocoder.geocode({'address': address}, function(results, status)
{
if (status == google.maps.GeocoderStatus.OK)
{
map.setCenter(results[0].geometry.location);
var marker = new google.maps.Marker(
{
map: map,
position: results[0].geometry.location
});
}
else
{
// alert("Geocode was not successful: " + status);
}
});
}
GoogleMapInit();
</script>
</div>
</div>
</div>
</form>
</div>
</body>
</html> |