Add an option to click current mascot to switch between mascots.
This commit is contained in:
parent
283a33c443
commit
8490850939
@ -287,6 +287,7 @@
|
|||||||
},
|
},
|
||||||
Mascots: {
|
Mascots: {
|
||||||
'Mascots': [true, 'Add a pretty picture of your waifu to Appchan.'],
|
'Mascots': [true, 'Add a pretty picture of your waifu to Appchan.'],
|
||||||
|
'Click to Toggle': [true, 'Click your current mascot to switch between your enabled mascots.'],
|
||||||
'Mascot Location': ['sidebar', 'Change where your mascot is located.', ['sidebar', 'opposite']],
|
'Mascot Location': ['sidebar', 'Change where your mascot is located.', ['sidebar', 'opposite']],
|
||||||
'Mascot Position': ['default', 'Change where your mascot is placed in relation to the post form.', ['above post form', 'default', 'bottom', 'middle']],
|
'Mascot Position': ['default', 'Change where your mascot is placed in relation to the post form.', ['above post form', 'default', 'bottom', 'middle']],
|
||||||
'Mascots Overlap Posts': [true, 'Mascots overlap threads and posts.'],
|
'Mascots Overlap Posts': [true, 'Mascots overlap threads and posts.'],
|
||||||
@ -10927,7 +10928,9 @@
|
|||||||
id: "mascot",
|
id: "mascot",
|
||||||
innerHTML: "<img>"
|
innerHTML: "<img>"
|
||||||
});
|
});
|
||||||
$.on(this.el, 'mousedown', MascotTools.click);
|
if (Conf['Click to Toggle']) {
|
||||||
|
$.on(this.el, 'mousedown', MascotTools.click);
|
||||||
|
}
|
||||||
$.asap((function() {
|
$.asap((function() {
|
||||||
return d.body;
|
return d.body;
|
||||||
}), function() {
|
}), function() {
|
||||||
|
|||||||
@ -268,6 +268,7 @@
|
|||||||
},
|
},
|
||||||
Mascots: {
|
Mascots: {
|
||||||
'Mascots': [true, 'Add a pretty picture of your waifu to Appchan.'],
|
'Mascots': [true, 'Add a pretty picture of your waifu to Appchan.'],
|
||||||
|
'Click to Toggle': [true, 'Click your current mascot to switch between your enabled mascots.'],
|
||||||
'Mascot Location': ['sidebar', 'Change where your mascot is located.', ['sidebar', 'opposite']],
|
'Mascot Location': ['sidebar', 'Change where your mascot is located.', ['sidebar', 'opposite']],
|
||||||
'Mascot Position': ['default', 'Change where your mascot is placed in relation to the post form.', ['above post form', 'default', 'bottom', 'middle']],
|
'Mascot Position': ['default', 'Change where your mascot is placed in relation to the post form.', ['above post form', 'default', 'bottom', 'middle']],
|
||||||
'Mascots Overlap Posts': [true, 'Mascots overlap threads and posts.'],
|
'Mascots Overlap Posts': [true, 'Mascots overlap threads and posts.'],
|
||||||
@ -10915,7 +10916,9 @@
|
|||||||
id: "mascot",
|
id: "mascot",
|
||||||
innerHTML: "<img>"
|
innerHTML: "<img>"
|
||||||
});
|
});
|
||||||
$.on(this.el, 'mousedown', MascotTools.click);
|
if (Conf['Click to Toggle']) {
|
||||||
|
$.on(this.el, 'mousedown', MascotTools.click);
|
||||||
|
}
|
||||||
$.asap((function() {
|
$.asap((function() {
|
||||||
return d.body;
|
return d.body;
|
||||||
}), function() {
|
}), function() {
|
||||||
|
|||||||
@ -609,6 +609,10 @@ Config =
|
|||||||
true
|
true
|
||||||
'Add a pretty picture of your waifu to Appchan.'
|
'Add a pretty picture of your waifu to Appchan.'
|
||||||
]
|
]
|
||||||
|
'Click to Toggle': [
|
||||||
|
true
|
||||||
|
'Click your current mascot to switch between your enabled mascots.'
|
||||||
|
]
|
||||||
'Mascot Location': [
|
'Mascot Location': [
|
||||||
'sidebar'
|
'sidebar'
|
||||||
'Change where your mascot is located.'
|
'Change where your mascot is located.'
|
||||||
|
|||||||
@ -11,7 +11,8 @@ MascotTools =
|
|||||||
id: "mascot"
|
id: "mascot"
|
||||||
innerHTML: "<img>"
|
innerHTML: "<img>"
|
||||||
|
|
||||||
$.on @el, 'mousedown', MascotTools.click
|
if Conf['Click to Toggle']
|
||||||
|
$.on @el, 'mousedown', MascotTools.click
|
||||||
|
|
||||||
$.asap (-> d.body), =>
|
$.asap (-> d.body), =>
|
||||||
$.add d.body, @el
|
$.add d.body, @el
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user