Skip to content

Commit

Permalink
Resultado eleições 2018
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Rodrigues committed Nov 7, 2018
1 parent 494cd55 commit 73d82af
Show file tree
Hide file tree
Showing 14 changed files with 1,406 additions and 0 deletions.
128 changes: 128 additions & 0 deletions src/main/resources/static/2018/eleicoes1turno.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
<!DOCTYPE html>
<html>
<head>
<title>Projeto final - Eleições 2014</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">

div.tooltip {
position: absolute;
text-align: center;
width: auto;
height: auto;
padding: 4px 10px;
font: 16px Helvetica, Arial, sans-serif;
font-weight: lighter;
background: #FFF;
border: 0px;
border-radius: 2px;
pointer-events: none;
white-space: nowrap;
}

h1 {
position: absolute;
top:0;
left:0;
width: auto;
height: auto;
margin-left:20px;
font: 24px Helvetica, Arial, sans-serif;
font-weight: lighter;
}

.legend {
font-size: 12px;
}
rect {
stroke-width: 2;
}

.boundary {
fill: none;
stroke: #E9E8E8;
stroke-linejoin: round;
}
body {
margin:0;
padding:0;
background-color:#F2F2F6;
}

#legenda {
font-family: Helvetica, Arial, sans-serif;
position: absolute;
top:50px;
left:0;
}

#legenda p {
margin: 0 0 0 20px;
}

#legenda a {
font-weight: bold;
color: #F90;
text-decoration: none;
}
#legenda a:hover {
color: #C60;
text-decoration: underline;
}
.porcentagem {
font: 2px Helvetica, Arial, sans-serif;
font-weight: bold;
}

.boundary-br {
fill: none;
stroke: #bdbdbd;
stroke-linejoin: round;
}
p.tamanho {
font-size: 10px;
width: 90px;
}
#verturno{
padding-top: 10px;
}
#voltar{
display:none;
padding-top: 20px;
}
#voltar a, #verturno a {
background: #FFF;
border-radius: 5px;
padding: 5px 10px;
}
#voltar a:hover, #verturno a:hover {
background: #EEE;
text-decoration: none;
}

</style>

</head>
<body>

<h1>Eleições 2014: 1&ordm; Turno</h1>
<div id="legenda">
<p id="verturno"><a href="eleicoes2turno.html">Ver 2&ordm; turno &rarr;</a></p>
<img src="img/legenda1turno.png"><br>
<p class="tamanho">O tamanho dos círculos representa o total de votos.</p>
<p id="voltar"><a href="#">&larr; Ver mapa</a></p>
</div>

<div id="map">
</div>

<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://d3js.org/topojson.v1.min.js"></script>

<script type="text/javascript">
turno=1;
</script>
<script src="js/eleicoes.js"></script>
<script src="js/mapa2d-brasil.js"></script>
</body>
</html>
130 changes: 130 additions & 0 deletions src/main/resources/static/2018/eleicoes2turno.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
<!DOCTYPE html>
<html>
<head>
<title>Projeto final - Eleições 2014</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">

div.tooltip {
position: absolute;
text-align: center;
width: auto;
height: auto;
padding: 4px 10px;
font: 16px Helvetica, Arial, sans-serif;
font-weight: lighter;
background: #FFF;
border: 0px;
border-radius: 2px;
pointer-events: none;
white-space: nowrap;
}

h1 {
position: absolute;
top:0;
left:0;
width: auto;
height: auto;
margin-left:20px;
font: 24px Helvetica, Arial, sans-serif;
font-weight: lighter;
}

.legend {
font-size: 12px;
}
rect {
stroke-width: 2;
}

.boundary {
fill: none;
stroke: #E9E8E8;
stroke-linejoin: round;
}
body {
margin:0;
padding:0;
background-color:#F2F2F6;
}

#legenda {
font-family: Helvetica, Arial, sans-serif;
position: absolute;
top:50px;
left:0;
}

#legenda p {
margin: 0 0 0 20px;
}

#legenda a {
font-weight: bold;
color: #F90;
text-decoration: none;
}
#legenda a:hover {
color: #C60;
text-decoration: underline;
}
.porcentagem {
font: 2px Helvetica, Arial, sans-serif;
font-weight: bold;
}

.boundary-br {
fill: none;
stroke: #bdbdbd;
stroke-linejoin: round;
}
p.tamanho {
font-size: 10px;
width: 90px;
}
#verturno{
padding-top: 10px;
}
#voltar{
display:none;
padding-top: 20px;
}
#voltar a, #verturno a {
background: #FFF;
border-radius: 5px;
padding: 5px 10px;
}
#voltar a:hover, #verturno a:hover {
background: #EEE;
text-decoration: none;
}

</style>

</head>
<body>

<h1>Elei&ccedil;&otilde;es 2014: 2&ordm; Turno</h1>
<div id="legenda">
<p id="verturno"><a href="eleicoes1turno.html">Ver 1&ordm; turno &rarr;</a></p>
<img src="img/legenda2turno.png">
<p class="tamanho">O tamanho dos círculos representa o total de votos.</p>
<p id="voltar"><a href="#">&larr; Ver mapa</a></p>
</div>

<div id="map">
</div>

<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://d3js.org/topojson.v1.min.js"></script>

<script type="text/javascript">
turno=2;
</script>
<script src="js/eleicoes.js"></script>
<script src="js/mapa2d-brasil.js"></script>

</body>
</html>
Binary file added src/main/resources/static/2018/img/legenda.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/static/2018/img/legendapop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 73d82af

Please sign in to comment.