HTML and CSS Reference
In-Depth Information
Bingo! We have our day-by-day line up ready. We now need to ensure our Google
Maps iframe renders when users click on the Locate on a map link. We also want
to use the same link to hide the map if the users want to do so.
First, we add some identifiable features to the anchor element used to trigger the
showing/hiding of map and the iframe for the maps, as shown in the following code
<p>The festival will be held on the beautiful
beaches of NgorTerrou Bi in Dakar.
<ahref="#" class="js-map-link">Locate it on a
<iframe id="venue-map" class="hidden"
height="350" frameborder="0" scrolling="no"
marginheight="0" marginwidth="0"
Then we use the following JavaScript to trigger the link:
$maplink = $('.js-map-link');
$maplinkText = $maplink.text();
$maplink.toggle(function() {
$maplink.text('Hide Map');
}, function() {
Now, let us look at how we can make our audio player work on all browsers.
Search WWH ::

Custom Search