0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-12-22 13:13:48 +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");
popupShape = $("#popupShape");
popupMask = $("#popupMask");
popupMask.Button();
logoPanel = $("#logopanel");
logoPanel.on("onButtonClick", onLogo);
btnNew.on("onButtonClick", onBtnNew);
btnAdd.on("onButtonClick", onBtnAdd);
btnWordArt.on("onButtonClick", onBtnWordArt);
@ -88,6 +89,9 @@ function initButtonBehavior() {
buttonGroupVerticalShapes.fadeToggle(BUTTON_GROUP_SHOW_DURATION);
}
function onLogo() {
location.reload();
}
function onBtnAdd() {
buttonGroupAdd.fadeToggle(BUTTON_GROUP_SHOW_DURATION);
}

View File

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