Difference between revisions of "Team:Tuebingen/Notebook"

Line 4: Line 4:
  
 
function init() {
 
function init() {
console.log(diashow);
 
console.log(parent.diashow);
 
  
 
var cal = document.getElementById('calendar');
 
var cal = document.getElementById('calendar');
Line 43: Line 41:
 
dias = new Array(12);
 
dias = new Array(12);
 
currentDia = 0;
 
currentDia = 0;
function diashow(shift) {
+
parent.diashow = function diashow(shift) {
 
nextDia = currentDia+shift;
 
nextDia = currentDia+shift;
 
if (nextDia < 0) nextDia = dias.length-1;
 
if (nextDia < 0) nextDia = dias.length-1;

Revision as of 10:24, 18 September 2015

<
>