Skip to content
Snippets Groups Projects
Commit 318af84f authored by ands's avatar ands
Browse files

changing marvin-revisions :3

parent cea37e08
No related branches found
No related tags found
No related merge requests found
function updateMarvin()
{
if($("#MarvinImg").attr("src") == "widgets/Marvin/img/marvin.jpg")
$("#MarvinImg").attr("src","widgets/Marvin/img/marvin2.jpg");
else
$("#MarvinImg").attr("src","widgets/Marvin/img/marvin.jpg");
}
$(document).ready(function()
{
addFunctionToMinuteTimer(updateMarvin);
}
);
...@@ -10,7 +10,8 @@ class Marvin implements iWidget ...@@ -10,7 +10,8 @@ class Marvin implements iWidget
public function giveOutput() public function giveOutput()
{ {
$widgetOutput = '<img src="widgets/Marvin/img/marvin.jpg">'."\n"; $widgetOutput = '<script src="widgets/Marvin/Marvin.js" type="text/javascript"></script>'."\n";
$widgetOutput .= '<img id="MarvinImg" src="widgets/Marvin/img/marvin.jpg">'."\n";
return $widgetOutput; return $widgetOutput;
} }
} }
......
webroot/widgets/Marvin/img/marvin2.jpg

40.2 KiB

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