This commit is contained in:
abe- 2017-06-17 21:36:31 +02:00
parent 14101a68df
commit 6efb6054b0
2 changed files with 4 additions and 3 deletions

View file

@ -1,4 +1,4 @@
<div class="video-container"> <div class="video-container">
<iframe src="graficos/parcelas.html" width="100%" height="539px" style="overflow:hidden" allowfullscreen="" frameborder="0"> <iframe id="p5" src="graficos/parcelas.html" width="100%" height="539px" style="overflow:hidden" allowfullscreen="" frameborder="0">
</iframe> </iframe>
</div> </div>

View file

@ -27,8 +27,9 @@ function setup() {
pg = createGraphics(800, 519); pg = createGraphics(800, 519);
var as = 519. / 800.; var as = 519. / 800.;
zoom = .95; zoom = .95;
var w = windowWidth*zoom;
var h = windowHeight*as*zoom; var framesWidth = window.parent.$("iframe.p5").width();
var framesHeight = window.parent.$("iframe.p5").height();
createCanvas(w,h); createCanvas(w,h);
nombres = new Array("Norte","Duero","Ebro","Pirineo","Jucar","Tajo","Guadiana","Guadalquivir","Sur", "Segura", "Baleares y Canarias"); nombres = new Array("Norte","Duero","Ebro","Pirineo","Jucar","Tajo","Guadiana","Guadalquivir","Sur", "Segura", "Baleares y Canarias");