Skip to content

Commit

Permalink
improve initial UI state
Browse files Browse the repository at this point in the history
  • Loading branch information
mkleine committed May 11, 2012
1 parent b978325 commit 4373c82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions client/ui-client/ui/index.html
Expand Up @@ -22,8 +22,8 @@
 
<div id="statusContainer">
<div id="statusTitle">Kickerstatus</div>
<div id="statusView"></div>
<div id="statusCounter">
<div id="statusView">l&auml;dt ...</div>
<div id="statusCounter" style="display:none">
<img src="resources/images/clock-icon.png">

<div class="countdownText"><span>seit <span id="timeValue">0</span> Minuten</span></div>
Expand Down
5 changes: 1 addition & 4 deletions client/ui-client/ui/resources/javascript/main.js
Expand Up @@ -10,9 +10,6 @@ const model = Object.create(null);

// init
$(function () {
$("#statusView").text(statusFreeText);
$("#statusCounter").css('display', 'none');

coreFoosClient.registerHandler(EVENT_INITIAL_STATE, receiveInitialState);

coreFoosClient.registerHandler(EVENT_UPDATE_STATE, updateClientState);
Expand All @@ -26,7 +23,7 @@ function initUserName(defaultName) {
if(userName) {
console.log("user name read from cookie: " + userName);
} else {
userName = window.prompt('Gib Deinen Namen ein (wird gespeichert, wenn Du hier was änderst):', defaultName) || defaultName;
userName = window.prompt('Gib Deinen Namen ein (wird gespeichert):', defaultName) || defaultName;
if(userName != defaultName) {
console.log("storing user name in cookie: " + userName);
$.cookie('core_foos_user_name', userName, { expires : 1000});
Expand Down

0 comments on commit 4373c82

Please sign in to comment.