-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPhoButtons2.html
106 lines (96 loc) · 3.69 KB
/
PhoButtons2.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<style type="text/css">
body {
background: #a0a0ff url("MandalaBG.jpg") no-repeat center;
}
h1 {
font-size: 64px;
font-family: "Arial";
color: #f0f0f0;
}
h2 {
font-size: 30px;
}
p {
font-size: 14px;
}
.myButton {
-moz-box-shadow:inset 0px 1px 0px 0px #fff0f0;
-webkit-box-shadow:inset 0px 1px 0px 0px #fff0f0;
box-shadow:inset 0px 1px 0px 0px #fff0f0;
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #fff0f0), color-stop(1, #f6f0f0));
background:-moz-linear-gradient(top, #ffffff 5%, #f6f6f6 100%);
background:-webkit-linear-gradient(top, #fff0f0 5%, #f6f0f0 100%);
background:-o-linear-gradient(top, #fff0f0 5%, #f6f0f0 100%);
background:-ms-linear-gradient(top, #fff0f0 5%, #f6f0f0 100%);
background:linear-gradient(to bottom, #fff0f0 5%, #f6f0f0 100%);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0f0', endColorstr='#f6f0f0',GradientType=0);
background-color:#f00000;
-moz-border-radius:6px;
-webkit-border-radius:6px;
border-radius:6px;
border:1px solid #dcdcdc;
display:inline-block;
cursor:pointer;
color:#666666;
font-family:Arial;
font-size:64px;
font-weight:bold;
padding:6px 24px;
text-decoration:none;
text-shadow:0px 1px 0px #ffffff;
}
.myButton:hover {
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #f6f6f6), color-stop(1, #ffffff));
background:-moz-linear-gradient(top, #f6f6f6 5%, #ffffff 100%);
background:-webkit-linear-gradient(top, #f6f6f6 5%, #ffffff 100%);
background:-o-linear-gradient(top, #f6f6f6 5%, #ffffff 100%);
background:-ms-linear-gradient(top, #f6f6f6 5%, #ffffff 100%);
background:linear-gradient(to bottom, #f6f6f6 5%, #ffffff 100%);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6f6f6', endColorstr='#ffffff',GradientType=0);
background-color:#f6f6f6;
}
.myButton:active {
position:relative;
top:1px;
}
</style>
<html>
<body>
<center>
<h1>
Lower Eastside Girls Club<br>
Peace Mandala<br>
</h1>
<br>
<button type="button" class="myButton" onclick="functionCall('set_color', 'red')">Red</button><br>
<button type="button" class="myButton" onclick="functionCall('set_color', 'redwipe')">Wipe Red</button><br>
<button type="button" class="myButton" onclick="functionCall('set_color', 'blue')">Blue</button><br>
<button type="button" class="myButton" onclick="functionCall('set_color', 'bluewipe')">Wipe Blue</button><br>
<button type="button" class="myButton" onclick="functionCall('set_color', 'green')">Green</button><br>
<button type="button" class="myButton" onclick="functionCall('set_color', 'greenwipe')">Wipe Green</button><br>
<button type="button" class="myButton" onclick="functionCall('set_color', 'clear')">Clear All</button><br>
<button type="button" class="myButton" onclick="functionCall('set_color', 'rainbow')">Rainbow</button><br>
<button type="button" class="myButton" onclick="functionCall('set_color', 'rainbowcycle')">Rainbow Cycle</button><br>
<script src="http://cdn.jsdelivr.net/sparkjs/1.0.0/spark.min.js"></script>
<script>
var accessToken = "7930f1e841fb689a7c6cf79e7bd43f697367d72c";
var deviceID = "360023001747343338333633";
spark.on('login', function(response) {
console.log(response);
});
var callback = function(err, data) {
if (err) {
console.log('An error occurred while getting core attrs:', err);
}
else {
console.log('Core attr retrieved successfully:', data);
}
};
function functionCall(functionName, functionArgument){
spark.callFunction(deviceID, functionName, functionArgument, callback);
}
spark.login({ accessToken: accessToken });
</script>
</center>
</body>
</html>