-
Notifications
You must be signed in to change notification settings - Fork 33
/
index.html
173 lines (158 loc) · 7.79 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<!DOCTYPE>
<html>
<head>
<style>
body {
font-family: sans-serif;
}
#container {
padding: 20px;
margin: 20px auto;
width: 400px;
border-radius: 3px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-ms-border-radius: 3px;
-o-border-radius: 3px;
}
#container p{
display: block;
margin: 0px auto 20px auto;
text-align: center;
}
#bookmarklet {
display: block;
font-weight: bold;
text-tranform: uppercase;
color: white;
background: #8904C7;
text-align: left;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-ms-border-radius: 3px;
-o-border-radius: 3px;
border-radius: 3px;
border-bottom: 2px solid #DFA5FA;
text-shadow: 0 1px 1px #DFA5FA;
font-size: 16px;
overflow: hidden;
cursor: move;
padding: 10px;
-webkit-user-select: none;
text-decoration: none;
text-transform: uppercase;
text-align: center;
}
#bookmarklet:hover {
border-bottom: 2px solid #6E4980;
text-shadow: 0 1px 1px #6E4980;
}
#bookmarklet:active {
border-bottom: none;
border-top: 2px solid #bd460a;
text-shadow: 0 1px 1px #a53d09;
}
.powered {
font-size: 10px;
color: #ddd;
text-align: center;
}
.powered a {
color: #ddd;
}
#img {
margin-bottom: 50px;
}
#dfw {
-webkit-animation: tdfwIntro 1s ease-in-out 2s infinite;
animation: tdfwIntro 1s ease-in-out 2s infinite;
}
.share {
margin-top: 50px;
text-align: center;
}
@-webkit-keyframes tdfwIntro { 0% { -webkit-transform: translate(0x,0px); transform: translate(0px,0px); } 10% { -webkit-transform: translate(-4px,1px); transform: translate(-4px,1px); } 20% { -webkit-transform: translate(0px,-4px); transform: translate(0px,-4px); } 30% { -webkit-transform: translate(-3px,0px); transform: translate(-3px,0px); } 40% { -webkit-transform: translate(0px,-2px); transform: translate(0px,-2px); } 50% { -webkit-transform: translate(-4px,-4px); transform: translate(-4px,-4px); } 60% { -webkit-transform: translate(-1px,0px); transform: translate(-1px,0px); } 70% { -webkit-transform: translate(2px,2px); transform: translate(2px,2px); } 80% { -webkit-transform: translate(0px,-1px); transform: translate(0px,-1px); } 90% { -webkit-transform: translate(0px,-3px); transform: translate(0px,-3px); } 100% { -webkit-transform: translate(4px,-2px); transform: translate(4px,-2px); } } @keyframes tdfwIntro { 0% { -webkit-transform: translate(-1px,-1px); transform: translate(-1px,-1px); } 10% { -webkit-transform: translate(-4px,1px); transform: translate(-4px,1px); } 20% { -webkit-transform: translate(0px,-4px); transform: translate(0px,-4px); } 30% { -webkit-transform: translate(-3px,0px); transform: translate(-3px,0px); } 40% { -webkit-transform: translate(0px,-2px); transform: translate(0px,-2px); } 50% { -webkit-transform: translate(-4px,-4px); transform: translate(-4px,-4px); } 60% { -webkit-transform: translate(-1px,0px); transform: translate(-1px,0px); } 70% { -webkit-transform: translate(2px,2px); transform: translate(2px,2px); } 80% { -webkit-transform: translate(0px,-1px); transform: translate(0px,-1px); } 90% { -webkit-transform: translate(0px,-3px); transform: translate(0px,-3px); } 100% { -webkit-transform: translate(4px,-2px); transform: translate(4px,-2px); } }
</style>
<title>Turndownforwhat.JS</title>
<meta property="og:title" content="Turndownforwhat.JS" />
<meta property="og:url" content="https://nthitz.github.io/turndownforwhatjs/"/>
<meta property="og:image" content="http://i.imgur.com/pLrq0jF.png" />
<meta property="og:type" content="website" />
<meta property="og:description" content="Turn webpages Down For What with the click of a button. Turndownforwhat.js makes any website a party." />
<meta property="description" content="Turn webpages Down For What with the click of a button. Turndownforwhat.js makes any website a party." />
<meta name="keywords" content="turn down for what, turndownforwhat, turndownforwhat.js, tdfw, tdfw.js, turn down for what javascript, bookmarklet, tdfw bookmarklet, turn down for what bookmarklet"
</head>
<body>
<div id="container">
<div id='img'></div>
<p> Drag this button to your bookmarks bar to turn any website <span id="dfw">down for what</span> </p>
<a id="bookmarklet" href='javascript:(function()%7Bjavascript:var%20s%3Ddocument.createElement(%27script%27)%3Bs.setAttribute(%27src%27,%27https://nthitz.github.io/turndownforwhatjs/tdfw.js%27)%3Bdocument.body.appendChild(s)%3B%7D)()%3B'>turndownforwhat</a>
<div class="share">
<a class="twitter-share-button" href="https://twitter.com/share?text=Turn%20websites%20down%20for%20what&url=http://nthitz.github.io/turndownforwhatjs/"></a>
<div class="fb-share-button" data-layout="button_count" data-href="https://nthitz.github.io/turndownforwhatjs/"></div>
</div>
</div>
<p class='powered'> Made by
<a href="https://twitter.com/nthitz">nthitz</a>
</p>
<script>
//HMIeMb7
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {
window.requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame'];
window.cancelAnimationFrame = window[vendors[x]+'CancelAnimationFrame']
|| window[vendors[x]+'CancelRequestAnimationFrame'];
}
if (!window.requestAnimationFrame)
window.requestAnimationFrame = function(callback, element) {
var currTime = new Date().getTime();
var timeToCall = Math.max(0, 16 - (currTime - lastTime));
var id = window.setTimeout(function() { callback(currTime + timeToCall); },
timeToCall);
lastTime = currTime + timeToCall;
return id;
};
if (!window.cancelAnimationFrame)
window.cancelAnimationFrame = function(id) {
clearTimeout(id);
};
}());
var imgs = ['pLrq0jF','jw0Sx4c','VKE4oTV'];
var imgSrc = imgs[~~ (Math.random() * imgs.length)];
imgSrc = 'http://i.imgur.com/' + imgSrc + '.png';
var img = document.createElement('img');
img.setAttribute('height', 400);
img.setAttribute('src', imgSrc);
document.getElementById('img').appendChild(img);
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-55426781-1', 'auto');
ga('send', 'pageview');
</script>
<script type="text/javascript">
window.twttr=(function(d,s,id){var t,js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id)){return}js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);return window.twttr||(t={_e:[],ready:function(f){t._e.push(f)}})}(document,"script","twitter-wjs"));
</script>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '353692794797913',
xfbml : true,
version : 'v2.1'
});
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
</body>
</html>