dist/crocodoc.viewer.js
function initViewerHTML() {
        // create viewer HTML
        $el.html(Crocodoc.viewerTemplate);
        if (config.useWindowAsViewport) {
            config.$viewport = $(window);
            $el.addClass(CSS_CLASS_WINDOW_AS_VIEWPORT);
        } else {
            config.$viewport = $el.find('.' + CSS_CLASS_VIEWPORT);
        }
        config.$doc = $el.find('.' + CSS_CLASS_DOC);
    }
function initViewerHTML() {
        // create viewer HTML
        $el.html(Crocodoc.viewerTemplate);
        if (config.useWindowAsViewport) {
            config.$viewport = $(window);
            $el.addClass(CSS_CLASS_WINDOW_AS_VIEWPORT);
        } else {
            config.$viewport = $el.find('.' + CSS_CLASS_VIEWPORT);
        }
        config.$doc = $el.find('.' + CSS_CLASS_DOC);
    }
function initViewerHTML ( ) { // create viewer HTML $el . html ( Crocodoc . viewerTemplate ) ; if ( config . useWindowAsViewport ) { config . $viewport = $ ( window ) ; $el . addClass ( CSS_CLASS_WINDOW_AS_VIEWPORT ) ; } else { config . $viewport = $el . find ( '.' + CSS_CLASS_VIEWPORT ) ; } config . $doc = $el . find ( '.' + CSS_CLASS_DOC ) ; }
Create and insert basic viewer DOM structure
@returns {void}
@private
Create and insert basic viewer DOM structure