forked from fiorix/mustash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
111 lines (94 loc) · 4.11 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>musta.sh</title>
<meta name="description" content="mustache heroes">
<meta name="author" content="stash man">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
<link href={{ static_url("bootstrap.css") }} rel="stylesheet">
<link rel="shortcut icon" href={{ static_url("images/favicon.ico") }}>
<link rel="apple-touch-icon" href={{ static_url("images/apple-touch-icon.png") }}>
<link rel="apple-touch-icon" sizes="72x72" href={{ static_url("images/apple-touch-icon-72x72.png") }}>
<link rel="apple-touch-icon" sizes="114x114" href={{ static_url("images/apple-touch-icon-114x114.png") }}>
<!-- scripts, etc -->
<script src="http://code.jquery.com/jquery-1.7.min.js"></script>
<script src={{ static_url("js/bootstrap-alerts.js") }}></script>
<script src={{ static_url("js/bootstrap-modal.js") }}></script>
<script type="text/javascript">
$(document).ready(function(){
$(".alert-message").alert();
$("#sample").modal();
});
</script>
</head>
<body>
<div id="sample" class="modal hide fade">
<div class="modal-header">
<a href="#" class="close">×</a>
<h3>musta.sh FTW</h3>
</div>
<div class="modal-body">
<p>Point any image to http://musta.sh/mustashify?q=URL and get a mustache on it.</p>
<img src="/mustashify?q=http://bit.ly/udwZWi" width="500" />
</div>
</div>
<br />
<div class="container">
<!-- Main hero unit for a primary marketing message or call to action -->
<div class="hero-unit">
<div class="row">
<div class="span4"><img src={{ static_url("mini-mustache.png") }}/></div>
<div class="span8"><h1>Hello, world</h1></div>
</div>
<p>You have never seen anything like this before. This web site will show you how amazing the web can be, and how much fun a programmer can have with some spare time.</p>
<p><a class="btn primary large" data-controls-modal="sample" data-backdrop="static">Like this »</a></p>
</div>
<!-- Example row of columns -->
<div class="row">
<div class="span-two-thirds">
<h2>Try it yourself</h2>
<p>Paste or type any URL in the input below and click the button.</p>
<form>
<div class="row">
<div class="span8">
<input class="xlarge span8" name="q" type="text"/>
<span class="help-block">try <a href="/?q=http://ufc.com">ufc.com</a>, <a href="/?q=http://cnn.com">cnn.com</a>, or just paste a URL to a <a href="/?q=http://7co.cc/9O">picture of yourself</a></span>
</div>
<div class="span2">
<input class="btn primary" type="submit" value="Go!"/>
</div>
</div>
</form>
{% if err.get("url") == True %}
<div class="alert-message error">
<p><strong>Hey, bro</strong> come on. Give me a URL!</p>
</div>
{% end %}
{% if err.get("fetch") == True %}
<div class="alert-message error">
<p><strong>What's up?</strong> Just give me a proper URL.</p>
</div>
{% end %}
{% if err.get("html") == True %}
<div class="alert-message error">
<p><strong>Oops!</strong> Perhaps that page's got a broken HTML.</p>
</div>
{% end %}
</div> <!-- span-two-thirds -->
<div class="span-one-third">
<h2>It's on GitHub</h2>
<p>If you're a developer, I'm pretty sure not only you're thinking about playing with the source code, but also you're considering growing a mustache.</p>
<p><a class="btn" href="http://github.com/fiorix/mustash">Check it out »</a></p>
</div>
</div>
<footer>
<p>© musta.sh 2011</p>
</footer>
</div> <!-- /container -->
</body>
</html>