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:
parent
a5471ba547
commit
98b07e177c
2
LICENSE
2
LICENSE
@ -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.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/zixaphir/appchan-x/blob/master/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
@ -1818,6 +1818,8 @@ a:only-of-type > .remove {
|
|||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
|
}
|
||||||
|
.click-to-toggle #mascot {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.mascot-position-above-post-form.post-form-style-fixed:not(.post-form-decorations) #mascot img {
|
.mascot-position-above-post-form.post-form-style-fixed:not(.post-form-decorations) #mascot img {
|
||||||
|
|||||||
@ -264,9 +264,9 @@ MascotTools =
|
|||||||
@previousElementSibling.value = fileURL
|
@previousElementSibling.value = fileURL
|
||||||
return
|
return
|
||||||
|
|
||||||
cv = $.el 'canvas'
|
cv = $.el 'canvas',
|
||||||
cv.height = height = s / width * height
|
height: height = s / width * height
|
||||||
cv.width = width = s
|
width: width = s
|
||||||
cv.getContext('2d').drawImage img, 0, 0, width, height
|
cv.getContext('2d').drawImage img, 0, 0, width, height
|
||||||
URL.revokeObjectURL fileURL
|
URL.revokeObjectURL fileURL
|
||||||
cv.toBlob (blob) =>
|
cv.toBlob (blob) =>
|
||||||
@ -332,8 +332,8 @@ MascotTools =
|
|||||||
$.rm $.id 'mascotConf'
|
$.rm $.id 'mascotConf'
|
||||||
Settings.open "Mascots"
|
Settings.open "Mascots"
|
||||||
|
|
||||||
importMascot: (evt) ->
|
importMascot: ->
|
||||||
file = evt.target.files[0]
|
file = @files[0]
|
||||||
reader = new FileReader()
|
reader = new FileReader()
|
||||||
|
|
||||||
reader.onload = (e) ->
|
reader.onload = (e) ->
|
||||||
@ -360,10 +360,10 @@ MascotTools =
|
|||||||
$.set 'userMascots', userMascots
|
$.set 'userMascots', userMascots
|
||||||
|
|
||||||
alert "Mascot \"#{name}\" imported!"
|
alert "Mascot \"#{name}\" imported!"
|
||||||
$.rm $("#mascotContainer", d.body)
|
$.rm $ "#mascotContainer", d.body
|
||||||
Settings.open 'Mascots'
|
Settings.open 'Mascots'
|
||||||
|
|
||||||
reader.readAsText(file)
|
reader.readAsText file
|
||||||
|
|
||||||
reposition: ->
|
reposition: ->
|
||||||
mascot = Mascots[Conf['mascot']]
|
mascot = Mascots[Conf['mascot']]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user