-
Notifications
You must be signed in to change notification settings - Fork 3
/
sample-2.02.html
79 lines (65 loc) · 2.17 KB
/
sample-2.02.html
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html>
<head>
<title>Web accessibility demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link type="image/ico" rel="shortcut icon" href="//resources.esri.com/favicon.ico">
<link type="image/ico" rel="icon" href="//resources.esri.com/favicon.ico">
<link rel="stylesheet" type="text/css" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
</head>
<body class="claro">
<style>
a {
display: inline-block;
}
.separator {
width: 150px;
}
*[role=button] {
cursor: pointer;
}
</style>
<header>
<h1 tabindex="0">Web accessibility demo</h1>
<h2 tabindex="0">Accessible actions</h2>
</header>
<main role="main">
<p>
<button onclick="window.open('https://plus.google.com/share?url=http://www.arcgis.com')">Share on Google+</button>
</p>
<img class="separator" src="assets/separator.png" alt="" />
<p>
<a href="http://www.facebook.com/sharer/sharer.php?u=http://www.arcgis.com" target="_blank">Share on Facebook</a>
</p>
<img class="separator" src="assets/separator.png" alt="" />
<p>
<a href="http://www.arcgis.com">
<img src="http://www.arcgis.com/apps/MapJournal/resources/tpl/viewer/icons/esri-logo.png" alt="Esri logo"/>
</a>
</p>
<img class="separator" src="assets/separator.png" alt="" />
<p>
<i tabindex="0" title="Share on Twitter"
class="icon ion-social-twitter" style="width: 32px"
role="button"
onclick="window.open('https://twitter.com/intent/tweet?text=Hello', '_blank');"></i>
</p>
</main>
<script type="text/javascript" src="http://code.jquery.com/jquery-2.1.3.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$("*[role=button]")
.on('keydown', function(e){
// Space or tab
if( e.keyCode === 13 || e.keyCode === 32 ) {
$(e.target).click();
}
});
});
</script>
</body>
</html>