-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.php
176 lines (152 loc) · 4.17 KB
/
index.php
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!doctype html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Welcome to Memcached Cloud on Heroku</title>
<style>
html {
background: black;
}
body {
background: #333;
background: -webkit-linear-gradient(top, black, #666);
background: -o-linear-gradient(top, black, #666);
background: -moz-linear-gradient(top, black, #666);
background: linear-gradient(top, black, #666);
color: white;
font-family: "Helvetica Neue", Helvetica, "Liberation Sans", Arial, sans-serif;
width: 40em;
margin: 0 auto;
padding: 1em 3em 3em 3em;
}
a {
color: white;
}
h1 {
text-transform: capitalize;
-moz-text-shadow: -1px -1px 0 black;
-webkit-text-shadow: 2px 2px 2px black;
text-shadow: -1px -1px 0 black;
box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.5);
background: #CC0000;
width: 22.5em;
margin: 1em -2em;
padding: .3em 0 .3em 1.5em;
position: relative;
}
h1:before {
content: '';
width: 0;
height: 0;
border: .5em solid #91010B;
border-left-color: transparent;
border-bottom-color: transparent;
position: absolute;
bottom: -1em;
left: 0;
z-index: -1000;
}
h1:after {
content: '';
width: 0;
height: 0;
border: .5em solid #91010B;
border-right-color: transparent;
border-bottom-color: transparent;
position: absolute;
bottom: -1em;
right: 0;
z-index: -1000;
}
h2 {
margin: 2em 0 .5em;
border-bottom: 1px solid #999;
}
pre {
background: black;
padding: 1em 0 0;
-webkit-border-radius: 1em;
-moz-border-radius: 1em;
border-radius: 1em;
color: #9cf;
}
ul {
margin: 0;
padding: 0;
}
li {
list-style-type: none;
padding: .5em 0;
}
.brand {
display: block;
text-decoration: none;
}
.brand .brand-image {
float: left;
border: none;
}
.brand .brand-text {
float: left;
font-size: 24px;
line-height: 24px;
padding: 4px 0;
color: white;
text-transform: uppercase;
}
.brand:hover,
.brand:active {
text-decoration: underline;
}
.brand:before,
.brand:after {
content: ' ';
display: table;
}
.brand:after {
clear: both;
}
</style>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript">
function getResponse( command ) {
$( "#response" ).load( "/command.php?a=" + command);
}
</script>
</head>
<body>
<table style="width: 100%; padding: 0;">
<tr>
<td>
<a href="https://addons.heroku.com/memcachedcloud"><img alt="Heroku" align="left" src="http://d1lpkba4w1baqt.cloudfront.net/heroku-logo-dark-234x60.png" /></a>
</td>
<td style="text-align: right;">
<a href="http://redislabs.com/"><img alt="Redis Labs" align="right" src="/public/200x40_redislabs_mem_circle.png" /></a>
</td>
</tr>
</table>
<h1 style="margin-top: 0;">
Welcome to Memcached Cloud on Heroku
</h1>
<h2>Actions</h2>
<a id="set-command" href="#" onclick="getResponse('set');return false;">Click here to <b>set</b> a key in Memcached Cloud</a><br /><br />
<a id="get-command" href="#" onclick="getResponse('get');return false;">Click here to <b>get</b> a key from Memcached Cloud</a><br /><br />
<a id="get-command" href="#" onclick="getResponse('delete');return false;">Click here to <b>delete</b> a key from Memcached Cloud</a><br /><br />
<a id="stats-command" href="#" onclick="getResponse('stats');return false;">Click here to get <b>stats</b> about your Memcached Cloud bucket</a><br /><br />
<h2>Response</h2>
<div style="border: 1px solid green; background-color: black; padding: 10px 20px; min-height: 53px;">
<p>
<div id="response"></div>
</p>
</div>
<h2>
What's next?
</h2>
<ul>
<li>
Learn more at <a href="http://redislabs.com/" target="_blank">Redis Labs</a>
</li>
</ul>
</body>
</html>