diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 0d7b6df..9e515e3 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,13 +2,13 @@ - - - - + + + + @@ -66,7 +66,7 @@ - + @@ -75,7 +75,7 @@ - + @@ -84,7 +84,7 @@ - + @@ -93,7 +93,7 @@ - + @@ -108,10 +108,19 @@ - + - + + + + + + + + + + @@ -129,7 +138,7 @@ - + @@ -138,16 +147,7 @@ - - - - - - - - - - + @@ -186,6 +186,7 @@ @@ -267,6 +268,7 @@ + @@ -313,177 +315,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -507,7 +339,6 @@ - @@ -636,24 +467,24 @@ - - - - - - - + - + + + + + + + - + @@ -678,11 +509,6 @@ - - - - - @@ -782,9 +608,7 @@ - - - + @@ -836,23 +660,17 @@ - - - + - - - + - - - + @@ -894,16 +712,12 @@ - - - + - - - + @@ -915,7 +729,7 @@ - + @@ -936,21 +750,21 @@ - + - + - + @@ -964,7 +778,14 @@ - + + + + + + + + diff --git a/www/images/logo.png b/www/images/logo.png deleted file mode 100644 index c9e8e90..0000000 Binary files a/www/images/logo.png and /dev/null differ diff --git a/www/images/logo_animated.gif b/www/images/logo_animated.gif new file mode 100644 index 0000000..f14a19a Binary files /dev/null and b/www/images/logo_animated.gif differ diff --git a/www/images/logo_static.png b/www/images/logo_static.png new file mode 100644 index 0000000..ff22ec6 Binary files /dev/null and b/www/images/logo_static.png differ diff --git a/www/javascript/scripts.js b/www/javascript/scripts.js new file mode 100644 index 0000000..183e82d --- /dev/null +++ b/www/javascript/scripts.js @@ -0,0 +1,20 @@ +/* + * Animate Header Image + * on MouseEnter() + * + */ +$(function(){ + var img_a = new Image(); + img_a.src ='/images/logo_animated.gif'; + var img_s = new Image(); + img_s.src ='/images/logo_static.png'; + $('.brandLogo').mouseenter(function(){ + if ($('.brandLogo').attr('src') === img_a.src) + return; + + $(this).attr('src',img_a.src); + setTimeout(function() { + $('.brandLogo').attr('src',img_s.src); + }, 3500); + }); +}); \ No newline at end of file diff --git a/www/protected/views/layouts/main.php b/www/protected/views/layouts/main.php index 4ce9208..8a2acc0 100644 --- a/www/protected/views/layouts/main.php +++ b/www/protected/views/layouts/main.php @@ -29,7 +29,7 @@ $this->widget('bootstrap.widgets.TbNavbar', [ - 'brandLabel'=>'', + 'brandLabel'=>'', 'brandUrl'=>'/', 'display' => null, 'htmlOptions' => @@ -96,5 +96,6 @@ + \ No newline at end of file