dist/crocodoc.viewer.js
function createSVGEl() {
        switch (embedStrategy) {
            case EMBED_STRATEGY_IFRAME_INNERHTML:
            case EMBED_STRATEGY_IFRAME_PROXY:
                return $('<iframe>');

            case EMBED_STRATEGY_DATA_URL_PROXY:
            case EMBED_STRATEGY_DATA_URL:
                return $('<object>').attr({
                    type: SVG_MIME_TYPE,
                    data: 'data:'+SVG_MIME_TYPE+';base64,' + window.btoa(SVG_CONTAINER_TEMPLATE)
                });

            case EMBED_STRATEGY_INLINE_SVG:
                return $('<div>');

            case EMBED_STRATEGY_BASIC_OBJECT:
                return $('<object>');

            case EMBED_STRATEGY_BASIC_IMG:
            case EMBED_STRATEGY_DATA_URL_IMG:
                return $('<img>');

            // no default
        }
    }
function createSVGEl() {
        switch (embedStrategy) {
            case EMBED_STRATEGY_IFRAME_INNERHTML:
            case EMBED_STRATEGY_IFRAME_PROXY:
                return $('<iframe>');

            case EMBED_STRATEGY_DATA_URL_PROXY:
            case EMBED_STRATEGY_DATA_URL:
                return $('<object>').attr({
                    type: SVG_MIME_TYPE,
                    data: 'data:'+SVG_MIME_TYPE+';base64,' + window.btoa(SVG_CONTAINER_TEMPLATE)
                });

            case EMBED_STRATEGY_INLINE_SVG:
                return $('<div>');

            case EMBED_STRATEGY_BASIC_OBJECT:
                return $('<object>');

            case EMBED_STRATEGY_BASIC_IMG:
            case EMBED_STRATEGY_DATA_URL_IMG:
                return $('<img>');

            // no default
        }
    }
function createSVGEl ( ) { switch ( embedStrategy ) { case EMBED_STRATEGY_IFRAME_INNERHTML : case EMBED_STRATEGY_IFRAME_PROXY : return $ ( '<iframe>' ) ; case EMBED_STRATEGY_DATA_URL_PROXY : case EMBED_STRATEGY_DATA_URL : return $ ( '<object>' ) . attr ( { type : SVG_MIME_TYPE , data : 'data:' + SVG_MIME_TYPE + ';base64,' + window . btoa ( SVG_CONTAINER_TEMPLATE ) } ) ; case EMBED_STRATEGY_INLINE_SVG : return $ ( '<div>' ) ; case EMBED_STRATEGY_BASIC_OBJECT : return $ ( '<object>' ) ; case EMBED_STRATEGY_BASIC_IMG : case EMBED_STRATEGY_DATA_URL_IMG : return $ ( '<img>' ) ; // no default } }
Create and return a jQuery object for the SVG element
@returns {Object} The SVG $element
@private
Create and return a jQuery object for the SVG element