Now that you have a working one-page website, we are going to add three (3) more pages that feature a gallery that is interactive using jQuery (a type of Javascript).
Now we are ready to add a new page that will feature a gallery. You will repeat some steps you did when you created your home page.
You will need to design how the gallery will look and export any images that are needed before you can create a new HTML file.
If you did not add this code during the "Interactivity" step, add this CSS code in the <head> tag under the code that links the other CSS files.
If you already completed this step, move forward and skip this step:
<link href="css/jquery.lightbox-0.5.css" rel="stylesheet" type="text/css">
<!-- Opening jQuery lightBox plugin -->
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.lightbox-0.5.js"></script>
<script type="text/javascript">
$(function() {
$('#gallery a').lightBox();
});
<!-- Closing jQuery lightBox plugin --></script>
<!--[if IE]-->
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<!--[endif]-->
Delete the div tags: col_2 and col_3.
<div id="stage">
<div id="col_1">
<h1> Gallery Theme Name</h1>
<p class="bodytext">Describe the theme and content for this specific page here. The paragraph should be unique and informative.</p>
<!--Closing Tag for col_1--></div>
<div id="gallery">
<ul>
</ul>
<!--Closing Tag for gallery--></div>
<!--Closing Tag for stage--></div>
<div id="gallery">
<ul>
<!--This is the code for Image #1-->
<li>
<a href="images/large/red_lg_1.jpg" title="Large Image title: © Source Link" data-lightbox="gallery">
<img src="images/thumbs/red_sm_1.jpg" alt="Thumbnail Image Description" title="Thumbnail Image Title"></a>
</li>
<!--This is the code for Image #2-->
<li>
<a href="images/large/red_lg_2.jpg" title="Large Image title: © Source Link" data-lightbox="gallery">
<img src="images/thumbs/red_sm_2.jpg" alt="Thumbnail Image Description" title="Thumbnail Image Title"></a>
</li>
<!--This is the code for Image...-->
<li>
<!--Add additional images individually as list items here-->
</li>
</ul>
<!--Closing Tag for gallery--></div>
These images must be in the the "thumbs" folder within the "images" folder.
These images must be in the the "large" folder within the "images" folder.