-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
152 lines (141 loc) · 7.39 KB
/
index.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<meta name="author" content="Rogério Vicente">
<meta name="description" content="An API for the awesome HTTP Cats! Use it in your website to show funny error messages.">
<meta name="keywords" content="httpcats, cats, error, http, lolcats">
<meta property="og:title" content="HTTP Status Cats API" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http:https://httpcats.herokuapp.com" />
<meta property="og:image" content="http:https://httpcats.herokuapp.com/500.jpg" />
<meta property="og:site_name" content="HTTP Status Cats API" />
<title>HTTP Status Cats API</title>
<link href='http:https://fonts.googleapis.com/css?family=Droid+Sans+Mono' rel='stylesheet' type='text/css'>
<!--[if IE]>
<script src="http:https://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style type="text/css">
body { background: #fff; font-size: 100%; line-height: 1.6em; color: #222; }
header { color: #000; margin-bottom: 2em; }
pre {
font-family: "Droid Sans Mono", Courier, monospace;
font-size: 95%;
background-color: #ccccff;
border: 1px solid #6699ff;
padding: 1.5em;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
overflow: auto;
}
code { font-family: "Droid Sans Mono", Courier, monospace; font-size: 90%; background-color: #ccccff; padding: 0.1em; }
#fb_area { margin-top: 3em; }
footer { margin-top: 3em; font-style: italic; }
#container { width: 44em; max-width: 90%; margin: 0 auto; }
#preview{
position:absolute;
display:none;
color:#fff;
}
#preview img { width: 200px; height: auto; }
</style>
</head>
<body>
<div id="container">
<header>
<h1>HTTP Status Cats API</h1>
</header>
<h2>Usage:</h2>
<pre>http:https://httpcats.herokuapp.com/[http_status_code]</pre>
<p>If you need for some reason to use an image extension, add <code>.jpg</code> to the URL.</p>
<h2>Available status codes:</h2>
<p>
<a class="preview" href="/100">100</a>
<a class="preview" href="/101">101</a>
<a class="preview" href="/200">200</a>
<a class="preview" href="/201">201</a>
<a class="preview" href="/202">202</a>
<a class="preview" href="/204">204</a>
<a class="preview" href="/206">206</a>
<a class="preview" href="/207">207</a>
<a class="preview" href="/300">300</a>
<a class="preview" href="/301">301</a>
<a class="preview" href="/302">302</a>
<a class="preview" href="/303">303</a>
<a class="preview" href="/304">304</a>
<a class="preview" href="/305">305</a>
<a class="preview" href="/307">307</a>
<a class="preview" href="/400">400</a>
<a class="preview" href="/401">401</a>
<a class="preview" href="/402">402</a>
<a class="preview" href="/403">403</a>
<a class="preview" href="/404">404</a>
<a class="preview" href="/405">405</a>
<a class="preview" href="/406">406</a>
<a class="preview" href="/408">408</a>
<a class="preview" href="/409">409</a>
<a class="preview" href="/410">410</a>
<a class="preview" href="/411">411</a>
<a class="preview" href="/413">413</a>
<a class="preview" href="/414">414</a>
<a class="preview" href="/416">416</a>
<a class="preview" href="/417">417</a>
<a class="preview" href="/418">418</a>
<a class="preview" href="/422">422</a>
<a class="preview" href="/423">423</a>
<a class="preview" href="/424">424</a>
<a class="preview" href="/425">425</a>
<a class="preview" href="/426">426</a>
<a class="preview" href="/429">429</a>
<a class="preview" href="/431">431</a>
<a class="preview" href="/444">444</a>
<a class="preview" href="/450">450</a>
<a class="preview" href="/500">500</a>
<a class="preview" href="/502">502</a>
<a class="preview" href="/503">503</a>
<a class="preview" href="/506">506</a>
<a class="preview" href="/507">507</a>
<a class="preview" href="/508">508</a>
<a class="preview" href="/509">509</a>
<a class="preview" href="/599">599</a>
</p>
<div id="fb_area"><iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FHTTP-Cats%2F262186450508456&width=292&height=62&colorscheme=light&show_faces=false&border_color&stream=false&header=false&appId=181277299089" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:62px;" allowTransparency="true"></iframe></div>
<footer>
<p>Developed by <a href="http:https://rogeriopvl.com">Rogério Vicente</a>. Images from <a href="http:https://www.flickr.com/photos/girliemac/sets/72157628409467125/with/6509400997/">GirlieMac</a>.</p>
</footer>
</div> <!-- container -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-27701865-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http:https://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript" charset="utf-8" src="http:https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8">
/*
* Image preview script
* written by Alen Grakalic (http:https://cssglobe.com), modified by me :)
*/
this.imagePreview = function() {
xOffset = 10;
yOffset = 30;
$("a.preview").hover(function(e) {
$("body").append("<p id='preview'><img src='" + this.href + "' alt='Image preview' /></p>");
$("#preview").css("top", (e.pageY - xOffset) + "px").css("left", (e.pageX + yOffset) + "px").fadeIn("fast");
}, function() {
$("#preview").remove();
});
$("a.preview").mousemove(function(e) {
$("#preview").css("top", (e.pageY - xOffset) + "px").css("left", (e.pageX + yOffset) + "px");
});
};
$(document).ready(function() {
imagePreview();
});
</script>
</body>
</html>