-
Notifications
You must be signed in to change notification settings - Fork 0
/
segundab-clausura.html
242 lines (210 loc) · 12.7 KB
/
segundab-clausura.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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
<!DOCTYPE html>
<html lang="es">
<head>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-8182433234890355",
enable_page_level_ads: true
});
</script>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta property="og:url" content="http://www.campeonatouruguayo.uy" />
<meta property="og:type" content="article" />
<meta property="og:title" content="Campeonato Uruguayo | Las tablas del deporte uruguayo" />
<meta property="og:description" content="¿Cansado de buscar las tablas del Campeonato Uruguayo (sobre todo la del descenso)? ¡Acá están!" />
<meta property="og:image" content="http://www.campeonatouruguayo.uy/imgs/auf.jpg" />
<meta name="keywords" content="Fútbol,Uruguayo,Uruguay,Tenfield,Campeonato,Soccer,Football,Uruguayan,Results,Peñarol,Nacional,Defensor Sporting,Danubio,Basquet,Básquetbol,Liga Uruguaya de Básquetbol,Aguada,Goes,Malvín,Hebraica Macabi">
<meta name="author" content="http://www.twitter.com/despinoUY">
<meta name="language" content="es">
<meta name="description" content="Sitio que centraliza las tablas de los campeonatos de todas las divisionales profesionales de la Asociación Uruguaya de Fútbol y otros deportes.">
<title>Campeonato Uruguayo | Las tablas del deporte uruguayo</title>
<!-- Begin Bootstrap -->
<!-- Latest compiled and minified CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Optional theme -->
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="js/bootstrap.min.js"></script>
<!-- End Bootstrap -->
<script src="js/html2canvas.js"></script>
<!-- Begin Oswald font -->
<link href="https://fonts.googleapis.com/css?family=Oswald" rel="stylesheet">
<!-- End Oswald font -->
<!-- HTML5 shim and Respond.js for 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/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<script>window.twttr = (function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0],
t = window.twttr || {};
if (d.getElementById(id)) return t;
js = d.createElement(s);
js.id = id;
js.src = "https://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
t._e = [];
t.ready = function(f) {
t._e.push(f);
};
return t;
}(document, "script", "twitter-wjs"));</script>
<!-- Begin 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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-93466496-1', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
<div class="container">
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">Campeonato Uruguayo</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="index.html">Primera División</a></li>
<li><a href="segunda.html">Segunda División</a></li>
<li><a href="#">Segunda B Nacional</a></li>
<li><a href="lub.html">Básquetbol</a></li>
<!--
<li><a href="more-stats.html">Más estadísticas</a></li>
-->
<li><a href="https://www.twitter.com/despinoUY">Contacto</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><iframe style='margin: 10px; margin-bottom: 0px' src="https://www.facebook.com/plugins/share_button.php?href=http%3A%2F%2Fwww.campeonatouruguayo.uy&layout=button&size=large&mobile_iframe=true&appId=135741283637596&width=72&height=28" width="72" height="28" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe></li>
<li><div style='margin: 10px; margin-bottom: 0px'><a class="twitter-share-button" href="https://twitter.com/intent/tweet?text=Las%20tablas%20del%20Uruguayo%20(con%20la%20del%20Descenso%20inclu%C3%ADda!)&url=http://www.campeonatouruguayo.uy" data-size='large'>Tweet</a></div></li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container-fluid -->
</nav>
<!--
<div class="page-header">
<h1>Las tablas del Uruguayo</h1>
<p class="lead">¿Cansado de no encontrar las tablas del fútbol uruguayo? Acá las tenés.</p>
</div>
-->
<div class="col-lg-6" style="padding: 0">
<button type="button" class="btn" id="buttonAp" style="margin-bottom: 5px;" onClick="clicketyClick('clausuraSerieA')">Descargá esta tabla!</button>
<div id="clausuraSerieA" class="panel panel-default" style="font-family: Oswald">
<div class="panel-heading" id="serieA-header" style="font-size:18px">Segunda B Nacional - Torneo Clausura - Serie A</div>
<table class="table">
<thead>
<tr>
<th style="width: 30%">Equipo</th>
<th style="width: 8.75%">PJ</th>
<th style="width: 8.75%">PG</th>
<th style="width: 8.75%">PE</th>
<th style="width: 8.75%">PP</th>
<th style="width: 8.75%">GF</th>
<th style="width: 8.75%">GC</th>
<th style="width: 8.75%">DG</th>
<th style="width: 8.75%">Pts.</th>
</tr>
</thead>
<tbody id="serie-a">
</tbody>
</table>
</div>
<a id='clausuraSerieA-a-ctx' style='display: none;'></a>
</div>
<div class="col-lg-6" style="padding: 0">
<button type="button" class="btn" id="buttonAp" style="margin-bottom: 5px;" onClick="clicketyClick('clausuraSerieB')">Descargá esta tabla!</button>
<div id="clausuraSerieB" class="panel panel-default" style="font-family: Oswald">
<div class="panel-heading" id="serieB-header" style="font-size:18px">Segunda B Nacional - Torneo Clausura - Serie B</div>
<table class="table">
<thead>
<tr>
<th style="width: 30%">Equipo</th>
<th style="width: 8.75%">PJ</th>
<th style="width: 8.75%">PG</th>
<th style="width: 8.75%">PE</th>
<th style="width: 8.75%">PP</th>
<th style="width: 8.75%">GF</th>
<th style="width: 8.75%">GC</th>
<th style="width: 8.75%">DG</th>
<th style="width: 8.75%">Pts.</th>
</tr>
</thead>
<tbody id="serie-b">
</tbody>
</table>
</div>
<a id='clausuraSerieB-a-ctx' style='display: none;'></a>
</div>
<div id="hiddenField"><div id="divHidden"></div></div>
<p>En <mark style="background-color:#32CD32;">verde</mark> se marca al campeón del Torneo Apertura, clasificado a la final por el ascenso a Segunda División Profiesional.</p>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="https://getbootstrap.com/dist/js/bootstrap.min.js"></script>
<script type="text/javascript">
// ID of the Google Spreadsheet
var spreadsheetID = "1lIghu_PjFtRvY6OmpyGTrgmhW1LITfhWrsaBOu-yUu4";
// Make sure it is public or set to Anyone with link can view
var url = "https://spreadsheets.google.com/feeds/list/" + spreadsheetID + "/od6/public/values?alt=json";
$.getJSON(url, function(data) {
var entry = data.feed.entry;
var iter = 0;
$(entry).each(function(){
if (((iter == 0) || (Math.floor(iter%2) == 0)) && (iter<=7)) {
if (this.gsx$equipoa.$t == 'Albion') {
$('#serie-a').append('</td><tr style="background-color:#32CD32"><td>'+this.gsx$equipoa.$t+'</td><td align="center">'+this.gsx$pja.$t+'</td><td align="center">'+this.gsx$pga.$t+'</td><td align="center">'+this.gsx$pea.$t+'</td><td align="center">'+this.gsx$ppa.$t+'</td><td align="center">'+this.gsx$gfa.$t+'</td><td align="center">'+this.gsx$gca.$t+'</td><td align="center">'+this.gsx$dga.$t+'</td><td align="center">'+this.gsx$ptsa.$t+'</td></tr>');
} else {
$('#serie-a').append('</td><tr><td>'+this.gsx$equipoa.$t+'</td><td align="center">'+this.gsx$pja.$t+'</td><td align="center">'+this.gsx$pga.$t+'</td><td align="center">'+this.gsx$pea.$t+'</td><td align="center">'+this.gsx$ppa.$t+'</td><td align="center">'+this.gsx$gfa.$t+'</td><td align="center">'+this.gsx$gca.$t+'</td><td align="center">'+this.gsx$dga.$t+'</td><td align="center">'+this.gsx$ptsa.$t+'</td></tr>');
}
$('#serie-b').append('</td><tr><td>'+this.gsx$equipob.$t+'</td><td align="center">'+this.gsx$pjb.$t+'</td><td align="center">'+this.gsx$pgb.$t+'</td><td align="center">'+this.gsx$peb.$t+'</td><td align="center">'+this.gsx$ppb.$t+'</td><td align="center">'+this.gsx$gfb.$t+'</td><td align="center">'+this.gsx$gcb.$t+'</td><td align="center">'+this.gsx$dgb.$t+'</td><td align="center">'+this.gsx$ptsb.$t+'</td></tr>');
} else if (iter <=7) {
if (this.gsx$equipoa.$t == 'Albion') {
$('#serie-a').append('</td><tr style="background-color:#32CD32"><td>'+this.gsx$equipoa.$t+'</td><td align="center">'+this.gsx$pja.$t+'</td><td align="center">'+this.gsx$pga.$t+'</td><td align="center">'+this.gsx$pea.$t+'</td><td align="center">'+this.gsx$ppa.$t+'</td><td align="center">'+this.gsx$gfa.$t+'</td><td align="center">'+this.gsx$gca.$t+'</td><td align="center">'+this.gsx$dga.$t+'</td><td align="center">'+this.gsx$ptsa.$t+'</td></tr>');
} else {
$('#serie-a').append('</td><tr style="background-color:#CBCBCB"><td>'+this.gsx$equipoa.$t+'</td><td align="center">'+this.gsx$pja.$t+'</td><td align="center">'+this.gsx$pga.$t+'</td><td align="center">'+this.gsx$pea.$t+'</td><td align="center">'+this.gsx$ppa.$t+'</td><td align="center">'+this.gsx$gfa.$t+'</td><td align="center">'+this.gsx$gca.$t+'</td><td align="center">'+this.gsx$dga.$t+'</td><td align="center">'+this.gsx$ptsa.$t+'</td></tr>');
}
if (iter < 7) {
$('#serie-b').append('</td><tr style="background-color:#CBCBCB"><td>'+this.gsx$equipob.$t+'</td><td align="center">'+this.gsx$pjb.$t+'</td><td align="center">'+this.gsx$pgb.$t+'</td><td align="center">'+this.gsx$peb.$t+'</td><td align="center">'+this.gsx$ppb.$t+'</td><td align="center">'+this.gsx$gfb.$t+'</td><td align="center">'+this.gsx$gcb.$t+'</td><td align="center">'+this.gsx$dgb.$t+'</td><td align="center">'+this.gsx$ptsb.$t+'</td></tr>');
}
}
iter++;
});
});
function clicketyClick(name){
var divWidth = document.getElementById(name).outerWidth;
var divHeight = document.getElementById(name).outerHeight;
var anchor = document.getElementById(name+'-a-ctx');
html2canvas(document.getElementById(name), {
onrendered: function(canvas){
document.body.appendChild(canvas);
canvas.style.display = 'none';
canvas.id = name+'-ctx';
var ctx = document.getElementById(name+'-ctx');
var img = ctx.toDataURL("image/png");
anchor.href = ctx.toDataURL("image/png");
anchor.download = name+'.png';
anchor.click();
},
width: divWidth,
height: divHeight,
});
};
</script>
</body>
</html>