playground/assets/dflip/js/dflip.js
/**
         * @param dest - The PDF destination object.
         */
@param dest - The PDF destination object.
@param dest - The PDF destination object .
function PDFLinkService_navigateTo(dest) {
            if (dest == '' || dest == null || dest == 'null') return;
            var pageNumber = null;
            if (!isNaN(Math.round(dest))) {
                pageNumber = dest;
            }
            else if (typeof dest === 'string') {
                pageNumber = parseInt(dest.replace("#", ""), 10);
                if (isNaN(pageNumber)) {
                    window.open(dest);
                    return;
                }
            }
            if (pageNumber != null)
                this.pdfViewer.gotoPage(pageNumber);
        }
function PDFLinkService_navigateTo ( dest ) { if ( dest == '' || dest == null || dest == 'null' ) return ; var pageNumber = null ; if ( ! isNaN ( Math . round ( dest ) ) ) { pageNumber = dest ; } else if ( typeof dest === 'string' ) { pageNumber = parseInt ( dest . replace ( "#" , "" ) , 10 ) ; if ( isNaN ( pageNumber ) ) { window . open ( dest ) ; return ; } } if ( pageNumber != null ) this . pdfViewer . gotoPage ( pageNumber ) ; }
@param dest - The PDF destination object.
@param dest - The PDF destination object .