commit
a7c8763a64
2
LICENSE
2
LICENSE
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* appchan x - Version 2.10.4 - 2015-01-23
|
* appchan x - Version 2.10.4 - 2015-01-24
|
||||||
*
|
*
|
||||||
* 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
@ -81,7 +81,7 @@ Gallery =
|
|||||||
|
|
||||||
for file in $$ '.post .file'
|
for file in $$ '.post .file'
|
||||||
post = Get.postFromNode file
|
post = Get.postFromNode file
|
||||||
continue if post.file.isDead
|
continue if !post.file or post.file.isDead
|
||||||
Gallery.generateThumb post
|
Gallery.generateThumb post
|
||||||
# If no image to open is given, pick image we have scrolled to.
|
# If no image to open is given, pick image we have scrolled to.
|
||||||
if !image and Gallery.fullIDs[post.fullID]
|
if !image and Gallery.fullIDs[post.fullID]
|
||||||
@ -219,7 +219,7 @@ Gallery =
|
|||||||
when 'Right'
|
when 'Right'
|
||||||
Gallery.cb.next
|
Gallery.cb.next
|
||||||
when 'Enter'
|
when 'Enter'
|
||||||
Gallery.cb.advance
|
Gallery.cb.enterKey
|
||||||
when 'Left', ''
|
when 'Left', ''
|
||||||
Gallery.cb.prev
|
Gallery.cb.prev
|
||||||
when Conf['Pause']
|
when Conf['Pause']
|
||||||
@ -254,6 +254,7 @@ Gallery =
|
|||||||
click: -> Gallery.cb[if Gallery.nodes.current.controls then 'stop' else 'enterKey']()
|
click: -> Gallery.cb[if Gallery.nodes.current.controls then 'stop' else 'enterKey']()
|
||||||
toggle: -> (if Gallery.nodes then Gallery.cb.close else Gallery.build)()
|
toggle: -> (if Gallery.nodes then Gallery.cb.close else Gallery.build)()
|
||||||
blank: (e) -> Gallery.cb.close() if e.target is @
|
blank: (e) -> Gallery.cb.close() if e.target is @
|
||||||
|
toggleSlideshow: -> Gallery.cb[if Gallery.slideshow then 'stop' else 'start']()
|
||||||
|
|
||||||
pause: ->
|
pause: ->
|
||||||
Gallery.cb.stop()
|
Gallery.cb.stop()
|
||||||
@ -269,7 +270,7 @@ Gallery =
|
|||||||
return unless Gallery.slideshow
|
return unless Gallery.slideshow
|
||||||
Gallery.cleanupTimer()
|
Gallery.cleanupTimer()
|
||||||
{current} = Gallery.nodes
|
{current} = Gallery.nodes
|
||||||
current.loop = current.nodeName is 'VIDEO'
|
current.loop = true if current.nodeName is 'VIDEO'
|
||||||
$.rmClass Gallery.nodes.buttons, 'gal-playing'
|
$.rmClass Gallery.nodes.buttons, 'gal-playing'
|
||||||
Gallery.slideshow = false
|
Gallery.slideshow = false
|
||||||
|
|
||||||
@ -302,15 +303,10 @@ Gallery =
|
|||||||
textContent: 'Gallery'
|
textContent: 'Gallery'
|
||||||
className: 'gallery-link'
|
className: 'gallery-link'
|
||||||
|
|
||||||
{createSubEntry} = Gallery.menu
|
|
||||||
subEntries = []
|
|
||||||
for name of Config.gallery
|
|
||||||
subEntries.push createSubEntry name
|
|
||||||
|
|
||||||
Header.menu.addEntry
|
Header.menu.addEntry
|
||||||
el: el
|
el: el
|
||||||
order: 105
|
order: 105
|
||||||
subEntries: subEntries
|
subEntries: Gallery.menu.createSubEntries()
|
||||||
|
|
||||||
createSubEntry: (name) ->
|
createSubEntry: (name) ->
|
||||||
label = $.el 'label',
|
label = $.el 'label',
|
||||||
|
|||||||
@ -19,6 +19,7 @@ Fourchan =
|
|||||||
$.globalEval '''
|
$.globalEval '''
|
||||||
window.addEventListener('jsmath', function(e) {
|
window.addEventListener('jsmath', function(e) {
|
||||||
if (!jsMath) return;
|
if (!jsMath) return;
|
||||||
|
if (jsMath.loaded) {
|
||||||
// process one post
|
// process one post
|
||||||
jsMath.ProcessBeforeShowing(e.target);
|
jsMath.ProcessBeforeShowing(e.target);
|
||||||
} else if (jsMath.Autoload && jsMath.Autoload.checked) {
|
} else if (jsMath.Autoload && jsMath.Autoload.checked) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user