-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
74 lines (61 loc) · 2.9 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Fuck it, Ship it for your Desktop</title>
<meta property="og:title" content="Fuck it, Ship it for your Desktop" />
<meta property="og:description" content="Automatically changes your desktop background every 5 minutes to a random 'Fuck it, Ship it' image." />
<meta property="og:image" content="http://fisidesktop.herokuapp.com/facebook.png" />
<meta property="og:url" content="http://fisidesktop.herokuapp.com/" />
<meta property="og:type" content="website" />
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<style>
.container {
margin-top: 40px;
text-align: center;
color: white;
}
img {
width: 320px;
}
a, a:hover, a:focus, a:active {
color: white;
text-decoration: underline;
}
</style>
</head>
<body>
<div class="container" id="container">
<script>
function rand(min, max) {
return min + Math.random() * (max - min);
}
function randomColor() {
var h = rand(1, 360);
var s = rand(50, 100);
var l = rand(25, 30);
return 'hsl(' + h + ',' + s + '%,' + l + '%)';
}
document.body.style.background = randomColor();
var img = document.createElement("img");
img.setAttribute('src', '/png?' + rand(0, 100000));
img.setAttribute('alt', 'Fuck it, Ship it');
document.getElementById('container').appendChild(img);
</script>
<h1 hidden>Fuck it, Ship it</h1>
<h2>for your Desktop</h2>
<p>Automatically changes your desktop background every 5 minutes to a random "Fuck it, Ship it" image.</p>
<p><a href="https://github.com/kern/fisidesktop/raw/master/dist/FISI.zip">Download the app</a> or submit a "Fuck it, Ship it" via <a href="https://github.com/kern/fisidesktop">pull request</a>.</p>
<p>Made with ♥ by <a href="https://twitter.com/KernCanCode">@KernCanCode</a>.</p>
</div>
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='//www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-53450938-1');ga('send','pageview');
</script>
</body>
</html>