-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
136 lines (118 loc) · 3.13 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
<!DOCTYPE html>
<meta charset="utf-8">
<title>Printable Hack</title>
<style>
html, body {
background: #FFC328;
font-family: Baskerville, Georgia, serif;
font-size: 18pt;
width: 8in;
margin: 10pt auto;
padding: 0;
}
h1 {
font-weight: inherit;
font-size: 36pt;
margin-top: 10pt;
margin-bottom: 10pt;
}
div#header {
text-align: center;
}
a {
color: inherit;
text-decoration: inherit;
font-style: italic;
}
a:hover {
text-decoration: underline;
}
.description a[href="http://hackasaurus.org"] {
font-style: normal;
}
a#shorturl {
font-size: 12pt;
position: relative;
top: -1.5em;
font-style: inherit;
}
div#header img#hackasaurus_logo {
}
img#dino {
width: 50%;
float: right;
}
div#screenshot-holder {
text-align: center;
}
img#screenshot {
width: 100%;
}
div#footer {
clear: both;
padding-top: 0.5em;
padding-bottom: 0.5em;
border-top: 1px dotted black;
border-bottom: 1px dotted black;
text-align: right;
}
div#footer img {
width: 72pt;
}
form div {
text-align: center;
}
input {
font-family: inherit;
font-size: inherit;
border: none;
}
input#url {
display: block;
width: 100%;
margin-top: 1em;
}
input#submit {
margin-top: 1em;
background: #B2E725;
padding: 10pt;
}
div#instructions {
border-top: 1px dotted black;
margin-top: 1em;
text-align: left;
}
div#instructions li {
padding: 0.5em;
}
</style>
<script src="jquery.min.js"></script>
<script src="load-screenshot.js"></script>
<form method="get" style="display: none">
<div>
Enter the Flickr URL of a hack here: <input type="text" id="url" name="url">
</div>
<div><input type="submit" id="submit" value="Print That Hack!"></div>
<div id="instructions">
<h1>Tips</h1>
<ul>
<li>It's possible to remove Firefox's default headers and footers from the page layout; see the Firefox Support article entitled <a href="http://support.mozilla.com/en-US/kb/Printing%20a%20web%20page#Print_window_settings">Printing A Web Page</a> for instructions.</li>
<li>The page design was created with the <a href="http://www.flickr.com/photos/hackasaurus/5644398032">Failbook</a> hack as a test case, so try to make your hack have a similar aspect ratio, or else some information might not fit on the first printed page.</li>
<li>If there's anything on the printed page that you want to change, such as the title, description, or dimensions of the screenshot, you can use the <a href="https://secure.toolness.com/webxray/">Hacker Goggles</a> to do so. Any changes you make with them will show up in the printed version.</li>
</ul>
</div>
</form>
<div id="container" style="display: none">
<div id="header">
<img id="hackasaurus_logo" src="hackasaurus_logo.svg">
<h1 class="title"></h1>
<a id="shorturl" href=""></a>
</div>
<div id="body">
<div id="screenshot-holder"><a id="flickr_link" href=""><img id="screenshot" src=""></a></div>
<img id="dino" src="dino.svg">
<p class="description"></p>
<p>To learn about more ways to hack and craft on the Web, visit <a href="http://hackasaurus.org">hackasaurus.org</a>.</p>
</div>
<div id="footer"><img src="mozilla_logo.svg"></div>
</div>