-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphoto-gallery.html
More file actions
46 lines (41 loc) · 1.03 KB
/
photo-gallery.html
File metadata and controls
46 lines (41 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
layout: default
images:
- image_path: /images/roundtable.jpg
title: Roundtable
- image_path: /images/jazz.jpg
title: Jazz
- image_path: /images/looking_down.jpg
title: Looking Down
- image_path: /images/park_day.jpg
title: Park Day
- image_path: /images/ticket_home.jpg
title: Ticket Home
- image_path: /images/smoke_break.jpg
title: Smoke Break
- image_path: /images/work_break.jpg
title: Work Break
- image_path: /images/big_ben.jpg
title: Big Ben
- image_path: /images/love_trafalgar.jpg
title: Love Trafalgar
---
<ul class="photo-gallery">
{% for image in page.images %}
<li><img src="{{ image.image_path }}" alt="{{ image.title}}"/></li>
{% endfor %}
</ul>
<script type="text/javascript">
colorLinks("#8912FF");
function colorLinks(hexColor)
{
var links = document.getElementsByTagName("a");
for(var i=0;i<links.length;i++)
{
if(links[i].href)
{
links[i].style.color = hexColor;
}
}
}
</script>