-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogo.html
executable file
·121 lines (110 loc) · 4.59 KB
/
logo.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
<!DOCTYPE html>
<html lang="en">
<!--
- HI!
- INTERESTING, SOMEONE IS LOOKING AT THE CODE OF THIS CRAPPY SITE :)
- DANIEL
-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Javaslang Logo">
<meta name="author" content="Daniel Dietrich">
<title>Javaslang Logo</title>
<link rel="shortcut icon" href="img/favicon.ico" />
<link rel="apple-touch-icon" href="img/apple-touch-icon-precomposed.png">
<link rel="apple-touch-icon" sizes="72x72" href="img/apple-touch-icon-72x72-precomposed.png">
<link rel="apple-touch-icon" sizes="114x114" href="img/apple-touch-icon-114x114-precomposed.png">
<link rel="apple-touch-icon" sizes="144x144" href="img/apple-touch-icon-144x144-precomposed.png">
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-slider/9.2.0/css/bootstrap-slider.min.css" type="text/css">
<style>
.logo {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: url('img/javaslang.svg') no-repeat fixed center;
background-size: 200px 200px;
}
.slider-handle.custom::before {
line-height: 20px;
font-size: 20px;
content: '\1F984';
}
.color-label {
font-weight: bold;
}
div.row {
margin-top: 8px;
}
</style>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- google analytics -->
<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-62872702-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body id="RGB">
<div class="logo"></div>
<div class="container">
<h1 id="headline">JΛVΛSLΛNG</h1>
<div class="row">
<div class="color-label col-xs-1" style="color:red">Red</div>
<div class="col-xs-11">
<input type="text" class="span2" value="" id="R" data-slider-id="RC" data-slider-min="0" data-slider-max="255" data-slider-step="1" data-slider-value="255" data-slider-tooltip="hide" data-slider-handle="custom" />
</div>
</div>
<div class="row">
<div class="color-label col-xs-1" style="color:green">Green</div>
<div class="col-xs-11">
<input type="text" class="span2" value="" id="G" data-slider-id="GC" data-slider-min="0" data-slider-max="255" data-slider-step="1" data-slider-value="255" data-slider-tooltip="hide" data-slider-handle="custom" />
</div>
</div>
<div class="row">
<div class="color-label col-xs-1" style="color:blue">Blue</div>
<div class="col-xs-11">
<input type="text" class="span2" value="" id="B" data-slider-id="BC" data-slider-min="0" data-slider-max="255" data-slider-step="1" data-slider-value="255" data-slider-tooltip="hide" data-slider-handle="custom" />
</div>
</div>
</div>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-slider/9.2.0/bootstrap-slider.min.js"></script>
<script>
$(document).ready(function(){
var invert = function(byte) {
return 255 - byte;
}
var RGBChange = function() {
var r_val = r.getValue();
var g_val = g.getValue();
var b_val = b.getValue();
$('#RGB').css('background', 'rgb(' + r_val + ',' + g_val + ',' + b_val + ')');
$('#headline').css('color', 'rgb('+invert(r_val)+','+invert(g_val)+','+invert(b_val)+')');
};
var initSlider = function(element) {
return element.slider()
.on('slide', RGBChange)
.on('slideStop', RGBChange)
.data('slider');
};
var r = initSlider($('#R'));
var g = initSlider($('#G'));
var b = initSlider($('#B'));
});
</script>
</body>
</html>