One day, I'll just rewrite the whole mascot code

And then I'll just release it as its own script
And then I'll break Appchan X into script modules
And then, I'll look back
And realize I've come full circle and returned to `ya4cie`
<3 @aeosynth
This commit is contained in:
Zixaphir 2013-09-04 14:27:22 -07:00
parent a5471ba547
commit 98b07e177c
5 changed files with 26 additions and 22 deletions

View File

@ -1,5 +1,5 @@
/*
* appchan x - Version 2.3.10 - 2013-09-03
* appchan x - Version 2.3.10 - 2013-09-04
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1818,6 +1818,8 @@ a:only-of-type > .remove {
left: 0;
right: 0;
line-height: 0;
}
.click-to-toggle #mascot {
cursor: pointer;
}
.mascot-position-above-post-form.post-form-style-fixed:not(.post-form-decorations) #mascot img {

View File

@ -264,9 +264,9 @@ MascotTools =
@previousElementSibling.value = fileURL
return
cv = $.el 'canvas'
cv.height = height = s / width * height
cv.width = width = s
cv = $.el 'canvas',
height: height = s / width * height
width: width = s
cv.getContext('2d').drawImage img, 0, 0, width, height
URL.revokeObjectURL fileURL
cv.toBlob (blob) =>
@ -332,8 +332,8 @@ MascotTools =
$.rm $.id 'mascotConf'
Settings.open "Mascots"
importMascot: (evt) ->
file = evt.target.files[0]
importMascot: ->
file = @files[0]
reader = new FileReader()
reader.onload = (e) ->
@ -360,10 +360,10 @@ MascotTools =
$.set 'userMascots', userMascots
alert "Mascot \"#{name}\" imported!"
$.rm $("#mascotContainer", d.body)
$.rm $ "#mascotContainer", d.body
Settings.open 'Mascots'
reader.readAsText(file)
reader.readAsText file
reposition: ->
mascot = Mascots[Conf['mascot']]