-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
178 lines (178 loc) · 7.22 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
174
175
176
177
178
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta property="og:title" content="vota bene!" />
<meta property="og:type" content="cause" />
<meta property="og:url" content="http://votabene.herokuapp.com/" />
<meta property="og:image" content="http://votabene.herokuapp.com/image.png" />
<meta property="og:description" content="Semplice esplorazione delle radici dei nostri problemi. Oltre la crisi, oltre la retorica, le tracce di questi dieci anni a portata di mouse"/>
<meta property="og:site_name" content="vota bene!" />
<meta property="fb:admins" content="liberalogica" />
<title>Vota bene!</title>
<link href="http://fonts.googleapis.com/css?family=Lemon" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Playball" rel="stylesheet" type="text/css">
<link href="bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css">
<style>
* { margin: 0; }
html { font-family: Verdana; }
path {
stroke-width: 8px;
fill: none;
stroke-linecap: round;
opacity: 0.2;
}
path.good { stroke: green; }
path.bad { stroke: red; }
path:hover {
opacity: 1;
stroke-width: 12px;
}
line.elections {
stroke-dasharray: 1, 20;
stroke: black;
stroke-width: 3px;
stroke-linecap: round;
opacity: 0.3;
}
rect.responsible {
fill: gray;
opacity: 0.0;
}
rect.responsible:hover {
opacity: 0.1;
stroke: black;
stroke-opacity: 0.7;
stroke-width: 3px;
stroke-linecap: round;
}
div.container { margin-top: 100px; }
div#message { text-align: center; }
div#mainmessage {
text-transform: uppercase;
font-family: lemon;
font-size: 64px;
height: 64px;
}
div#submessage {
font-family: playball;
font-size: 18px;
color: green;
white-space: pre;
}
div#submessage.good {color: green;}
div#submessage.bad {color: red;}
div.explaination {
margin-top: 10px;
font-family: lemon;
font-size: 8pt;
text-align: center;
}
#social > * {
/* Mister google required this importance */
float: left !important;
margin: 20px !important;
}
</style>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/d3/3.0.1/d3.v3.min.js "></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script type="text/javascript" src="script.js"></script>
<script type="text/javascript">
window.onload = function(){
chart = new Chart('div#main');
chart.load();
}
setTimeout(function(){
$('.explaination').fadeIn(3000);
// Twitter
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
// Google
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
}, 7000)
setTimeout(function(){
// Disqus
var disqus_shortname = 'votabene'; // required: replace example with your forum shortname
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
}, 12000)
</script>
<!-- Google analytics -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-37636784-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
// init the FB JS SDK
FB.init({
appId : '566072183421967', // App ID from the App Dashboard
channelUrl : '//votabene.herokuapp.com/channel.html', // Channel File for x-domain communication
status : true, // check the login status upon init?
cookie : true, // set sessions cookies to allow your server to access the session?
xfbml : true // parse XFBML tags on this page?
});
};
(function(d, debug){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all" + (debug ? "/debug" : "") + ".js";
ref.parentNode.insertBefore(js, ref);
}(document, /*debug*/ false));
</script>
<a href="https://github.com/danse/votabene"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a>
<div class="container">
<div id="message">
<div id="mainmessage">Vota bene!</div>
<div id="submessage">Andamento di alcuni indici italiani negli ultimi anni</div>
</div>
<div id="main"></div>
<div class="explaination" style="display:none">
Non c'è solo la crisi! Ecco un elenco di cose che sbagliavamo anche
prima. Non sempre si ha l'opportunità di cambiare, ora l'abbiamo.
<br>
Questo é un progetto aperto, il software é libero e chiunque può
contribuire. Se vuoi approfondire visita <a target="_blank"
href="http://danse.github.com/votabene/">il sito github</a>.
<br>
Dati a cadenza annuale, fonte <a target="_blank"
href="http://www.istat.it/it/">ISTAT</a> ed <a target="_blank"
href="http://ec.europa.eu/eurostat/statistical-atlas/gis/viewer/">EUROSTAT</a>
<!--[if IE]>
<br>
<br>
Stai usando Internet Explorer! È un programma noto per i suoi molti difetti.
Questa pagina funziona bene con <a
href="http://www.google.com/intl/it/chrome/">Chrome</a> o <a
href="http://www.mozilla.org/it/download/?product=firefox-15.0&os=win&lang=it">Firefox</a>,
con le vecchie versioni di Internet Explorer potrebbe non funzionare affatto.
<![endif]-->
<div id="social">
<!-- Facebook -->
<div class="fb-like" data-href="http://votabene.herokuapp.com" data-send="true" data-width="450" data-show-faces="true"></div>
<!-- Twitter -->
<a data-url="http://votabene.herokuapp.com" data-hashtags="votabene" href="https://twitter.com/share" class="twitter-share-button" data-lang="en">Tweet</a>
<!-- Google -->
<g:plusone size="medium" href="http://votabene.herokuapp.com"></g:plusone>
</div>
</div>
<div id="disqus_thread" style="margin-top: 100px;"></div>
</div>
</body>
</html>