Amiga font display working (text) in Firefox & Chrome(ium) and Safari
This commit is contained in:
parent
cac7ae3232
commit
33e1d68e5d
2 changed files with 14 additions and 3 deletions
|
|
@ -19,7 +19,7 @@
|
||||||
<body>
|
<body>
|
||||||
<h1 id='top' class='hidden'>Sahli Debug</h1>
|
<h1 id='top' class='hidden'>Sahli Debug</h1>
|
||||||
<div id="outbox">
|
<div id="outbox">
|
||||||
<div id='sahliviewer'></div>
|
<div id='sahliviewer'><hr></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="help hidden">
|
<div class="help hidden">
|
||||||
|
|
|
||||||
15
sahli.coffee
15
sahli.coffee
|
|
@ -134,7 +134,8 @@ class @Sahli
|
||||||
alert "SAHLI READY TO GO\n#{@filedata.length} Entries"
|
alert "SAHLI READY TO GO\n#{@filedata.length} Entries"
|
||||||
|
|
||||||
@nextpic = =>
|
@nextpic = =>
|
||||||
$('div#sahliviewer').children().remove()
|
viewbox = $('div#sahliviewer')
|
||||||
|
viewbox.children().remove()
|
||||||
# reset scrolling;
|
# reset scrolling;
|
||||||
# @stopscroll()
|
# @stopscroll()
|
||||||
# @scroll_direction = 1
|
# @scroll_direction = 1
|
||||||
|
|
@ -144,7 +145,7 @@ class @Sahli
|
||||||
i = @currentpic
|
i = @currentpic
|
||||||
filedata = @filedata
|
filedata = @filedata
|
||||||
filedata[i].pic = $('<h6>' + filedata[i].file + '</h6>')
|
filedata[i].pic = $('<h6>' + filedata[i].file + '</h6>')
|
||||||
@viewbox.append filedata[i].pic
|
viewbox.append filedata[i].pic
|
||||||
@loadpic filedata[i], filedata[i].pic
|
@loadpic filedata[i], filedata[i].pic
|
||||||
@currentpic += 1
|
@currentpic += 1
|
||||||
if @currentpic > filedata.length - 1
|
if @currentpic > filedata.length - 1
|
||||||
|
|
@ -180,6 +181,16 @@ class @Sahli
|
||||||
@keycode = (char) ->
|
@keycode = (char) ->
|
||||||
char.toUpperCase().charCodeAt 0
|
char.toUpperCase().charCodeAt 0
|
||||||
|
|
||||||
|
@calccolor = (colorset) ->
|
||||||
|
"rgba(#{colorset.toString()})"
|
||||||
|
|
||||||
|
@loaderror = (inserthere, fname, errortext, errorcode) ->
|
||||||
|
if errorcode == 404
|
||||||
|
errstr = "Unable to find #{fname}"
|
||||||
|
else
|
||||||
|
errstr = "error! #{errortext} / code #{errorcode}"
|
||||||
|
inserthere.after $("<h1>").text("#{errstr}")
|
||||||
|
|
||||||
@loadkeys = ->
|
@loadkeys = ->
|
||||||
$(document).on('keydown', (ev) =>
|
$(document).on('keydown', (ev) =>
|
||||||
switch ev.which
|
switch ev.which
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue