|
|
|
@ -6,6 +6,7 @@ class app.views.EntryPage extends app.View
|
|
|
|
|
click: 'onClick'
|
|
|
|
|
|
|
|
|
|
@shortcuts:
|
|
|
|
|
altC: 'onAltC'
|
|
|
|
|
altO: 'onAltO'
|
|
|
|
|
|
|
|
|
|
@routes:
|
|
|
|
@ -153,6 +154,12 @@ class app.views.EntryPage extends app.View
|
|
|
|
|
setTimeout (-> target.className = '_pre-clip'), 2000
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
onAltC: =>
|
|
|
|
|
return unless link = @find('._attribution:last-child ._attribution-link')
|
|
|
|
|
console.log(link.href + location.hash)
|
|
|
|
|
navigator.clipboard.writeText(link.href + location.hash)
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
onAltO: =>
|
|
|
|
|
return unless link = @find('._attribution:last-child ._attribution-link')
|
|
|
|
|
@delay -> $.popup(link.href + location.hash)
|
|
|
|
|