Commit cb3bca0c authored by Houtan Bastani's avatar Houtan Bastani

add onkeypress for accessibility

parent e3f54345
......@@ -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>&nbsp;{{ 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>&nbsp;{{ 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>&nbsp;{{ 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>&nbsp;{{ snapshot.modified_time | date: "%Y %b %d %R" }}</div>
<div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div>
</div>
......
......@@ -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 '://' -%}
......
......@@ -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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment