bonjour à tous
j'ai testé mes codes sous internet explorer 11.0.14, sous mozilla firefox, sous google chrome ...
j'ai un problème sous IE, c'est qu'il ne m'affiche aucun texte dans l'article .
Je vous donne mes codes ci-après.
que dois-je modifier pour que cela fonctionne aussi sur IE ?
voici mes 6 codes :
index.html
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325 <!DOCTYPE html> <!--[if lt IE 7 ]> <html class="no-js ie6"> <![endif]--> <!--[if IE 7 ]> <html class="no-js ie7"> <![endif]--> <!--[if IE 8 ]> <html class="no-js ie8"> <![endif]--> <!--[if IE 9 ]> <html class="no-js ie9"> <![endif]--> <!--[if (gt IE 9)|!(IE)]><!--> <html lang="fr"> <!--<![endif]--> <head> <meta http-equiv="content-type" charset="UTF-8"> <title>xxx xxxxx Frères - Import Export</title> <link rel="stylesheet" type="text/css" href="css/20180107sitev0.css" /> <link rel="stylesheet" type="text/css" href="css/carte.css" /> <link rel="shortcut icon" type="image/png" href="favicon.png" /> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v1.0.3/leaflet.css"> <script src="http://cdn.leafletjs.com/leaflet/v1.0.3/leaflet.js"></script> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> </head> <body> <header> <figure id='mylogo'> <img src="img/logoforum.jpg" alt="logo"> </figure> <div id="titrePrincipal"> <h1><span class="maj">xxx xxxxx f</span>rères</h1> <span id="text"> <span class="maj">n</span>uméro de <span class="maj">t</span>éléphone : +33 (0)1 xx xx xx xx <br> <span class="maj">a</span>dresse <span class="maj">p</span>ostale : 49 rue xxxxx xxxxxxxx PARIS <br> <span class="maj">a</span>dresse <span class="maj">e</span>-mail : <a class="con" href="mailto:cvgtrtt.poiuer@wanadoo.fr">cvgtrtt.poiuer@wanadoo.fr</a></p> <br> </span> </div> <form class="formLang"> <label for="l" class="bold"><span class="maj">c</span>hoisissez votre langue / <span class="maj">c</span>hoose your language :</label> <select class="selLang" name="l"> <option class="fr" value="fr" label="true" selected="selected"><span class="maj">f</span>rançais</option> <option class="en" value="en"><span class="maj">e</span>nglish</option> </select> <div> <img style="position:absolute; right:0%;" src="img/FrenchFlag.jpg" alt="French Flag"> </div> </form> <nav> <div class="ent"><span class="maj">n</span>otre <span class="maj">e</span>ntreprise</div> <div class="pro"><span class="maj">n</span>os <span class="maj">p</span>roduits</div> <div class="cli"><span class="maj">n</span>otre <span class="maj">c</span>lientèle</div> <div class="mar"><span class="maj">n</span>os <span class="maj">m</span>archés</div> <div class="tem"><span class="maj">t</span>émoignages</div> </nav> </header> <section> <div id="main"> <div id="cadre_carte"> <div id="carte"></div> </div> </div> <article></article> </section> <footer> <q class="italic"><span class="maj"> s</span>ite <span class="maj">w</span>eb réalisé par <a href="mail to:site.super25@gmail.com "><span class="maj">y</span>opiuytr <span class="maj">hytresdr</span></a></q> </footer> <script type="text/javascript" src="js/20180107sitev0forum.js"></script> <script> var oMap; var animEnCours = false; var destination = { "paris" : { "libelle" : "Paris", "point" : L.latLng(48.85342, 2.3488), "zoom" : 3.5, }, "cameroun" : { "libelle" : "Cameroun", "point" : L.latLng(48.85342, 2.3488), "zoom" : 3.5, }, "comores" : { "libelle" : "Comores", "point" : L.latLng(-11.72, 43.25), "zoom" : 3.5, }, "ethiopie" : { "libelle" : "Ethiopie", "point" : L.latLng(8.9800, 38.7989), "zoom" : 3.5, }, "guadeloupe" : { "libelle" : "Guadeloupe", "point" : L.latLng(6.265, -61.551), "zoom" : 3.5, }, "guyane" : { "libelle" : "Guyane", "point" : L.latLng(4.144817,-52.8442), "zoom" : 3.5, }, "reunion" : { "libelle" : "La Réunion", "point" : L.latLng(-21.1151, 55.5363), "zoom" : 8, }, "madagascar" : { "libelle" : "Madagascar", "point" : L.latLng(-18.77, 46.9), "zoom" : 3.5, }, "martinique" : { "libelle" : "Martinique", "point" : L.latLng(14.64, -61.01669), "zoom" : 3.5, }, "maurice" : { "libelle" : "Maurice", "point" : L.latLng(14.64, -61.01669), "zoom" : 3.5, }, "mayotte" : { "libelle" : "Mayotte", "point" : L.latLng(-12.768,45.2286), "zoom" : 3.5, }, "tahiti" : { "libelle" : "Tahiti", "point" : L.latLng(-17.6509, -149.426), "zoom" : 3.5, }, //... }; // création des divIcon var oIconRed = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle circle-red"></div>' }); var oIconGreen = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle2 circle-green"></div>' }); var oIconOrange = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle2 circle-orange"></div>' }); var oIconBleu = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle2 circle-bleu"></div>' }); var oIconViolet = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle2 circle-violet"></div>' }); var oIconNoir = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle2 circle-noir"></div>' }); var oIconNoir1a = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle3 circle-noir"></div>' }); var oIconNoir1b = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle4 circle-noir1"></div>' }); // création des markers //paris var oMarkerRed = L.marker( [48.85342, 2.3488], {icon: oIconRed}); //cameroun var oMarkerNoir = L.marker( [5.76463, 11.75537], {icon: oIconNoir}); //comores var oMarkerNoir1 = L.marker( [-11.72, 43.25], {icon: oIconNoir}); //ethiopie var oMarkerNoir2 = L.marker( [8.9800, 38.7989], {icon: oIconNoir}); //guadeloupe var oMarkerNoir3 = L.marker( [16.265, -61.551], {icon: oIconNoir1b}); //guyane var oMarkerNoir4 = L.marker( [4.144817,-52.8442], {icon: oIconNoir}); //la réunion var oMarkerNoir5 = L.marker( [-21.1151, 55.5363], {icon: oIconNoir1a}); //madagascar var oMarkerNoir6 = L.marker( [-18.77, 46.9], {icon: oIconNoir}); //martinique var oMarkerNoir7 = L.marker( [14.64, -61.01669], {icon: oIconNoir}); //maurice var oMarkerNoir8 = L.marker( [-20.3484,57.5833], {icon: oIconNoir}); //mayotte var oMarkerNoir9 = L.marker( [-12.768,45.2286], {icon: oIconNoir1a}); //tahiti var oMarkerNoir10 = L.marker( [-17.6509, -149.426], {icon: oIconNoir}); // création de la carte var zoomInitial = 9; // ce que l'on modifie versus test5 9 au leu de 7 var zoomTravel = 3; oMap = L.map('carte', { zoomAnimationThreshold: 20, zoomControl: false, // voir <a href="http://leafletjs.com/reference-1.1.0.html#map-zoomcontrol" target="_blank">http://leafletjs.com/reference-1.1.0...ap-zoomcontrol</a> duration: 5, center: [ 0, 0 ], zoom: 1.1 }); oMap.addLayer( L.tileLayer( 'http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' } )); // place les marker rouge et vert sur destination et départ oMarkerRed.addTo(oMap); oMarkerNoir.addTo(oMap); oMarkerNoir1.addTo(oMap); oMarkerNoir2.addTo(oMap); oMarkerNoir3.addTo(oMap); oMarkerNoir4.addTo(oMap); oMarkerNoir5.addTo(oMap); oMarkerNoir6.addTo(oMap); oMarkerNoir7.addTo(oMap); oMarkerNoir8.addTo(oMap); oMarkerNoir9.addTo(oMap); oMarkerNoir10.addTo(oMap); // fonction sur click oMap oMap.on('click', function (e) { // affiche marker vert au click oMarkerGreen.setLatLng([e.latlng.lat, e.latlng.lng]).addTo(this); oMarkerGreen.on('click', function (e) { this.remove(oMap); }) }); function swapMarker(where){ // supprime marker rouge oMarkerRed.remove(oMap); // affiche marker vert oMarkerGreen.setLatLng(where).addTo(oMap); // autorise autre animation animEnCours = false; } function gotoDestination(where) { // si animation en cours on quitte if (animEnCours) { return; } animEnCours = true; var zoomCarte = oMap.getZoom(); // récupération point de départ var pointDepart = oMap.hasLayer(oMarkerGreen) ? oMarkerGreen.getLatLng() : oMap.getCenter(); // place les marker rouge et vert sur destination et départ oMarkerRed.setLatLng(where).addTo(oMap); oMarkerGreen.setLatLng(pointDepart).addTo(oMap); // calcul distance déplacement var distance = oMap.distance(pointDepart, where)/1000; // calcul durée déplacement var delay = distance / 2000; // accés direct si distance < 1000 km if (distance < 1000) { // réajuste position et zoom console.log(where); switch(where) { default : oMap.setView(L.latLng(0, 0), zoomInitial); break; case L.latLng(48.85342, 2.3488): oMap.setView(where,zoom); break; case L.latLng(16.265, -61.551): oMap.setView(where,8); break;} // change markers swapMarker(where); } else { // défini action en fin de zoom oMap.once('zoomend', function () { // déplacement vers destination setTimeout(function () { // défini action en fin de déplacement oMap.once('moveend', function () { // on zooom sur destination setTimeout(function () { // réajuste position et zoom switch(where) { default : oMap.setView(where, zoomInitial); break; case 'paris': oMap.setView(where,3); break; case 'guadeloupe': oMap.setView(where,9); break; } // change markers swapMarker(where); }, 500); }); // déplacement oMap.panTo(where, { animate: true, duration: delay }); }, 500); }); // ajuste le zoom minimum if (zoomCarte === zoomTravel) { oMap.fireEvent('zoomend'); } else { oMap.setZoom(zoomTravel); } } } </script> </body> </html>
sitetaherfrforum.html
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326 <!DOCTYPE html> <!--[if lt IE 7 ]> <html class="no-js ie6"> <![endif]--> <!--[if IE 7 ]> <html class="no-js ie7"> <![endif]--> <!--[if IE 8 ]> <html class="no-js ie8"> <![endif]--> <!--[if IE 9 ]> <html class="no-js ie9"> <![endif]--> <!--[if (gt IE 9)|!(IE)]><!--> <html lang="fr"> <!--<![endif]--> <head> <meta http-equiv="content-type" charset="UTF-8"> <title>xxx xxxxx Frères - Import Export</title> <link rel="stylesheet" type="text/css" href="css/20180107sitev0.css" /> <link rel="stylesheet" type="text/css" href="css/carte.css" /> <link rel="shortcut icon" type="image/png" href="favicon.png" /> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v1.0.3/leaflet.css"> <script src="http://cdn.leafletjs.com/leaflet/v1.0.3/leaflet.js"></script> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> </head> <body> <header> <figure id='mylogo'> <img src="img/logoforum.jpg" alt="logo"> </figure> <div id="titrePrincipal"> <h1><span class="maj">xxx xxxxx f</span>rères</h1> <span id="text"> <span class="maj">n</span>uméro de <span class="maj">t</span>éléphone : +33 (0)1 xx xx xx xx <br> <span class="maj">a</span>dresse <span class="maj">p</span>ostale : 49 rue xxxxx xxxxxxxx PARIS <br> <span class="maj">a</span>dresse <span class="maj">e</span>-mail : <a class="con" href="mailto:cvgtrtt.poiuer@wanadoo.fr">cvgtrtt.poiuer@wanadoo.fr</a></p> <br> </span> </div> <form class="formLang"> <label for="l" class="bold"><span class="maj">c</span>hoisissez votre langue / <span class="maj">c</span>hoose your language :</label> <select class="selLang" name="l"> <option class="fr" value="fr" label="true" selected="selected"><span class="maj">f</span>rançais</option> <option class="en" value="en"><span class="maj">e</span>nglish</option> </select> <div> <img style="position:absolute; right:0%;" src="img/FrenchFlag.jpg" alt="French Flag"> </div> </form> <nav> <div class="ent"><span class="maj">n</span>otre <span class="maj">e</span>ntreprise</div> <div class="pro"><span class="maj">n</span>os <span class="maj">p</span>roduits</div> <div class="cli"><span class="maj">n</span>otre <span class="maj">c</span>lientèle</div> <div class="mar"><span class="maj">n</span>os <span class="maj">m</span>archés</div> <div class="tem"><span class="maj">t</span>émoignages</div> </nav> </header> <section> <div id="main"> <div id="cadre_carte"> <div id="carte"></div> </div> </div> <article></article> </section> <footer> <q class="italic"><span class="maj">s</span>ite <span class="maj">w</span>eb réalisé par <a href="mail to:site.super25@gmail.com "><span class="maj">y</span>oiuytr <span class="maj">poiuytre</span></a></q> </footer> <script type="text/javascript" src="js/20180107sitev0forum.js"></script> <script> var oMap; var animEnCours = false; var destination = { "paris" : { "libelle" : "Paris", "point" : L.latLng(48.85342, 2.3488), "zoom" : 3.5, }, "cameroun" : { "libelle" : "Cameroun", "point" : L.latLng(48.85342, 2.3488), "zoom" : 3.5, }, "comores" : { "libelle" : "Comores", "point" : L.latLng(-11.72, 43.25), "zoom" : 3.5, }, "ethiopie" : { "libelle" : "Ethiopie", "point" : L.latLng(8.9800, 38.7989), "zoom" : 3.5, }, "guadeloupe" : { "libelle" : "Guadeloupe", "point" : L.latLng(6.265, -61.551), "zoom" : 3.5, }, "guyane" : { "libelle" : "Guyane", "point" : L.latLng(4.144817,-52.8442), "zoom" : 3.5, }, "reunion" : { "libelle" : "La Réunion", "point" : L.latLng(-21.1151, 55.5363), "zoom" : 8, }, "madagascar" : { "libelle" : "Madagascar", "point" : L.latLng(-18.77, 46.9), "zoom" : 3.5, }, "martinique" : { "libelle" : "Martinique", "point" : L.latLng(14.64, -61.01669), "zoom" : 3.5, }, "maurice" : { "libelle" : "Maurice", "point" : L.latLng(14.64, -61.01669), "zoom" : 3.5, }, "mayotte" : { "libelle" : "Mayotte", "point" : L.latLng(-12.768,45.2286), "zoom" : 3.5, }, "tahiti" : { "libelle" : "Tahiti", "point" : L.latLng(-17.6509, -149.426), "zoom" : 3.5, }, //... }; // création des divIcon var oIconRed = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle circle-red"></div>' }); var oIconGreen = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle2 circle-green"></div>' }); var oIconOrange = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle2 circle-orange"></div>' }); var oIconBleu = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle2 circle-bleu"></div>' }); var oIconViolet = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle2 circle-violet"></div>' }); var oIconNoir = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle2 circle-noir"></div>' }); var oIconNoir1a = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle3 circle-noir"></div>' }); var oIconNoir1b = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle4 circle-noir1"></div>' }); // création des markers //paris var oMarkerRed = L.marker( [48.85342, 2.3488], {icon: oIconRed}); //cameroun var oMarkerNoir = L.marker( [5.76463, 11.75537], {icon: oIconNoir}); //comores var oMarkerNoir1 = L.marker( [-11.72, 43.25], {icon: oIconNoir}); //ethiopie var oMarkerNoir2 = L.marker( [8.9800, 38.7989], {icon: oIconNoir}); //guadeloupe var oMarkerNoir3 = L.marker( [16.265, -61.551], {icon: oIconNoir1b}); //guyane var oMarkerNoir4 = L.marker( [4.144817,-52.8442], {icon: oIconNoir}); //la réunion var oMarkerNoir5 = L.marker( [-21.1151, 55.5363], {icon: oIconNoir1a}); //madagascar var oMarkerNoir6 = L.marker( [-18.77, 46.9], {icon: oIconNoir}); //martinique var oMarkerNoir7 = L.marker( [14.64, -61.01669], {icon: oIconNoir}); //maurice var oMarkerNoir8 = L.marker( [-20.3484,57.5833], {icon: oIconNoir}); //mayotte var oMarkerNoir9 = L.marker( [-12.768,45.2286], {icon: oIconNoir1a}); //tahiti var oMarkerNoir10 = L.marker( [-17.6509, -149.426], {icon: oIconNoir}); // création de la carte var zoomInitial = 9; // ce que l'on modifie versus test5 9 au leu de 7 var zoomTravel = 3; oMap = L.map('carte', { zoomAnimationThreshold: 20, zoomControl: false, // voir <a href="http://leafletjs.com/reference-1.1.0.html#map-zoomcontrol" target="_blank">http://leafletjs.com/reference-1.1.0...ap-zoomcontrol</a> duration: 5, center: [ 0, 0 ], zoom: 1.1 }); oMap.addLayer( L.tileLayer( 'http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' } )); // place les marker rouge et vert sur destination et départ oMarkerRed.addTo(oMap); oMarkerNoir.addTo(oMap); oMarkerNoir1.addTo(oMap); oMarkerNoir2.addTo(oMap); oMarkerNoir3.addTo(oMap); oMarkerNoir4.addTo(oMap); oMarkerNoir5.addTo(oMap); oMarkerNoir6.addTo(oMap); oMarkerNoir7.addTo(oMap); oMarkerNoir8.addTo(oMap); oMarkerNoir9.addTo(oMap); oMarkerNoir10.addTo(oMap); // fonction sur click oMap oMap.on('click', function (e) { // affiche marker vert au click oMarkerGreen.setLatLng([e.latlng.lat, e.latlng.lng]).addTo(this); oMarkerGreen.on('click', function (e) { this.remove(oMap); }) }); function swapMarker(where){ // supprime marker rouge oMarkerRed.remove(oMap); // affiche marker vert oMarkerGreen.setLatLng(where).addTo(oMap); // autorise autre animation animEnCours = false; } function gotoDestination(where) { // si animation en cours on quitte if (animEnCours) { return; } animEnCours = true; var zoomCarte = oMap.getZoom(); // récupération point de départ var pointDepart = oMap.hasLayer(oMarkerGreen) ? oMarkerGreen.getLatLng() : oMap.getCenter(); // place les marker rouge et vert sur destination et départ oMarkerRed.setLatLng(where).addTo(oMap); oMarkerGreen.setLatLng(pointDepart).addTo(oMap); // calcul distance déplacement var distance = oMap.distance(pointDepart, where)/1000; // calcul durée déplacement var delay = distance / 2000; // accés direct si distance < 1000 km if (distance < 1000) { // réajuste position et zoom console.log(where); switch(where) { default : oMap.setView(L.latLng(0, 0), zoomInitial); break; case L.latLng(48.85342, 2.3488): oMap.setView(where,zoom); break; case L.latLng(16.265, -61.551): oMap.setView(where,8); break;} // change markers swapMarker(where); } else { // défini action en fin de zoom oMap.once('zoomend', function () { // déplacement vers destination setTimeout(function () { // défini action en fin de déplacement oMap.once('moveend', function () { // on zooom sur destination setTimeout(function () { // réajuste position et zoom switch(where) { default : oMap.setView(where, zoomInitial); break; case 'paris': oMap.setView(where,3); break; case 'guadeloupe': oMap.setView(where,9); break; } // change markers swapMarker(where); }, 500); }); // déplacement oMap.panTo(where, { animate: true, duration: delay }); }, 500); }); // ajuste le zoom minimum if (zoomCarte === zoomTravel) { oMap.fireEvent('zoomend'); } else { oMap.setZoom(zoomTravel); } } } </script> </body> </html>
sitetaherenforum.html
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325 <e<!DOCTYPE html> <!--[if lt IE 7 ]> <html class="no-js ie6"> <![endif]--> <!--[if IE 7 ]> <html class="no-js ie7"> <![endif]--> <!--[if IE 8 ]> <html class="no-js ie8"> <![endif]--> <!--[if IE 9 ]> <html class="no-js ie9"> <![endif]--> <!--[if (gt IE 9)|!(IE)]><!--> <html lang="fr"> <!--<![endif]--> <head> <meta http-equiv="content-type" charset="UTF-8"> <title>xxx xxxxx Frères - Import Export</title> <link rel="stylesheet" type="text/css" href="css/20180107sitev0.css" /> <link rel="stylesheet" type="text/css" href="css/carte.css" /> <link rel="shortcut icon" type="image/png" href="favicon.png" /> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v1.0.3/leaflet.css"> <script src="http://cdn.leafletjs.com/leaflet/v1.0.3/leaflet.js"></script> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> </head> <body> <header> <figure id='mylogo'> <img src="img/logo.jpg" alt="logo"> </figure> <div id="titrePrincipal"> <h1><span class="maj">xxx xxxxx f</span>rères</h1> <span id="text"> <span class="maj">p</span>hone <span class="maj">n</span>umber : +33 (0)1 xx xx xx xx <br> <span class="maj">a</span>dress : 49 rue xxxxx xxxxxxxx PARIS <br> <span class="maj">e</span>-mail <span class="maj">e</span>-mail : <a class="con" href="mailto:cvgtrtt.poiuer@wanadoo.fr">cvgtrtt.poiuer@wanadoo.fr</a></p> </span> </div> <form class="formLang"> <label for="l" class="bold"><span class="maj">c</span>hoose your language / <span class="maj">c</span>hoisissez votre langue : </label> <select class="selLang" name="l"> <option class="fr" value="fr" label="true" selected="selected"><span class="maj">f</span>rançais</option> <option class="en" value="en" label="true" selected="selected"><span class="maj">e</span>nglish</option> </select> <div> <img style="position:absolute; right:0%;" src="img/UKFlag.jpg" alt="UK Flag"> </div> </form> <nav> <div class="ent"><span class="maj">c</span>ompany</div> <div class="pro"><span class="maj">p</span>roducts</div> <div class="cli"><span class="maj">c</span>ustomers</div> <div class="mar"><span class="maj">m</span>arket</div> <div class="tem"><span class="maj">t</span>estimonies</div> </nav> </header> <section> <div id="main"> <div id="cadre_carte"> <div id="carte"></div> </div> </div> <article id="en"></article> </section> <footer> <q class="italic"><span class="maj">w</span>eb <span class="maj">s</span>ite : <a href="mail to:site.super25@gmail.com "><span class="maj">poiutre </span><span class="maj">y</span>opoiutr </a></q> </footer> <script type="text/javascript" src="js/20180107sitev0forum.js"></script> <script> var oMap; var animEnCours = false; var destination = { "paris" : { "libelle" : "Paris", "point" : L.latLng(48.85342, 2.3488), "zoom" : 3.5, }, "cameroun" : { "libelle" : "Cameroun", "point" : L.latLng(48.85342, 2.3488), "zoom" : 3.5, }, "comores" : { "libelle" : "Comores", "point" : L.latLng(-11.72, 43.25), "zoom" : 3.5, }, "ethiopie" : { "libelle" : "Ethiopie", "point" : L.latLng(8.9800, 38.7989), "zoom" : 3.5, }, "guadeloupe" : { "libelle" : "Guadeloupe", "point" : L.latLng(6.265, -61.551), "zoom" : 3.5, }, "guyane" : { "libelle" : "Guyane", "point" : L.latLng(4.144817,-52.8442), "zoom" : 3.5, }, "reunion" : { "libelle" : "La Réunion", "point" : L.latLng(-21.1151, 55.5363), "zoom" : 8, }, "madagascar" : { "libelle" : "Madagascar", "point" : L.latLng(-18.77, 46.9), "zoom" : 3.5, }, "martinique" : { "libelle" : "Martinique", "point" : L.latLng(14.64, -61.01669), "zoom" : 3.5, }, "maurice" : { "libelle" : "Maurice", "point" : L.latLng(14.64, -61.01669), "zoom" : 3.5, }, "mayotte" : { "libelle" : "Mayotte", "point" : L.latLng(-12.768,45.2286), "zoom" : 3.5, }, "tahiti" : { "libelle" : "Tahiti", "point" : L.latLng(-17.6509, -149.426), "zoom" : 3.5, }, //... }; // création des divIcon var oIconRed = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle circle-red"></div>' }); var oIconGreen = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle2 circle-green"></div>' }); var oIconOrange = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle2 circle-orange"></div>' }); var oIconBleu = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle2 circle-bleu"></div>' }); var oIconViolet = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle2 circle-violet"></div>' }); var oIconNoir = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle2 circle-noir"></div>' }); var oIconNoir1a = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle3 circle-noir"></div>' }); var oIconNoir1b = L.divIcon({ iconAnchor : [15, 15], className: 'circle-marker', html: '<div class="circle-animate circle4 circle-noir1"></div>' }); // création des markers //paris var oMarkerRed = L.marker( [48.85342, 2.3488], {icon: oIconRed}); //cameroun var oMarkerNoir = L.marker( [5.76463, 11.75537], {icon: oIconNoir}); //comores var oMarkerNoir1 = L.marker( [-11.72, 43.25], {icon: oIconNoir}); //ethiopie var oMarkerNoir2 = L.marker( [8.9800, 38.7989], {icon: oIconNoir}); //guadeloupe var oMarkerNoir3 = L.marker( [16.265, -61.551], {icon: oIconNoir1b}); //guyane var oMarkerNoir4 = L.marker( [4.144817,-52.8442], {icon: oIconNoir}); //la réunion var oMarkerNoir5 = L.marker( [-21.1151, 55.5363], {icon: oIconNoir1a}); //madagascar var oMarkerNoir6 = L.marker( [-18.77, 46.9], {icon: oIconNoir}); //martinique var oMarkerNoir7 = L.marker( [14.64, -61.01669], {icon: oIconNoir}); //maurice var oMarkerNoir8 = L.marker( [-20.3484,57.5833], {icon: oIconNoir}); //mayotte var oMarkerNoir9 = L.marker( [-12.768,45.2286], {icon: oIconNoir1a}); //tahiti var oMarkerNoir10 = L.marker( [-17.6509, -149.426], {icon: oIconNoir}); // création de la carte var zoomInitial = 9; // ce que l'on modifie versus test5 9 au leu de 7 var zoomTravel = 3; oMap = L.map('carte', { zoomAnimationThreshold: 20, zoomControl: false, // voir <a href="http://leafletjs.com/reference-1.1.0.html#map-zoomcontrol" target="_blank">http://leafletjs.com/reference-1.1.0...ap-zoomcontrol</a> duration: 5, center: [ 0, 0 ], zoom: 1.1 }); oMap.addLayer( L.tileLayer( 'http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' } )); // place les marker rouge et vert sur destination et départ oMarkerRed.addTo(oMap); oMarkerNoir.addTo(oMap); oMarkerNoir1.addTo(oMap); oMarkerNoir2.addTo(oMap); oMarkerNoir3.addTo(oMap); oMarkerNoir4.addTo(oMap); oMarkerNoir5.addTo(oMap); oMarkerNoir6.addTo(oMap); oMarkerNoir7.addTo(oMap); oMarkerNoir8.addTo(oMap); oMarkerNoir9.addTo(oMap); oMarkerNoir10.addTo(oMap); // fonction sur click oMap oMap.on('click', function (e) { // affiche marker vert au click oMarkerGreen.setLatLng([e.latlng.lat, e.latlng.lng]).addTo(this); oMarkerGreen.on('click', function (e) { this.remove(oMap); }) }); function swapMarker(where){ // supprime marker rouge oMarkerRed.remove(oMap); // affiche marker vert oMarkerGreen.setLatLng(where).addTo(oMap); // autorise autre animation animEnCours = false; } function gotoDestination(where) { // si animation en cours on quitte if (animEnCours) { return; } animEnCours = true; var zoomCarte = oMap.getZoom(); // récupération point de départ var pointDepart = oMap.hasLayer(oMarkerGreen) ? oMarkerGreen.getLatLng() : oMap.getCenter(); // place les marker rouge et vert sur destination et départ oMarkerRed.setLatLng(where).addTo(oMap); oMarkerGreen.setLatLng(pointDepart).addTo(oMap); // calcul distance déplacement var distance = oMap.distance(pointDepart, where)/1000; // calcul durée déplacement var delay = distance / 2000; // accés direct si distance < 1000 km if (distance < 1000) { // réajuste position et zoom console.log(where); switch(where) { default : oMap.setView(L.latLng(0, 0), zoomInitial); break; case L.latLng(48.85342, 2.3488): oMap.setView(where,zoom); break; case L.latLng(16.265, -61.551): oMap.setView(where,8); break;} // change markers swapMarker(where); } else { // défini action en fin de zoom oMap.once('zoomend', function () { // déplacement vers destination setTimeout(function () { // défini action en fin de déplacement oMap.once('moveend', function () { // on zooom sur destination setTimeout(function () { // réajuste position et zoom switch(where) { default : oMap.setView(where, zoomInitial); break; case 'paris': oMap.setView(where,3); break; case 'guadeloupe': oMap.setView(where,9); break; } // change markers swapMarker(where); }, 500); }); // déplacement oMap.panTo(where, { animate: true, duration: delay }); }, 500); }); // ajuste le zoom minimum if (zoomCarte === zoomTravel) { oMap.fireEvent('zoomend'); } else { oMap.setZoom(zoomTravel); } } } </script> </body> </html>
20180107sitev0.css
Code css : Sélectionner tout - Visualiser dans une fenêtre à part
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249 html,body { height: 100%; width: 99%; } .formLang select { font-size: 25px; } .bold { font-weight: bold; } .goldenrod { font-family: Calibri; text-shadow: 2px 2px #000000; color: #FF6347; } footer q { text-align: left; font-size: 0.8em; display: block; } #t1 tr:first-child th, #t2 tr:first-child th { width: 39%; height:39%; } #t2 { border-collapse: collapse; border: 1px black; border-style: dotted; font-size: 1.2em; margin-left: 5em; } #t1 { border-collapse: collapse; border: 1px blue ; border-style:solid; font-size: 1.2em; margin-left: 5em; } #t2 th,#t2 td { text-align: center; border-collapse: collapse; border: 1px black; border-style: dotted; width: 13%; height: 13%; margin:0 auto; } #t1 th { text-align: center; border-collapse: collapse; border: 1px blue; border-style: solid; width: 11%; height: 13%; margin:0 auto; } #t1 td { text-align: center; border-collapse: collapse; border: 1px blue; border-style: solid; width: 50%; height: 13%; margin:0 auto; } #t1 tr { padding-bottom: 1em; } nav { font: 1.5em bold; width:80%; margin: 0 auto; } nav div { display: inline-block; } nav div:hover { color: red; } #logo, #titrePrincipal { display: inline-block; } #titrePrincipal { width: 100%; text-align: center; margin:0 auto; } #text { font: 1.5em underline; } #mylogo { position: absolute; top: 5%; left: 5%; vertical-align: top; } i,.second li{ display: inline-block; } i { border: solid black; border-width: 0 3px 3px 0; padding: 3px; } .right { margin-right: 10px; list-style-type: square; } #carte, article { display: inline-block; } #main, article { vertical-align: top; display: inline-block; margin: 0 auto; font-size: 1.5em; } aside { height: 70%; border: 1px black solid; } header { margin: 0 auto; border: 5px black solid; height: 45%; width: 95%; padding-bottom: 10px; } .formLang { position: absolute; top: 5%; right: 5%; } article { width: 80%; position:relative; bottom: 10em; margin-left: 16.8em; /* left: 10.8em;*/ } #en { position: relative; bottom: 10em; /*font-size: 1em;*/ } aside { background-color: #ff9933; width: 40%; } h1 { font-size: 2em; } h2 { font-size: 1em; } h2,h1 { text-align: center; text-decoration: underline; } h3 { font-size: 1.5em; } .bold { font-weight: bold; } q { font-size: 1.1em; font-style: italic; } .ent:hover,.pro:hover,.cli:hover,.tem:hover,.mar:hover { color: red; } .a2c,.pro,.cli,.tem,.mar { margin-left: 48px; } .ent,nav div:first-child { margin-left: 1em; } .maj { text-transform: uppercase; } .second li { list-style-type: square; } .right:after { content: ""; } /*#up { position: relative; bottom: 600px; }*/ h1,h2,nav div { font-family: 'Arial','Serif'; } body { } #mar_g,#mar_l { margin: 0 auto; width: 22%; display: inline-block; vertical-align: middle; } #mar_l { } #mar_g { } #mapid { margin: 0 auto; vertical-align: middle; width: 20%; height : 20%; border:1px black; border-style: solid; } body { font-size: 1em; } #mar_l li:focus { font-weight: bold; } header,section { padding: 2%; } section { margin: 0 auto; position: relative; top: 5em; width: 95%; text-align: center; border: 5px black; border-style: solid; /*height: 65%;*/ padding-left:2%; } .italic { font-style: italic; } footer a{ color: blue; text-decoration: underline; }
carte.css
Code css : Sélectionner tout - Visualiser dans une fenêtre à part
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 #main { margin: 0 auto; */width: 5%;*/ border:2px solid red; /* max-width: 30em;*/ } #cadre_carte { position: relative ; right:17em; top: 1em; */height: 37em;*/ margin: 0 auto; font-size: 1em; box-shadow: 0 2px 4px 2px #CCC; */width: 50em;*/ } #carte { height:20em; width: 40em; border:2px solid green; } /* déclaration pour les markers */ .circle { box-sizing: border-box; width: 30px; height: 30px; border-radius: 50%; background-color: rgba(255,255,255,0.3); box-shadow: 0 0 10px #888; } .circle2 { box-sizing: border-box; width: 15px; height: 15px; border-radius: 50%; background-color: rgba(255,255,255,0.3); box-shadow: 0 0 10px #888; } .circle3 { box-sizing: border-box; width: 20px; height: 20px; border-radius: 50%; background-color: rgba(255,255,255,0.3); box-shadow: 0 0 10px #888; } .circle4 { box-sizing: border-box; width: 25px; height: 25px; border-radius: 50%; background-color: rgba(255,255,255,0.3); box-shadow: 0 0 10px #888; } .circle-marker { box-sizing: border-box; width: 30px; height: 30px; } .circle-red { border: 5px solid #F00; } .circle-green { border: 5px solid #0A0; } .circle-orange { border: 5px solid #F63; } .circle-bleu { border: 5px solid #00F; } .circle-violet { border: 5px solid #909; } .circle-noir { border: 4px solid #000; } .circle-noir1 { border: 2px solid #000; } .circle-animate { animation-name: show-hide; animation-duration: 1s; animation-iteration-count: infinite; transform: scale(1); } @keyframes show-hide { 0% { transform: scale(1);} 50% { transform: scale(.5);} 100% { transform: scale(1);} }
20180107siteV0forum.js
Code js : Sélectionner tout - Visualiser dans une fenêtre à part
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256 var site = function () { function changeColor (element,couleur) { console.log('chorale'); var theAs = document.querySelectorAll('nav div'); console.log(theAs.length); for (var i = 0 ; i < theAs.length; i++) { console.log('cuicui'); theAs[i].style.color = 'black'; if (i === element) { console.log('soleil'); theAs [i].style.color = couleur; } } } function load_fr () { window.location.href = 'sitetaherfrforum.html'; who_are_we ('fr'); } function load_en () { window.location.href = 'sitetaherenforum.html'; who_are_we (); } function addEvent (ev, func, elem) { if (elem.addEventListener) { elem.addEventListener (ev, func, false); } else if (elem.attachEvent) { // For IE 8 and earlier versions elem.attachEvent('on' + ev, func); } } function listApp (list, tab) { for (var i = 0 ; i < tab.length ; i++) { list.appendChild (tab [i]) } } function addChar (c,truc) { var propText = document.createTextNode (c); truc.appendChild (propText); } /* function changeLang (e) { // switch (e.target.value) { // case 'fr': // load_fr (); break; case 'en': load_en (); break; // } // } */ var body = document.querySelector ('body'), header1 = document.querySelector ('header'), h1 = document.querySelector ('h1'), sel1 = document.querySelector ('select'), lang = sel1.value, ent = document.querySelector ('.ent'), pro = document.querySelector ('.pro'), cli = document.querySelector ('.cli'), mar = document.querySelector ('.mar'), tem = document.querySelector ('.tem'), con = document.querySelector ('.con'), // aside1_1 = document.querySelector ('section aside'), article1_1 = document.querySelector ('section article'); var ul1 = document.createElement('ul'); var li1_1 = document.createElement ('li'); var li1_2 = document.createElement ('li'); var li1_3 = document.createElement ('li'); var a1_3_1 = document.createElement ('a'); a1_3_1.href = 'mailto:poiuiertueyrt@wanadoo.fr'; li1_3.appendChild (a1_3_1); var children = [li1_1, li1_2, li1_3]; listApp (ul1, children); // var li1_4 = document.createElement ('li'); function inFrench () { console.log("fr"); /* addChar ('qui sommes-nous ?', li1_1); addChar ('nos produits', li1_2); addChar ('contactez-nous', a1_3_1); labSel.innerHTML = 'Choisissez votre langue :'; f0orm1.appendChild (labSel);m form1.appendChild (sel1); header1.appendChild (form1); body.appendChild (header1); */ } function inEnglish () { addChar ('about us', li1_1); addChar ('our products', li1_2); addChar ('contact us', a1_3_1); labSel.innerHTML = 'Choose your language :'; form1.appendChild (labSel); form1.appendChild (sel1); header1.appendChild (form1); body.appendChild (header1); } function who_are_we () { changeColor (0,'red'); // aside1_1.id = ''; console.log(lang); switch (lang) { case 'fr': article1_1.innerHTML = "<p><span class='maj'>n</span>ous sommes la <span class='maj'>s</span>ociété <span class='maj'><span class='bold'>xxx xxxxx f</span></span><span class='bold'>rères </span><br><span class='maj'>c</span>ourisers <span class='maj'>e</span>xport, <br>basée à <span class='maj'><span class='bold'>p</span></span><span class='bold'>aris </span>depuis <span class='bold'>1900</span>.</p><p><span class='maj'>n</span>ous sommes une <span class='bold'>entreprise familiale</span>, multi-produits. <br><span class='maj'>a</span> notre création, nos clients se trouvaient sur les <span class='maj'>c</span>anaries et <span class='maj'>m</span>alte. <br><span class='maj'>d</span>epuis, elle s´est étendue sur <span class='maj'>m</span>alte, <span class='maj'>l</span>a <span class='maj'>r</span>éunion, <span class='maj'>l</span>a <span class='maj'>n</span>ouvelle <span class='maj'>c</span>alédonie, <br><span class='maj'>l</span>a <span class='maj'>g</span>allicie, <span class='maj'>l</span>e <span class='maj'>c</span>olorrado... <br><span class='maj'><span class='bold'>a</span></span><span class='bold'>ucun marché n´est exclus</span></p><p><span class='maj'>n</span>os <span class='maj'>a</span>touts et <span class='maj'>n</span>os <span class='maj'>e</span>ngagements.<br> <span class='maj'>c</span>ertes, nous sommes une petite équipe mais pour nous <br><span class='maj'>s</span>eule <span class='maj'><span class='bold'>prime votre satisfaction. </span><br></span><span class='maj'>p</span>etits ou <span class='maj'>g</span>ros, <span class='bold'>vous avez tous la même importance.</span> <br><span class='maj'>t</span>oujours à votre écoute, nous sommes très réactifs à toutes vos demandes <br> avec une précision inégalable.</p><p><span class='bold'><span class='maj'>n</span>otre devise</span>: <span class='maj'>c</span>e que nous ne vous proposons pas aujourd´hui <br>le sera demain car déjà à l´étude .</p> "; // aside1_1.innerHTML += ''; break; case 'en': article1_1.innerHTML = "<p><span class='maj'>w</span>e are the <span class='maj'>c</span>ompany <span class='maj'><span class='bold'>xxx xxxxx f</span></span><span class='bold'>rères, </span><span class='maj'>e</span>xport <span class='maj'>c</span>ourisers <span class='maj'>a</span>gent,<br>based in <span class='maj'><span class='bold'>p</span></span><span class='bold'>aris </span>since <span class='bold'>1900</span>.</p><p><span class='maj'>w</span>e are a small <span class='bold'>family business</span> dealing in a variety of products. <br><span class='maj'>w</span>hen we started, our customers were mainly from the <span class='maj'>c</span>anarias <span class='maj'>i</span>slands <br>and from <span class='maj'>m</span>alte. <br><span class='maj'>s</span>ince then we have widened our reach to <span class='maj'>m</span>alte, <span class='maj'>l</span>a <span class='maj'>r</span>éunion, <br><span class='maj'>n</span>ew <span class='maj'>c</span>aledonia, <span class='maj'>t</span>he <span class='maj'>f</span>rench <span class='maj'>w</span>indies (<span class='maj'>g</span>allicia), <span class='maj'>t</span>he <span class='maj'>c</span>olorrado. <br><span class='maj'><span class='bold'>w</span></span><span class='bold'>e are open for trade in every country.</span></p><p><span class='maj'>w</span>e are a small but fully committed team. <br><span class='bold'><span class='maj'>o</span>ur goal is your satisfaction.<br><br></span> <span class='maj'>a</span>ll our customers are important and we give the same attention <br>to all of them, no matter the size as we try to meet all the requirements <br>with the maximum of efficiency and diligence.<br></p><p><span class='bold'><span class='maj'>o</span>ur aim is to anticipate your needs </span><br>and offer you what you might require <br>tomorrow in a fast moving trading world. </p> "; // aside1_1.innerHTML += ''; break; } } function products () { changeColor (1,'red'); // aside1_1.id = 'up'; switch (lang) { case 'fr': article1_1.innerHTML = "<ul><li class='maj bold italic goldenrod'>si vous ne trouvez pas votre produit, n'hésitez pas, <br> interrogez-nous.</li><li class='maj bold italic goldenrod'>Nous le chercherons spécialement pour vous </li><br><li class='maj bold'>materiaux de construction</li><ul class='second'><li><i class='right'></i><span class ='maj'>f</span>ers à béton</li><br><i class='right'></i><li><span class ='maj'>t</span>oles ondulées, toles planes</li><br><i class='right'></i><li><span class ='maj'>p</span>rofilés</li><br><i class='right'></i><li><span class ='maj'>t</span>reillis soudés</li><br><i class='right'></i><li><span class ='maj'>g</span>rillages</li><br><i class='right'></i><li><span class ='maj'>c</span>ontreplaqués, isorel</li><br><i class='right'></i><li><span class ='maj'>l</span>ambris PVC</li><br><i class='right'></i><li><span class ='maj'>m</span>oulures</li><br><i class='right'></i><li><span class ='maj'>v</span>itrages</li><br><br></ul> <li class='maj bold'>quincaillerie</li><ul class='second'><li><i class='right'></i><span class ='maj'>m</span>astic</li><br><i class='right'></i><li><span class ='maj'>q</span>uincaillerie d'ameublement</li><br><br></ul> <li class='maj bold'>films agricoles</li><br><ul> </ul> <li class='maj bold'>outillages agricoles</li><br><ul></ul> <li class='maj bold'>matieres premieres pour savonnerie</li><br><ul></ul><li class='maj bold'>sacs en jute</li><br><ul></ul><li class='maj bold'>engrais</li><br><ul></ul><li class='maj bold'>produits phytosanitaires</li><br><ul></ul><li class='maj bold'>provende</li><br><ul></ul><li class='maj bold'>films de vitrage</li><br><ul></ul> <li class='maj bold'>farine, sucre, huile</li><br><ul></ul> <li class='maj bold'>pieces detachees en depannage</li><br><ul></ul> <li class='maj bold'>tissus techniques</li><br><ul></ul> <ul></ul> </ul>"; // aside1_1.innerHTML += ''; break; case 'en': article1_1.innerHTML = "<ul><li class='maj bold italic goldenrod'>if you do not find your product, do not hesitate,<br> contact us.</li><li class='maj bold italic goldenrod'>Nous le chercherons spécialement pour vous </li><br><li class='maj bold'>materiaux de construction</li><ul class='second'><li><i class='right'></i><span class ='maj'>f</span>ers à béton</li><br><i class='right'></i><li><span class ='maj'>t</span>oles ondulées, toles planes</li><br><i class='right'></i><li><span class ='maj'>p</span>rofilés</li><br><i class='right'></i><li><span class ='maj'>t</span>reillis soudés</li><br><i class='right'></i><li><span class ='maj'>g</span>rillages</li><br><i class='right'></i><li><span class ='maj'>c</span>ontreplaqués, isorel</li><br><i class='right'></i><li><span class ='maj'>l</span>ambris PVC</li><br><i class='right'></i><li><span class ='maj'>m</span>oulures</li><br><i class='right'></i><li><span class ='maj'>v</span>itrages</li><br><br></ul> <li class='maj bold'>quincaillerie</li><ul class='second'><li><i class='right'></i><span class ='maj'>m</span>astic</li><br><i class='right'></i><li><span class ='maj'>q</span>uincaillerie d'ameublement</li><br><br></ul> <li class='maj bold'>films agricoles</li><br><ul> </ul> <li class='maj bold'>outillages agricoles</li><br><ul></ul> <li class='maj bold'>matieres premieres pour savonnerie</li><br><ul></ul><li class='maj bold'>sacs en jute</li><br><ul></ul><li class='maj bold'>engrais</li><br><ul></ul><li class='maj bold'>produits phytosanitaires</li><br><ul></ul><li class='maj bold'>provende</li><br><ul></ul><li class='maj bold'>films de vitrage</li><br><ul></ul> <li class='maj bold'>farine, sucre, huile</li><br><ul></ul> <li class='maj bold'>pieces detachees en depannage</li><br><ul></ul> <li class='maj bold'>tissus techniques</li><br><ul></ul> <ul></ul> </ul>"; // aside1_1.innerHTML += ''; break; } } function customers () { changeColor (2,'red'); // aside1_1.id = ''; switch (lang) { case 'fr': article1_1.innerHTML = "<ul><li class='maj'>agriculteurs et secteur agricole</li><ul> </ul> <li class='maj'>quincaillers</li><ul></ul> <li class='maj'>menuiserie aluminium et pvc</li><ul></ul><li class='maj'>boulanger et secteur de la boulangerie</li><ul></ul><li class='maj'>bazar multi produits</li><ul></ul><li class='maj'>btp et constructions</li><ul></ul><li class='maj'>ditributeurs et revendeurs</li><ul> </ul><li class='maj'>secteur industriel</li></ul>"; // aside1_1.innerHTML += ''; break; case 'en': article1_1.innerHTML = "<ul><li class='maj'>agriculteurs et secteur agricole</li><ul> </ul> <li class='maj'>quincaillers</li><ul></ul> <li class='maj'>menuiserie aluminium et pvc</li><ul></ul><li class='maj'>boulanger et secteur de la boulangerie</li><ul></ul><li class='maj'>bazar multi produits</li><ul></ul><li class='maj'>btp et constructions</li><ul></ul><li class='maj'>ditributeurs et revendeurs</li><ul> </ul><li class='maj'>secteur industriel</li></ul>"; // aside1_1.innerHTML += ''; break; } } function market () { changeColor (3,'red'); console.log("mark"); switch (lang) { case 'fr': article1_1.innerHTML = "<p class='bold'><span class='maj'>n</span>otre couverture géographique actuelle s'étend sur plusieurs continents </p><table id='t1'><tr id='t1r1'><th id='h1'><span class='maj'>afrique</span></th><td id='d1'><span class='maj'>c</span>ameroun, <span class='maj'>e</span>thiopie</td></tr><tr id='t1r2'><th id='h1'><span class='maj'>ocean indien</span></th><td id='d1'><span class='maj'>c</span>omores, <span class='maj'>m</span>ayotte <br><span class='maj'>m</span>adagascar <br> <span class='maj'>l</span>a <span class='maj'>r</span>éunion, <span class='maj'>i</span>le <span class='maj'>m</span>aurice </td></tr><tr id='t1r3'><th id='h1'><span class='maj'>amérique du sud</span></th><td id='d1'><span class='maj'>g</span>uyane <span class='maj'>f</span>rançaise</td></tr><tr id='t1r4'><th id='h1'><span class='maj'>ocean pacifique</span></th><td id='d1'><span class='maj'>g</span>uadeloupe, <span class='maj'>m</span>artinique <br> <span class='maj'>t</span>ahiti</td></tr> </table>"; // aside1_1.innerHTML += ''; break; case 'en': article1_1.innerHTML = "<p class='bold'><span class='maj'>n</span>otre couverture géographique actuelle s'étend sur plusieurs continents </p><table id='t1'><tr id='t1r1'><th id='h1'><span class='maj'>africa</span></th><td id='d1'><span class='maj'>c</span>ameroun, <span class='maj'>e</span>thiopie</td></tr><tr id='t1r2'><th id='h1'><span class='maj'>indian ocean</span></th><td id='d1'><span class='maj'>c</span>omores, <span class='maj'>m</span>ayotte <br><span class='maj'>m</span>adagascar <br> <span class='maj'>l</span>a <span class='maj'>r</span>éunion, <span class='maj'>i</span>le <span class='maj'>m</span>aurice </td></tr><tr id='t1r3'><th id='h1'><span class='maj'>amérique du sud</span></th><td id='d1'><span class='maj'>g</span>uyane <span class='maj'>f</span>rançaise</td></tr><tr id='t1r4'><th id='h1'><span class='maj'>ocean pacifique</span></th><td id='d1'><span class='maj'>g</span>uadeloupe, <span class='maj'>m</span>artinique <br> <span class='maj'>t</span>ahiti</td></tr> </table>"; // aside1_1.innerHTML += ''; break; var mymap = L.map('mapid').setView([48.864716, 2.349014], 0); } } function testimonies () { changeColor (4,'red'); console.log("tesm"); switch (lang) { case 'fr': article1_1.innerHTML = " <p class='bold'><span class='maj'>n</span>ous nous excusons, les témoignages seront mis ensuite. <br>Cette partie du site est en construction.</p><table id='t2'><tr id='t2rh'><th id='h1'><span class='maj'>d</span>ate</th><th id='h2'><span class='maj'>a</span>uteur</th><th id='h3'><span class='maj'>t</span>exte</th></tr><tr id='t2r1'><td id='d1'></td><td id='d2'></td><td id='d3'></td></tr><tr id='t2r2'><td id='d1'></td><td id='d2'></td><td id='d3'></td></tr></table>"; // aside1_1.innerHTML += ''; break; case 'en': ; article1_1.innerHTML = " <p class= 'bold'><span class='maj'>p</span>lease apologise, testimonies will be put later . <br> This part of site is under maintenance.</p><table id='t2'><tr id='t2rh'><th id='h1'><span class='maj'>d</span>ate</th><th id='h2'><span class='maj'>a</span>uthor</th><th id='h3'><span class='maj'>t</span>ext</th></tr><tr id='t2r1'><td id='d1'></td><td id='d2'></td><td id='d3'></td></tr><tr id='t2r2'><td id='d1'></td><td id='d2'></td><td id='d3'></td></tr></table>"; // aside1_1.innerHTML += ''; break; } } function switchLang () { switch (sel1.value) { case 'fr' : load_fr () ; break; case 'en' : load_en () ; break; } } /* function who_are_we () { if (opt1.selected) { article1_1.innerHTML = ''; } else { article1_1.innerHTML = ''; } section1.appendChild (article1_1); body.appendChild (section1); } */ addEvent ('click', who_are_we, ent); addEvent ('click', products, pro); addEvent ('click', customers, cli); addEvent ('click', market, mar); addEvent ('click', testimonies, tem); addEvent ('change', switchLang, sel1); li1_1.onclick = who_are_we (); li1_2.onclick = products (); li1_3.onclick = customers (); // aside1_1.appendChild (ul1); // section1.appendChild (aside1_1); inFrench (); who_are_we (); }; // var siteG = new site (); site ();
Partager