-
Notifications
You must be signed in to change notification settings - Fork 0
/
lub.html
249 lines (217 loc) · 14.1 KB
/
lub.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
243
244
245
246
247
248
249
<!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>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
<!-- 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="segundab.html">Segunda B Nacional</a></li>
<li><a href="#">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; maxwidth: 100%;">
<button type="button" class="btn" id="buttonAp" style="margin-bottom: 5px;" onClick="clicketyClick('fixtureA')">Descargá el fixture de la fecha!</button>
<div id="fixtureA" class="panel panel-default" style="font-family: Oswald">
<div class="panel-heading" id="fixture-header" style="font-size:18px">Torneo Apertura - Fecha </div>
<table class="table" style='vertical-align:middle;'>
<thead>
<tr>
<th style="width: 35%">Local</th>
<th style="width: 10%"></th>
<th style="width: 10%"></th>
<th style="width: 10%"></th>
<th style="width: 35%">Visitante</th>
</tr>
</thead>
<tbody id="fixture">
</tbody>
</table>
</div>
<a id='fixtureA-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('tApertura')">Descargá esta tabla!</button>
<div id="tApertura" class="panel panel-default" style="font-family: Oswald">
<div class="panel-heading" id="apertura-header" style="font-size:18px">Torneo Apertura - Tabla</div>
<table class="table">
<thead>
<tr>
<th style="width: 30%">Equipo</th>
<th style="width: 8.75%">PG</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%">%</th>
<th style="width: 8.75%">Pts.</th>
<th style="width: 8.75%">GB</th>
</tr>
</thead>
<tbody id="apertura">
</tbody>
</table>
</div>
<a id='tApertura-a-ctx' style='display: none;'></a>
</div>
<div id="hiddenField"><div id="divHidden"></div></div>
</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 = "1siMUdYXmlg0oXJ9PrqsM4i8LiB83Ng3MJ3TxK6Ja2NY";
// 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 == 6) {
$('#fixture').append('<tr><td align="center" colspan="5"><i>Fecha libre: '+this.gsx$local.$t+'</i></td></tr>');
$('#apertura').append('</td><tr><td>'+this.gsx$eqap.$t+'</td><td align="center">'+this.gsx$pgap.$t+'</td><td align="center">'+this.gsx$ppap.$t+'</td><td align="center">'+this.gsx$gfap.$t+'</td><td align="center">'+this.gsx$gcap.$t+'</td><td align="center">'+this.gsx$dgap.$t+'</td><td align="center">'+this.gsx$porcap.$t+'</td><td align="center">'+this.gsx$ptsap.$t+'</td><td align="center">'+this.gsx$gbap.$t+'</td></tr>');
} else if (((iter == 0) || (Math.floor(iter%2) == 0)) && (iter != 7)) {
$('#apertura').append('</td><tr><td>'+this.gsx$eqap.$t+'</td><td align="center">'+this.gsx$pgap.$t+'</td><td align="center">'+this.gsx$ppap.$t+'</td><td align="center">'+this.gsx$gfap.$t+'</td><td align="center">'+this.gsx$gcap.$t+'</td><td align="center">'+this.gsx$dgap.$t+'</td><td align="center">'+this.gsx$porcap.$t+'</td><td align="center">'+this.gsx$ptsap.$t+'</td><td align="center">'+this.gsx$gbap.$t+'</td></tr>');
if (iter == 0){
$('#fixture-header').append(this.gsx$fecha.$t);
}
if (iter <= 7) {
if (this.gsx$link.$t == '') {
$('#fixture').append('</td><tr><td align="center" style="width: 35%">'+this.gsx$local.$t+'</td><td align="center" style="width: 10%">'+this.gsx$resl.$t+'</td><td align="center" style="width: 10%">-</td><td align="center" style="width: 10%">'+this.gsx$resv.$t+'</td><td align="center" style="width: 35%">'+this.gsx$visita.$t+'</td></tr><tr><td align="center" colspan="5"><i>'+this.gsx$specs.$t+'</i>');
} else {
$('#fixture').append('</td><tr><td align="center" style="width: 35%">'+this.gsx$local.$t+'</td><td align="center" style="width: 10%">'+this.gsx$resl.$t+'</td><td align="center" style="width: 10%">-</td><td align="center" style="width: 10%">'+this.gsx$resv.$t+'</td><td align="center" style="width: 35%">'+this.gsx$visita.$t+'</td></tr><tr><td align="center" colspan="5"><i>'+this.gsx$specs.$t+'</i></br><a href="'+this.gsx$link.$t+'">Estadísticas en vivo</a></td></tr>');
}
}
} else if (iter != 7) {
$('#apertura').append('</td><tr style="background-color:#CBCBCB"><td>'+this.gsx$eqap.$t+'</td><td align="center">'+this.gsx$pgap.$t+'</td><td align="center">'+this.gsx$ppap.$t+'</td><td align="center">'+this.gsx$gfap.$t+'</td><td align="center">'+this.gsx$gcap.$t+'</td><td align="center">'+this.gsx$dgap.$t+'</td><td align="center">'+this.gsx$porcap.$t+'</td><td align="center">'+this.gsx$ptsap.$t+'</td><td align="center">'+this.gsx$gbap.$t+'</td></tr>');
if (iter <= 7) {
if (this.gsx$link.$t == '') {
$('#fixture').append('</td><tr style="background-color:#CBCBCB"><td align="center" style="width: 35%">'+this.gsx$local.$t+'</td><td align="center" style="width: 10%">'+this.gsx$resl.$t+'</td><td align="center" style="width: 10%">-</td><td align="center" style="width: 10%">'+this.gsx$resv.$t+'</td><td align="center" style="width: 35%">'+this.gsx$visita.$t+'</td></tr><tr style="background-color:#CBCBCB"><td align="center" colspan="5"><i>'+this.gsx$specs.$t+'</i>');
} else {
$('#fixture').append('</td><tr style="background-color:#CBCBCB"><td align="center" style="width: 35%">'+this.gsx$local.$t+'</td><td align="center" style="width: 10%">'+this.gsx$resl.$t+'</td><td align="center" style="width: 10%">-</td><td align="center" style="width: 10%">'+this.gsx$resv.$t+'</td><td align="center" style="width: 35%">'+this.gsx$visita.$t+'</td></tr><tr style="background-color:#CBCBCB"><td align="center" colspan="5"><i>'+this.gsx$specs.$t+'</i></br><a href="'+this.gsx$link.$t+'">Estadísticas en vivo</a></td></tr>');
}
}
} else {
$('#apertura').append('</td><tr style="background-color:#CBCBCB"><td>'+this.gsx$eqap.$t+'</td><td align="center">'+this.gsx$pgap.$t+'</td><td align="center">'+this.gsx$ppap.$t+'</td><td align="center">'+this.gsx$gfap.$t+'</td><td align="center">'+this.gsx$gcap.$t+'</td><td align="center">'+this.gsx$dgap.$t+'</td><td align="center">'+this.gsx$porcap.$t+'</td><td align="center">'+this.gsx$ptsap.$t+'</td><td align="center">'+this.gsx$gbap.$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>