0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-22 09:17:56 +01:00

Turned logo into btn

This commit is contained in:
peteruithoven 2014-01-16 12:16:09 +01:00
parent 89ee355b2e
commit 7d726f513e
2 changed files with 8 additions and 4 deletions

View File

@ -49,8 +49,9 @@ function initButtonBehavior() {
popupWordArt = $("#popupWordArt"); popupWordArt = $("#popupWordArt");
popupShape = $("#popupShape"); popupShape = $("#popupShape");
popupMask = $("#popupMask"); popupMask = $("#popupMask");
logoPanel = $("#logopanel");
popupMask.Button();
logoPanel.on("onButtonClick", onLogo);
btnNew.on("onButtonClick", onBtnNew); btnNew.on("onButtonClick", onBtnNew);
btnAdd.on("onButtonClick", onBtnAdd); btnAdd.on("onButtonClick", onBtnAdd);
btnWordArt.on("onButtonClick", onBtnWordArt); btnWordArt.on("onButtonClick", onBtnWordArt);
@ -88,6 +89,9 @@ function initButtonBehavior() {
buttonGroupVerticalShapes.fadeToggle(BUTTON_GROUP_SHOW_DURATION); buttonGroupVerticalShapes.fadeToggle(BUTTON_GROUP_SHOW_DURATION);
} }
function onLogo() {
location.reload();
}
function onBtnAdd() { function onBtnAdd() {
buttonGroupAdd.fadeToggle(BUTTON_GROUP_SHOW_DURATION); buttonGroupAdd.fadeToggle(BUTTON_GROUP_SHOW_DURATION);
} }

View File

@ -80,7 +80,7 @@
<!-- center panel --> <!-- center panel -->
<div id="centerpanel"> <div id="centerpanel">
<div id="logopanel" onclick="location.reload()"> <div id="logopanel" class="btn">
<img id="pencil" src="img/logo/pencil.png"/> <img id="pencil" src="img/logo/pencil.png"/>
<img id="logo" src="img/logo/doodle3d.png"/> <img id="logo" src="img/logo/doodle3d.png"/>
</div> </div>
@ -127,7 +127,7 @@
<div id="debug_display"></div> <div id="debug_display"></div>
<div id="popupMask"></div> <div id="popupMask" class="btn"></div>
<div class="popup" id="popupWordArt"> <div class="popup" id="popupWordArt">
<div class="content"> <div class="content">