Skip to content

Commit

Permalink
FTR
Browse files Browse the repository at this point in the history
- Changes to JS to get thumbnails to be numbered
  • Loading branch information
sk5 committed May 30, 2019
1 parent 06f54ca commit cae8062
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .vs/config/applicationhost.config
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,14 @@
<binding protocol="http" bindingInformation="*:49841:localhost" />
</bindings>
</site>
<site name="fortherun(3)" id="5">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\Users\shawn\source\repos\fortherun" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:49800:localhost" />
</bindings>
</site>
<siteDefaults>
<logFile logFormat="W3C" directory="%IIS_USER_HOME%\Logs" />
<traceFailedRequestsLogging directory="%IIS_USER_HOME%\TraceLogFiles" enabled="true" maxLogFileSizeKB="1024" />
Expand Down
2 changes: 1 addition & 1 deletion BC-Product.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<!-- 1. Add unique class names to onclick and the images above -->
<!-- 2. When clicking a unique thumbnail, show the corresponding image -->
<!-- 3. Hide all other child images parent <li>'s -->
<a href="#" class="product__thumbnail--link" onclick="show(1)">
<a href="#" class="product__thumbnail--link">
<img class="product--image" src="{{ image | product_image_url | constrain: 300 }}" alt="Image of {{ product.name | escape }}">
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion assets/scripts/product-slideshow.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// Auto increment thumbnails
var thumbnailList = document.getElementsByClassName("product__thumbnail--link");
for (var j = 0; j < thumbnailList.length; j++) {
list[j].setAttribute("onclick", "show" + j);
thumbnailList[j].setAttribute("onclick", "show" + j);
}
};

Expand Down

0 comments on commit cae8062

Please sign in to comment.