diff --git a/content/people/images/henry_g_hat.jpg b/content/people/images/henry_g_hat.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f0ee8368d985c20cdee32cd9353f94217e3f66bc Binary files /dev/null and b/content/people/images/henry_g_hat.jpg differ diff --git a/content/people/images/strand_d_scowl.jpg b/content/people/images/strand_d_scowl.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ecdee103d8430bbe8a76fd71b54f2c5fee69a766 Binary files /dev/null and b/content/people/images/strand_d_scowl.jpg differ diff --git a/layouts/custom/people.html b/layouts/custom/people.html index 9a5d26b5b7dbe664f4b1a0d0442f2156ad18a9e9..2319f2a135763164d34ad16977f8443bbed8733b 100644 --- a/layouts/custom/people.html +++ b/layouts/custom/people.html @@ -48,7 +48,15 @@ {{ end }} <div class="column left"> {{ if not (eq .Params.pic "") }} - <img src="images/{{.Params.pic}}" alt="" class="pic"> + {{ if and (ne .Params.title "Strand_d") (ne .Params.title "Henry_g") }} + <img src="images/{{.Params.pic}}" id={{.Params.title}} alt="" class="pic"> + {{ end }} + {{ if (eq .Params.title "Strand_d") }} + <img src="images/{{.Params.pic}}" id={{.Params.title}} alt="" class="pic" onmouseover="changeImage({{.Params.title}}, 'images/strand_d_scowl.jpg')" onmouseleave="changeImage({{.Params.title}}, 'images/{{.Params.pic}}')"> + {{ end }} + {{ if (eq .Params.title "Henry_g") }} + <img src="images/{{.Params.pic}}" id={{.Params.title}} alt="" class="pic" onmouseover="changeImage({{.Params.title}}, 'images/henry_g_hat.jpg')" onmouseleave="changeImage({{.Params.title}}, 'images/{{.Params.pic}}')"> + {{ end }} {{ end }} </div> <div class="column right" style="text-align: justify"> @@ -85,4 +93,10 @@ </div> </div> +<script> + function changeImage(id,img){ + setTimeout(function() {document.getElementById(id).src=img;},5); + } +</script> + {{ partial "footer.html" . }} \ No newline at end of file