File tree 18 files changed +5
-85
lines changed
18 files changed +5
-85
lines changed Original file line number Diff line number Diff line change @@ -124,3 +124,8 @@ catch (err) {
124
124
// when demo page is not opened as an iframe, display default theme
125
125
}
126
126
127
+ // Append lang = fr, so the map may be able to be localized in fr
128
+ if ( window . parent . location . href . includes ( '/fr/' ) ) {
129
+ document . firstElementChild . lang = 'fr' ;
130
+ }
131
+
Original file line number Diff line number Diff line change 5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
7
< title > Demo</ title >
8
- < script >
9
- if ( window . parent . location . href . includes ( '/fr/' ) ) {
10
- document . firstElementChild . lang = 'fr' ;
11
- }
12
- </ script >
13
8
< script type ="module " src ="../../dist/mapml.js "> </ script >
14
9
< link rel ="stylesheet " href ="../embeded-demo-style.css "/>
15
10
Original file line number Diff line number Diff line change 5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
7
< title > Demo</ title >
8
- < script >
9
- if ( window . parent . location . href . includes ( '/fr/' ) ) {
10
- document . firstElementChild . lang = 'fr' ;
11
- }
12
- </ script >
13
8
< script type ="module " src ="../../dist/mapml.js "> </ script >
14
9
< link rel ="stylesheet " href ="../embeded-demo-style.css "/>
15
10
Original file line number Diff line number Diff line change 5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
7
< title > Demo</ title >
8
- < script >
9
- if ( window . parent . location . href . includes ( '/fr/' ) ) {
10
- document . firstElementChild . lang = 'fr' ;
11
- }
12
- </ script >
13
8
< script type ="module " src ="../../dist/mapml.js "> </ script >
14
9
< link rel ="stylesheet " href ="../embeded-demo-style.css "/>
15
10
Original file line number Diff line number Diff line change 5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
7
< title > Demo</ title >
8
- < script >
9
- if ( window . parent . location . href . includes ( '/fr/' ) ) {
10
- document . firstElementChild . lang = 'fr' ;
11
- }
12
- </ script >
13
8
< script type ="module " src ="../../dist/mapml.js "> </ script >
14
9
< link rel ="stylesheet " href ="../embeded-demo-style.css "/>
15
10
Original file line number Diff line number Diff line change 5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
7
< title > Demo</ title >
8
- < script >
9
- if ( window . parent . location . href . includes ( '/fr/' ) ) {
10
- document . firstElementChild . lang = 'fr' ;
11
- }
12
- </ script >
13
8
< script type ="module " src ="../../dist/mapml.js "> </ script >
14
9
< link rel ="stylesheet " href ="../embeded-demo-style.css "/>
15
10
Original file line number Diff line number Diff line change 5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
7
< title > Demo</ title >
8
- < script >
9
- if ( window . parent . location . href . includes ( '/fr/' ) ) {
10
- document . firstElementChild . lang = 'fr' ;
11
- }
12
- </ script >
13
8
< script type ="module " src ="../../dist/mapml.js "> </ script >
14
9
< link rel ="stylesheet " href ="../embeded-demo-style.css "/>
15
10
Original file line number Diff line number Diff line change 5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
7
< title > Demo</ title >
8
- < script >
9
- if ( window . parent . location . href . includes ( '/fr/' ) ) {
10
- document . firstElementChild . lang = 'fr' ;
11
- }
12
- </ script >
13
8
< script type ="module " src ="../../dist/mapml.js "> </ script >
14
9
< link rel ="stylesheet " href ="../embeded-demo-style.css "/>
15
10
Original file line number Diff line number Diff line change 5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
7
< title > Demo</ title >
8
- < script >
9
- if ( window . parent . location . href . includes ( '/fr/' ) ) {
10
- document . firstElementChild . lang = 'fr' ;
11
- }
12
- </ script >
13
8
< script type ="module " src ="../../dist/mapml.js "> </ script >
14
9
< link rel ="stylesheet " href ="../embeded-demo-style.css "/>
15
10
Original file line number Diff line number Diff line change 5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
7
< title > Demo</ title >
8
- < script >
9
- if ( window . parent . location . href . includes ( '/fr/' ) ) {
10
- document . firstElementChild . lang = 'fr' ;
11
- }
12
- </ script >
13
8
< script type ="module " src ="../../dist/mapml.js "> </ script >
14
9
< link rel ="stylesheet " href ="../embeded-demo-style.css "/>
15
10
Original file line number Diff line number Diff line change 5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
7
< title > Demo</ title >
8
- < script >
9
- if ( window . parent . location . href . includes ( '/fr/' ) ) {
10
- document . firstElementChild . lang = 'fr' ;
11
- }
12
- </ script >
13
8
< script type ="module " src ="../../dist/mapml.js "> </ script >
14
9
< link rel ="stylesheet " href ="../embeded-demo-style.css "/>
15
10
Original file line number Diff line number Diff line change 5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
7
< title > Demo</ title >
8
- < script >
9
- if ( window . parent . location . href . includes ( '/fr/' ) ) {
10
- document . firstElementChild . lang = 'fr' ;
11
- }
12
- </ script >
13
8
< script type ="module " src ="../../dist/mapml.js "> </ script >
14
9
< link rel ="stylesheet " href ="../embeded-demo-style.css "/>
15
10
Original file line number Diff line number Diff line change 5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
7
< title > Demo</ title >
8
- < script >
9
- if ( window . parent . location . href . includes ( '/fr/' ) ) {
10
- document . firstElementChild . lang = 'fr' ;
11
- }
12
- </ script >
13
8
< script type ="module " src ="../../dist/mapml.js "> </ script >
14
9
< link rel ="stylesheet " href ="../embeded-demo-style.css "/>
15
10
Original file line number Diff line number Diff line change 5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
7
< title > Demo</ title >
8
- < script >
9
- if ( window . parent . location . href . includes ( '/fr/' ) ) {
10
- document . firstElementChild . lang = 'fr' ;
11
- }
12
- </ script >
13
8
< script type ="module " src ="../../dist/mapml.js "> </ script >
14
9
< link rel ="stylesheet " href ="../embeded-demo-style.css "/>
15
10
Original file line number Diff line number Diff line change 5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
7
< title > Demo</ title >
8
- < script >
9
- if ( window . parent . location . href . includes ( '/fr/' ) ) {
10
- document . firstElementChild . lang = 'fr' ;
11
- }
12
- </ script >
13
8
< script type ="module " src ="../../dist/mapml.js "> </ script >
14
9
< link rel ="stylesheet " href ="../embeded-demo-style.css "/>
15
10
Original file line number Diff line number Diff line change 5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
7
< title > Demo</ title >
8
- < script >
9
- if ( window . parent . location . href . includes ( '/fr/' ) ) {
10
- document . firstElementChild . lang = 'fr' ;
11
- }
12
- </ script >
13
8
< script type ="module " src ="../../dist/mapml.js "> </ script >
14
9
< link rel ="stylesheet " href ="../embeded-demo-style.css "/>
15
10
Original file line number Diff line number Diff line change 5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
7
< title > Demo</ title >
8
- < script >
9
- if ( window . parent . location . href . includes ( '/fr/' ) ) {
10
- document . firstElementChild . lang = 'fr' ;
11
- }
12
- </ script >
13
8
< script type ="module " src ="../../dist/mapml.js "> </ script >
14
9
< link rel ="stylesheet " href ="../embeded-demo-style.css "/>
15
10
Original file line number Diff line number Diff line change 5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
7
< title > Sandbox</ title >
8
- < script >
9
- if ( window . parent . location . href . includes ( '/fr/' ) ) {
10
- document . firstElementChild . lang = 'fr' ;
11
- }
12
- </ script >
13
8
< script type ="module " src ="../../dist/mapml.js "> </ script >
14
9
< link rel ="stylesheet " href ="../sandbox.css "/>
15
10
You can’t perform that action at this time.
0 commit comments