-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
152 lines (125 loc) · 4.33 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
<!DOCTYPE HTML>
<html>
<head>
<title>Blizzard</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<meta property="og:image" content="images/bg2.PNG" />
<link rel="stylesheet" href="assets/css/main.css" />
<link rel="stylesheet" href="assets/css/custom.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
<link rel="shortcut icon" type="image/png" href="images/favicon.png"/>
</head>
<body class="is-preload">
<!-- Wrapper -->
<div id="wrapper" class="fade-in">
<!-- Intro -->
<div id="intro">
<link href="https://fonts.googleapis.com/css?family=Raleway:200,100,400" rel="stylesheet" type="text/css" />
<h1>Attributing Responsibility</h1>
<h2 style="color:#b1aaaa">A Genuine Climate Action</h2>
</div>
<!-- Header -->
<div class="row bluerow" style="">
<div class="col-md-3 col-xs-12">
<div class="minibox">
<h2><a href = "sector.html" class="specialh2">sector</a></h2>
<p class="desktoponly"> Which sectors are harming our environment the most? Are commitments pledged in the right sectors? </p>
</div>
</div>
<div class="col-md-3 col-xs-12">
<div class="minibox">
<h2><a href = "country.html" class="specialh2">Country</a></h2>
<p class="desktoponly"> Which countries are the main actors? Are countries doing enough? </p>
</div>
</div>
<div class="col-md-3 col-xs-12">
<div class="minibox">
<h2><a href = "city.html" class="specialh2">City</a></h2>
<p class="desktoponly"> Are cities acting in accordance to their pledges? A look into pledges for different cities.</p>
</div>
</div>
</div>
<!-- Nav -->
<!-- Main -->
<!-- Footer -->
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
<script>
document.getElementById("para1").innerHTML = formatAMPM();
function formatAMPM() {
var d = new Date(),
months = ['January','Febuary','March','April','May','June','July','August','September','October','November','December'],
days = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];
return days[d.getDay()]+', '+months[d.getMonth()]+' '+d.getDate();
}
</script>
<script>
var hands = [];
hands.push(document.querySelector('#secondhand > *'));
hands.push(document.querySelector('#minutehand > *'));
hands.push(document.querySelector('#hourhand > *'));
var cx = 100;
var cy = 100;
function shifter(val) {
return [val, cx, cy].join(' ');
}
var date = new Date();
var hoursAngle = 360 * date.getHours() / 12 + date.getMinutes() / 2;
var minuteAngle = 360 * date.getMinutes() / 60;
var secAngle = 360 * date.getSeconds() / 60;
hands[0].setAttribute('from', shifter(secAngle));
hands[0].setAttribute('to', shifter(secAngle + 360));
hands[1].setAttribute('from', shifter(minuteAngle));
hands[1].setAttribute('to', shifter(minuteAngle + 360));
hands[2].setAttribute('from', shifter(hoursAngle));
hands[2].setAttribute('to', shifter(hoursAngle + 360));
for(var i = 1; i <= 12; i++) {
var el = document.createElementNS('http://www.w3.org/2000/svg', 'line');
el.setAttribute('x1', '100');
el.setAttribute('y1', '30');
el.setAttribute('x2', '100');
el.setAttribute('y2', '40');
el.setAttribute('transform', 'rotate(' + (i*360/12) + ' 100 100)');
el.setAttribute('style', 'stroke: #ffffff;');
document.querySelector('svg').appendChild(el);
}
</script>
</body>
</html>
<style>.col-md-3{
width:27%;
margin-left: 3% !important;
margin-right: 3% !important;
}
.minibox{
border:1px solid grey;
border-radius:10px;
color:#20124D;
font-size:25px;
padding:20px;
color:white;
text-align:center
}
.minibox a{
color:#B69545!important;
}
.minibox p{
font-size: 14px;
margin-top:-20px;
text-align:left;
}
.row{
margin: 0 0 0 0 !important;
}
html, body {
overflow: hidden !important;
}
</style>