Skip to content
Snippets Groups Projects
Commit 75187ff4 authored by ands's avatar ands
Browse files

Merge branch 'master' of github.com:Warpzone/marvin

parents c044ba55 8a1be9ab
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<link rel="stylesheet" type="text/css" href="css/widget.css" /> <link rel="stylesheet" type="text/css" href="css/widget.css" />
<title>Warpzone's Marvin</title> <title>Warpzone's Marvin</title>
<script src="js/jquery-1.4.4.js" type="text/javascript"></script> <script src="js/jquery-1.4.4.js" type="text/javascript"></script>
<script src="js/marvin.js" type="text/javascript"></script>
</head> </head>
<body> <body>
<img src="img/warpzone.png"> <img src="img/warpzone.png">
......
var minuteTimerFunctionArray = [];
var minuteTimer;
function addFunctionToMinuteTimer(addFunction)
{
minuteTimerFunctionArray[minuteTimerFunctionArray.length] = addFunction;
}
function executeMinuteTimer()
{
for (i = 0; i < minuteTimerFunctionArray.length; i++)
{
minuteTimerFunctionArray[i]();
}
}
$(document).ready(function()
{
minuteTimer = setInterval(executeMinuteTimer, 60*1000);
});
\ No newline at end of file
...@@ -21,7 +21,7 @@ function updateZoneOffen () { ...@@ -21,7 +21,7 @@ function updateZoneOffen () {
$(document).ready(function() $(document).ready(function()
{ {
//Zuerst nur einmal laden //Zuerst nur einmal laden
updateZoneOffen(); addFunctionToMinuteTimer(updateZoneOffen);
} }
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment