-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-fr.html
345 lines (325 loc) · 16.2 KB
/
content-fr.html
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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
<!doctype html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="fr" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" dir="ltr" lang="fr">
<!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW) wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html -->
<title>Journal Cartographique</title>
<meta content="width=device-width,initial-scale=1" name="viewport">
<!-- Meta data -->
<meta content="Web Experience Toolkit (WET) includes reusable components for building and maintaining innovative Web sites that are accessible, usable, and interoperable. These reusable components are open source software and free for use by departments and external Web communities" name="description">
<!-- Meta data-->
<!-- Load closure template scripts -->
<script id="CDTSsoyutils" src="https://ssl-templates.services.gc.ca/app/cls/WET/gcweb/v4_0_32/cdts/compiled/soyutils.js" type="text/javascript"></script>
<script id="CDTSwet" src="https://ssl-templates.services.gc.ca/app/cls/WET/gcweb/v4_0_32/cdts/compiled/wet-fr.js" type="text/javascript"></script>
<noscript>
<!-- Write closure fall-back static file -->
<!-- /ROOT/etc/designs/canada/cdts/gcweb/latest/cdts/static/refTop.html -->
<!--[if gte IE 9 | !IE ]><!-->
<link href="https://www.canada.ca/etc/designs/canada/cdts/gcweb/v4_0_32/assets/favicon.ico" rel="icon" type="image/x-icon">
<link href="https://www.canada.ca/etc/designs/canada/cdts/gcweb/v4_0_32/css/theme.min.css" rel="stylesheet">
<link href="https://www.canada.ca/etc/designs/canada/cdts/gcweb/v4_0_32/cdts/cdtsfixes.css" rel="stylesheet">
<!--<![endif]-->
<!--[if lt IE 9]>
<link href="https://www.canada.ca/etc/designs/canada/cdts/gcweb/v4_0_32/assets/favicon.ico" rel="shortcut icon" />
<link rel="stylesheet" href="https://www.canada.ca/etc/designs/canada/cdts/gcweb/v4_0_32/css/ie8-theme.min.css" />
<![endif]-->
<!--[if lte IE 9]><![endif]-->
<link href="https://www.canada.ca/etc/designs/canada/cdts/gcweb/v4_0_32/css/noscript.min.css" rel="stylesheet">
</noscript>
<!-- Write closure template -->
<script id="CDTSRefTopScript" type="text/javascript">
document.write(wet.builder.refTop({
cdnEnv: "prod"
}));
</script>
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');ga('create', 'UA-40966744-1', 'auto');
ga("set", "anonymizeIp", true);
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
<style>
#main-iframe-content {
}
#if-content {
width:100%;
height:750px;
}
.container {
width:95%;
}
</style>
</head>
<body typeof="WebPage" vocab="http://schema.org/">
<div id="def-top">
<!-- Write closure fall-back static file -->
<!-- /ROOT/etc/designs/canada/cdts/gcweb/latest/cdts/static/top-en.html -->
<ul id="wb-tphp">
<li class="wb-slc"><a class="wb-sl" href="#wb-cont">Passer au contenu principal</a></li>
<li class="wb-slc visible-sm visible-md visible-lg"><a class="wb-sl" href="#wb-info">Passer à « À propos de ce site »</a></li>
</ul>
<header role="banner">
<div class="container" id="wb-bnr">
<section class="visible-md visible-lg text-right" id="wb-lng">
<h2 class="wb-inv">Sêlection de la langue</h2>
<div class="row">
<div class="col-md-12">
<ul class="list-inline margin-bottom-none">
<li><a href="#" lang="en">English</a></li>
</ul>
</div>
</div>
</section>
<div class="row">
<div class="brand col-xs-8 col-sm-9 col-md-6">
<a href="https://www.canada.ca/fr.html"><img data="https://www.canada.ca/etc/designs/canada/cdts/gcweb/v4_0_32/assets/sig-blk-fr.svg" tabindex="-1" type="image/svg+xml"></img><span class="wb-inv"> Gouvernement du Canada</span></a>
</div>
<section class="wb-mb-links col-xs-4 col-sm-3 visible-sm visible-xs" id="wb-glb-mn">
<h2>Recherche et menus</h2>
<ul class="list-inline text-right chvrn">
<li><a aria-controls="mb-pnl" class="overlay-lnk" href="#mb-pnl" role="button" title="Recherche et menus"><span class="glyphicon glyphicon-search"><span class="glyphicon glyphicon-th-list"><span class="wb-inv">Recherche et menus</span></span></span></a></li>
</ul>
<div id="mb-pnl"></div>
</section>
<section class="col-xs-6 text-right visible-md visible-lg" id="wb-srch">
<h2>Recherche</h2>
<form action="https://www.canada.ca/fr/sr.html" class="form-inline" method="get" name="cse-search-box" role="search">
<div class="form-group">
<label class="wb-inv" for="wb-srch-q">Recherchez le site Web</label>
<input name="cdn" type="hidden" value="canada">
<input name="st" type="hidden" value="s">
<input name="num" type="hidden" value="10">
<input name="langs" type="hidden" value="fr">
<input name="st1rt" type="hidden" value="1">
<input name="s5bm3ts21rch" type="hidden" value="x">
<input class="wb-srch-q form-control" id="wb-srch-q" list="wb-srch-q-ac" maxlength="150" name="q" placeholder="Rechercher dans Canada.ca" size="27" type="search" value="">
<input name="_charset_" type="hidden" value="UTF-8">
<datalist id="wb-srch-q-ac">
<!--[if lte IE 9]><select><![endif]-->
<!--[if lte IE 9]></select><![endif]--> </datalist>
</div>
<div class="form-group submit">
<button class="btn btn-primary btn-small" id="wb-srch-sub" name="wb-srch-sub" type="submit"><span class="glyphicon-search glyphicon"></span><span class="wb-inv">Recherche</span></button>
</div>
</form>
</section>
</div>
</div>
<nav class="wb-menu visible-md visible-lg" id="wb-sm" role="navigation" typeof="SiteNavigationElement">
<div class="container nvbar">
<h2>Menu des sujets</h2>
<div class="row">
<ul class="list-inline menu">
<li><a href="https://www.edsc.gc.ca/fr/emplois/index.page">Emplois</a></li>
<li><a href="https://www.cic.gc.ca/francais/index.asp">Immigration</a></li>
<li><a href="https://voyage.gc.ca/">Voyage</a></li>
<li><a href="https://www.canada.ca/fr/services/entreprises.html">Entreprises</a></li>
<li><a href="https://www.canada.ca/fr/services/prestations.html">Prestations</a></li>
<li><a href="https://canadiensensante.gc.ca/index-fra.php">Santé</a></li>
<li><a href="https://www.canada.ca/fr/services/impots.html">Impôts</a></li>
<li><a href="https://www.canada.ca/fr/services.html">Autres services</a></li>
</ul>
</div>
</div>
</nav>
<nav id="wb-bc" property="breadcrumb" role="navigation">
<h2>Vous êtes ici :</h2>
<div class="container">
<div class="row">
<ol class="breadcrumb">
<li><a href="https://www.canada.ca/fr.html">Accueil</a></li>
</ol>
</div>
</div>
</nav>
</header>
</div>
<!-- Write closure template -->
<script id="CDTSTopScript" type="text/javascript">
var defTop = document.getElementById("def-top");
defTop.outerHTML = wet.builder.top({
cdnEnv: "prod",
lngLinks: [{
lang: "en",
href: "#",
text: "English"
}],
search: false
});
</script>
<main class="container" property="mainContentOfPage" role="main">
<!-- <h1 property="name" id="wb-cont">Content page</h1> -->
<h5 property="name" id="wb-cont">Défiler vers le bas et cliquez sur les éléments de la carte pour en savoir plus</h5>
<div id="wb-cont" class="main-iframe-content">
<iframe frameborder="0" scrolling="no" src="about:blank" name="if-content" id="if-content" title="Journal Cartographique"> iframes non pris en charge. </iframe>
</div>
<div id="def-preFooter">
<!-- Write closure fall-back static file -->
<!-- /ROOT/etc/designs/canada/cdts/gcweb/latest/cdts/static/preFooter-en.html -->
<div class="row pagedetails">
<div class="col-sm-6 col-lg-4 mrgn-tp-sm">
<a class="btn btn-default btn-block" href="https://www.canada.ca/fr/signaler-probleme.html">Signaler un problème ou une erreur sur cette page</a>
</div>
<div class="datemod col-xs-12 mrgn-tp-lg">
<dl id="wb-dtmd"></dl>
</div>
</div>
</div>
<!-- Write closure template -->
<script id="CDTSPreFooterScript" type="text/javascript">
var defPreFooter = document.getElementById("def-preFooter");
defPreFooter.outerHTML = wet.builder.preFooter({
cdnEnv: "prod",
});
</script>
</main>
<div id="def-footer">
<!-- Write closure fall-back static file -->
<!-- /ROOT/etc/designs/canada/cdts/gcweb/latest/cdts/static/footer-en.html -->
<aside class="gc-nttvs container">
<h2>Activités et initiatives du gouvernement du Canada</h2>
<div class="wb-eqht row" id="gcwb_prts">
<p class="mrgn-lft-md"><a href="https://www.canada.ca/activites.html">Accédez aux activités et initiatives du gouvernement du Canada</a></p>
</div>
</aside>
<footer id="wb-info" role="contentinfo">
<nav class="container wb-navcurr" role="navigation">
<h2 class="wb-inv">Au sujet du gouvernement</h2>
<ul class="list-unstyled colcount-sm-2 colcount-md-3">
<li><a href="https://www.canada.ca/fr/contact.html">Contactez-nous</a></li>
<li><a href="https://www.canada.ca/fr/gouvernement/min.html">Ministères et organismes</a></li>
<li><a href="https://www.canada.ca/fr/gouvernement/fonctionpublique.html">Fonction publique et force militaire</a></li>
<li><a href="https://www.servicecanada.gc.ca/gcnouvelles">Nouvelles</a></li>
<li><a href="https://www.canada.ca/fr/gouvernement/systeme/lois.html">Traités, lois et règlements</a></li>
<li><a href="https://www.canada.ca/fr/transparence/rapports.html">Rapports à l'échelle du gouvernement</a></li>
<li><a href="https://pm.gc.ca/fra">Premier ministre</a></li>
<li><a href="https://www.canada.ca/fr/gouvernement/systeme.html">Comment le gouvernement fonctionne</a></li>
<li><a href="https://ouvert.canada.ca/">Gouvernement ouvert</a></li>
</ul>
</nav>
<div class="brand">
<div class="container">
<div class="row">
<nav class="col-md-10 ftr-urlt-lnk">
<h2 class="wb-inv">À propos du site</h2>
<ul>
<li><a href="https://www.canada.ca/fr/sociaux.html">Médias sociaux</a></li>
<li><a href="https://www.canada.ca/fr/mobile.html">Applications mobiles</a></li>
<li><a href="https://www1.canada.ca/fr/nouveausite.html">À propos de Canada.ca</a></li>
<li><a href="https://www.canada.ca/fr/transparence/avis.html">Avis</a></li>
<li><a href="https://www.canada.ca/fr/transparence/confidentialite.html">Confidentialité</a></li>
</ul>
</nav>
<div class="col-xs-6 visible-sm visible-xs tofpg">
<a href="#wb-cont">Haut de la page <span class="glyphicon glyphicon-chevron-up"></span></a>
</div>
<div class="col-xs-6 col-md-2 text-right">
<img aria-label="Symbole du gouvernement du Canada" data="https://www.canada.ca/etc/designs/canada/cdts/gcweb/v4_0_32/assets/wmms-blk.svg" role="img" tabindex="-1" type="image/svg+xml"></img>
</div>
</div>
</div>
</div>
</footer>
</div>
<!-- Write closure template -->
<script id="CDTSDefFooterScript" type="text/javascript">
var defFooter = document.getElementById("def-footer");
defFooter.outerHTML = wet.builder.footer({
cdnEnv: "prod"
});
</script>
<!-- Write closure template -->
<script id="CDTSRefFooterScript" type="text/javascript">
document.write(wet.builder.refFooter({
cdnEnv: "prod"
}));
</script>
<script type="text/javascript">
// polyfill for IE
if (!String.prototype.endsWith) {
String.prototype.endsWith = function(searchString, position) {
var subjectString = this.toString();
if (typeof position !== 'number' || !isFinite(position) || Math.floor(position) !== position || position > subjectString.length) {
position = subjectString.length;
}
position -= searchString.length;
var lastIndex = subjectString.lastIndexOf(searchString, position);
return lastIndex !== -1 && lastIndex === position;
};
}
var subdomain = {
en: "maps",
fr: "cartes"
};
var iframeUrl = "mj.html?lang=${lang}";
var otherLangUrlQuerystring = "?lang=${lang}";
var appIdQs = "&appid=${appid}";
var appIdAltQs = "&appidalt=${appidalt}";
var appId, appIdAlt;
if (location.search.match(/appid=([\w\-]+)/)) {
appId = RegExp.$1;
}
if (location.search.match(/appidalt=([\w\-]+)/)) {
appIdAlt = RegExp.$1;
}
if(!appId || appId === '') {
// You should have an appid
// The mapjournal has it's own error message - rely on that
appIdQs = "";
appIdAltQs = "";
} else if(!appIdAlt || appIdAlt === '') {
// No alternative language. Maybe it's a bilingual mapjournal?
// Copy the appId to the altId so the language toggle button works
appIdAlt = appId;
}
var lang, otherLang;
lang = $('html').attr('lang');
// rely on global lang attribute if possible
if(lang === 'en' || lang === 'fr') {
if(lang === 'fr') {
otherLang = 'en';
} else {
otherLang = 'fr';
}
} else {
// as a backup, check to see if path ends with 'fr'
if(location.pathname.endsWith('fr.html')) {
// Default to English?
lang = 'fr';
otherLang = 'en';
} else {
lang = 'en';
otherLang = 'fr';
}
}
// Construct the iframe URL
iframeUrl = iframeUrl.replace("${lang}",lang);
iframeUrl += appIdQs;
iframeUrl = iframeUrl.replace("${appid}",appId);
// Swap the languages for the toggle
otherLangUrlQuerystring = otherLangUrlQuerystring.replace("${lang}",otherLang);
otherLangUrlQuerystring += appIdQs + appIdAltQs;
// Remember to swap the appIds for the language toggle
otherLangUrlQuerystring = otherLangUrlQuerystring.replace("${appid}",appIdAlt);
otherLangUrlQuerystring = otherLangUrlQuerystring.replace("${appidalt}",appId);
// FGP uses subdomains for language - swap them too
var otherLangUrl = location.origin;
otherLangUrl = otherLangUrl.replace(subdomain[lang], subdomain[otherLang]);
// Add the path after - less chance for renaming 'maps/cartes' as part of a valid path
otherLangUrl += location.pathname;
// Finally the html portion of the URL itself
otherLangUrl = otherLangUrl.replace("content-" + lang, "content-" + otherLang);
// update the iframe src
$("#if-content").attr('src',iframeUrl);
// update the language swap button
$("[lang='" + otherLang + "']").attr('href', otherLangUrl + otherLangUrlQuerystring);
</script>
</body>
</html>