forked from AlloyTeam/PhyTouch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbutton.html
More file actions
47 lines (44 loc) · 1.41 KB
/
button.html
File metadata and controls
47 lines (44 loc) · 1.41 KB
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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<title>AlloyTouch</title>
<style>
.button {
background-color: #00ABEB;
border: 1px solid #c3c8cc;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
height: 29px;
font-size: 14px;
color: white;
text-align: center;
line-height: 26px;
width: 200px;
position:absolute;
top:50%;
left:50%;
margin-left:-100px;
margin-top:-15px;
}
.button.active {
background-color: #006389;
}
</style>
</head>
<body>
<a href="https://github.com/AlloyTeam/AlloyTouch" target="_blank" style="position: fixed; right: 0; top: 0; z-index: 3;width:140px;height:140px;">
<img src="//alloyteam.github.io/github.png" alt="">
</a>
<div class="button" id="button">AlloyTouch Button</div>
<script src="../alloy_touch.js"></script>
<script src="../alloy_touch.button.js"></script>
<script>
new AlloyTouch.Button("#button", function () {
console.log("you tapped me");
}, "active");
</script>
</body>
</html>