Skip to content

Added target blank to all links #153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions display-kml-on-map/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-data.js"></script>
<link rel="stylesheet" type="text/css" href="../template.css" />
<link rel="stylesheet" type="text/css" href="demo.css" />
<script type="text/javascript" src='../test-credentials.js'></script>
<script type="text/javascript" src='../test-credentials.js'></script>
<style type="text/css">
.log {
position: absolute;
Expand All @@ -39,10 +39,10 @@
</head>
<body>
<h1>Display KML Data</h1>
<p>This example shows a map of the <b>United States</b> from the <a href="https://www.census.gov">U.S. Census Bureau</a>, highlighting the borders of each state.
<p>This example shows a map of the <b>United States</b> from the <a href="https://www.census.gov" target="_blank">U.S. Census Bureau</a>, highlighting the borders of each state.
The data to display on the map has been read in from a KML file and loaded using the built-in KML parser.</p>
<p>The name of the state is logged when the user taps on the state's shape</p>
<div id="map"></div>
<script type="text/javascript" src='demo.js'></script>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion interactive-basemap/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h3>Code</h3>
<p>The code below adds a <codeph>change</codeph> event listener to the instance of the <code>H.map.render.webgl.Style</code> associated with the
layer's provider. Within this listener data layers 'places' and 'places.populated-places' are set as interactive and the
<code>tap</code> event listener is assigned to display the information in the info bubble. Please refer to the
<a href="https://www.here.com/docs/bundle/maps-api-for-javascript-api-reference/page/H.map.render.webgl.Style.html#setInteractive">setInteractive</a>
<a href="https://www.here.com/docs/bundle/maps-api-for-javascript-api-reference/page/H.map.render.webgl.Style.html#setInteractive" target="_blank">setInteractive</a>
method description for more information.
</p>
<script type="text/javascript" src='demo.js'></script>
Expand Down
4 changes: 2 additions & 2 deletions map-multi-language-support/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ <h3>Code</h3>
Alternate languages can be requested by adding the <code>lg</code> parameter to the tile requests.
That is done by calling createTileLayer method. 5th argument is list of key/value parameters which are
passed to the map tile service when requesting each tile.
A list of all supported map languages can be found in the API References of the underlying service used: <a href="https://www.here.com/docs/bundle/map-tile-developer-guide/page/topics/resource-base-maptile.html">HERE Map Tile API</a>
and <a href="https://www.here.com/docs/bundle/vector-tile-api-developer-guide/page/topics/languages.html">HERE Vector Tile API</a> </p>
A list of all supported map languages can be found in the API References of the underlying service used: <a href="https://www.here.com/docs/bundle/map-tile-developer-guide/page/topics/resource-base-maptile.html" target="_blank">HERE Map Tile API</a>
and <a href="https://www.here.com/docs/bundle/vector-tile-api-developer-guide/page/topics/languages.html" target="_blank">HERE Vector Tile API</a> </p>
<p>It is possible to specify map language for all layers at once when using <code>H.service.Platform.createDefaultLayers</code> method.</p>
<p>Language of the UI controls can be specified when calling <code>H.ui.UI.createDefault</code> method.
3rd argument is either a supported language code or a custom <code>H.ui.i18n.Localization object</code>.</p>
Expand Down
4 changes: 2 additions & 2 deletions open-infobubble/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ function addInfoBubble(map) {
}, false);

addMarkerToGroup(group, {lat: 53.439, lng: -2.221},
'<div><a href="https://www.mcfc.co.uk">Manchester City</a></div>' +
'<div><a href="https://www.mcfc.co.uk" target="_blank">Manchester City</a></div>' +
'<div>City of Manchester Stadium<br />Capacity: 55,097</div>');

addMarkerToGroup(group, {lat: 53.430, lng: -2.961},
'<div><a href="https://www.liverpoolfc.tv">Liverpool</a></div>' +
'<div><a href="https://www.liverpoolfc.tv" target="_blank">Liverpool</a></div>' +
'<div>Anfield<br />Capacity: 54,074</div>');
}

Expand Down