mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
23 lines
332 B
CoffeeScript
23 lines
332 B
CoffeeScript
|
define [
|
||
|
"libs/backbone"
|
||
|
], () ->
|
||
|
NativePdfView = Backbone.View.extend
|
||
|
tagName: "iframe"
|
||
|
|
||
|
render: () ->
|
||
|
@$el.css
|
||
|
border: "none"
|
||
|
width: "100%"
|
||
|
height: "100%"
|
||
|
return @
|
||
|
|
||
|
setPdf: (url) ->
|
||
|
@$el.attr "src", url
|
||
|
|
||
|
unsetPdf: () ->
|
||
|
@$el.removeAttr "src"
|
||
|
|
||
|
hide: () -> @$el.hide()
|
||
|
show: () -> @$el.show()
|
||
|
|