this is cleaner
This commit is contained in:
parent
f4dec93ab5
commit
56fb44d1f8
2 changed files with 27 additions and 41 deletions
|
|
@ -7,6 +7,11 @@
|
|||
-->
|
||||
<script type="text/javascript" src="ansilove.js/ansilove.js"></script>
|
||||
<script type="text/javascript" src="sahli.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
s = 5;
|
||||
})
|
||||
</script>
|
||||
<link rel="stylesheet" href="sahli.css" type="text/css" media="screen" />
|
||||
<meta charset='UTF-8' />
|
||||
</head>
|
||||
|
|
|
|||
23
sahli.coffee
23
sahli.coffee
|
|
@ -12,9 +12,8 @@ l__________/__________|___|______l__________j_____j
|
|||
Uses Andy Herbert's Ansilove.js for rendering.
|
||||
###
|
||||
|
||||
exports = Sahli
|
||||
|
||||
Sahli = ->
|
||||
class @Sahli
|
||||
constructor: () ->
|
||||
@outbox = $('div#outbox')
|
||||
@dbox = $('div#drawbox')
|
||||
@image = 0
|
||||
|
|
@ -195,26 +194,8 @@ Sahli = ->
|
|||
document.webkitCancelFullScreen()
|
||||
return
|
||||
|
||||
@fixhelpbox = ->
|
||||
h = $('.help')
|
||||
xy =
|
||||
'top': 0
|
||||
'left': document.width / 2 - h.width() / 2
|
||||
h.css xy
|
||||
return
|
||||
|
||||
@toggledebug = ->
|
||||
$('h1#top').fadeToggle()
|
||||
@DEBUG = !@DEBUG
|
||||
return
|
||||
|
||||
|
||||
@loadkeys()
|
||||
@fixhelpbox()
|
||||
ref = this
|
||||
$(window).resize ->
|
||||
ref.resizedrawbox()
|
||||
return
|
||||
debugger
|
||||
@requestsahlifile 'list.sahli'
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue