JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
replace log tab with donate tab
[hexbog.git] / main.coffee
index 0f11b9e..b8ad32c 100644 (file)
@@ -574,7 +574,7 @@ init_tab = (t) ->
                $('#' + t).removeClass('tab').addClass('selected-tab').animate({height: tab_height}, 1000)
                cur_tab = t
 init_tabs = ->
-       for t in ['instructions', 'definition', 'logtab', 'restart']
+       for t in ['instructions', 'definition', 'donate', 'restart']
                init_tab t
 
 init_keybinding = ->
@@ -589,8 +589,7 @@ $log = undefined
 init_log = ->
        $log = $('#log')
 log = (msg) ->
-       $log.children().last().remove()
-       $log.prepend $('<div></div>').html msg
+       console.log msg if console.log?
 
 init_game = ->
        init_log()