Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Houtan Bastani
website
Commits
cb3bca0c
Commit
cb3bca0c
authored
Oct 23, 2018
by
Houtan Bastani
Browse files
add onkeypress for accessibility
parent
e3f54345
Changes
3
Hide whitespace changes
Inline
Side-by-side
_includes/download-snapshot.html
View file @
cb3bca0c
...
...
@@ -22,7 +22,7 @@
{% assign snapshot_files = (site.static_files | where: "snapshot", "windows-exe" | sort: 'modified_time') | reverse %}
{% for snapshot in snapshot_files %}
{% if snapshot.extname == ".exe" %}
<div
class=
"download_row"
onclick=
"document.location = '{{ snapshot.path }}'"
>
<div
class=
"download_row"
onclick=
"document.location = '{{ snapshot.path
}}'"
onkeypress=
"document.location = '{{ snapshot.path
}}'"
>
<div
class=
"download_cell_left"
><i
class=
"icon-document-download"
></i>
{{ snapshot.modified_time | date: "%Y %b %d %R" }}
</div>
<div
class=
"download_cell_right"
><a
href=
"#"
>
{{ snapshot.name }}
</a></div>
</div>
...
...
@@ -35,7 +35,7 @@
{% assign snapshot_files = (site.static_files | where: "snapshot", "windows-zip" | sort: 'modified_time') | reverse %}
{% for snapshot in snapshot_files %}
{% if snapshot.extname == ".zip" %}
<div
class=
"download_row"
onclick=
"document.location = '{{ snapshot.path }}'"
>
<div
class=
"download_row"
onclick=
"document.location = '{{ snapshot.path
}}'"
onkeypress=
"document.location = '{{ snapshot.path
}}'"
>
<div
class=
"download_cell_left"
><i
class=
"icon-document-download"
></i>
{{ snapshot.modified_time | date: "%Y %b %d %R" }}
</div>
<div
class=
"download_cell_right"
><a
href=
"#"
>
{{ snapshot.name }}
</a></div>
</div>
...
...
@@ -57,7 +57,7 @@
{% assign snapshot_files = (site.static_files | where: "snapshot", "macosx" | sort: 'modified_time') | reverse %}
{% for snapshot in snapshot_files %}
{% if snapshot.extname == ".zip" %}
<div
class=
"download_row"
onclick=
"document.location = '{{ snapshot.path }}'"
>
<div
class=
"download_row"
onclick=
"document.location = '{{ snapshot.path
}}'"
onkeypress=
"document.location = '{{ snapshot.path
}}'"
>
<div
class=
"download_cell_left"
><i
class=
"icon-document-download"
></i>
{{ snapshot.modified_time | date: "%Y %b %d %R" }}
</div>
<div
class=
"download_cell_right"
><a
href=
"#"
>
{{ snapshot.name }}
</a></div>
</div>
...
...
@@ -83,7 +83,7 @@
{% assign snapshot_files = (site.static_files | where: "snapshot", "source" | sort: 'modified_time') | reverse %}
{% for snapshot in snapshot_files %}
{% if snapshot.extname == ".xz" %}
<div
class=
"download_row"
onclick=
"document.location = '{{ snapshot.path }}'"
>
<div
class=
"download_row"
onclick=
"document.location = '{{ snapshot.path
}}'"
onkeypress=
"document.location = '{{ snapshot.path
}}'"
>
<div
class=
"download_cell_left"
><i
class=
"icon-document-download"
></i>
{{ snapshot.modified_time | date: "%Y %b %d %R" }}
</div>
<div
class=
"download_cell_right"
><a
href=
"#"
>
{{ snapshot.name }}
</a></div>
</div>
...
...
_includes/masthead.html
View file @
cb3bca0c
...
...
@@ -3,7 +3,7 @@
<div
class=
"masthead__menu"
>
<nav
id=
"site-nav"
class=
"greedy-nav"
>
<div
class=
"dynare_masthead_image_container_load_hover"
></div>
<div
class=
"dynare_masthead_image_container"
onclick=
"location.href='{{ '/' | relative_url }}'"
></div>
<div
class=
"dynare_masthead_image_container"
onclick=
"location.href='{{ '/' | relative_url
}}'"
onkeypress=
"location.href='{{ '/' | relative_url
}}'"
></div>
<ul
class=
"visible-links"
id=
"dynare_masthead_ul"
>
{%- for link in site.data.navigation.main -%}
{%- if link.url contains '://' -%}
...
...
index.md
View file @
cb3bca0c
...
...
@@ -63,7 +63,7 @@ We organize a Summer School and a Conference every year (applications every Spri
</div>
</div>
{% for post in site.posts limit:1 %}
<div
class=
"dynare_home_page_post_box"
onclick=
"location.href='{{ post.url }}';"
><h3
class=
"dynare_home_page_post_title"
>
{{ post.title }}
</h3>
<div
class=
"dynare_home_page_post_box"
onclick=
"location.href='{{ post.url
}}';"
onkeypress=
"location.href='{{ post.url
}}';"
><h3
class=
"dynare_home_page_post_title"
>
{{ post.title }}
</h3>
<span
class=
"dynare_home_page_date"
>
{{ post.date | date_to_long_string }}
</span>
{{ post.excerpt }}
</div>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment