Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
StrandLab2.net
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Strand Lab
StrandLab2.net
Commits
1602a8ee
Commit
1602a8ee
authored
5 years ago
by
Gervaise Henry
Browse files
Options
Downloads
Patches
Plain Diff
Add mouseover function for people images
parent
42f3415b
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!18
Develop
,
!16
Mouse.over.image
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
content/people/images/henry_g_hat.jpg
+0
-0
0 additions, 0 deletions
content/people/images/henry_g_hat.jpg
content/people/images/strand_d_scowl.jpg
+0
-0
0 additions, 0 deletions
content/people/images/strand_d_scowl.jpg
layouts/custom/people.html
+15
-1
15 additions, 1 deletion
layouts/custom/people.html
with
15 additions
and
1 deletion
content/people/images/henry_g_hat.jpg
0 → 100644
+
0
−
0
View file @
1602a8ee
1.4 MiB
This diff is collapsed.
Click to expand it.
content/people/images/strand_d_scowl.jpg
0 → 100644
+
0
−
0
View file @
1602a8ee
2.2 MiB
This diff is collapsed.
Click to expand it.
layouts/custom/people.html
+
15
−
1
View file @
1602a8ee
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment