var repeatClickOpenHref = false; var scrollTopAfterClose = 0; function exphpCloseOverlay() { if( $cmhp_jq( 'input[type="checkbox"][name="cb_firstinfo_accept"]' ).is(':checked') ) { sessionStorage['firstinfo_shown'] = 1; if( false != repeatClickOpenHref ) { var win = window.open( repeatClickOpenHref, '_blank' ); win.focus(); } $cmhp_jq( 'body' ).find( '.cmod.cmod_calc' ).find( 'iframe' ).css( 'pointer-events', 'auto' ); $cmhp_jq( 'body' ).find( 'iframe[data-open-firstinfo-overlay="true"], [data-open-firstinfo-overlay="inline"]' ).css( 'pointer-events', 'auto' ); $cmhp_jq('html, body').css({ overflow: 'auto', height: 'auto' }); $cmhp_jq('body').scrollTop( scrollTopAfterClose ); $cmhp_jq( '#exphp_mask' ).fadeOut(); } else { $cmhp_jq( 'input[type="checkbox"][name="cb_firstinfo_accept"]' ).parent().css({ color: '#cc0000' }); } return false; } function exphpOpenOverlay() { if( $cmhp_jq( 'body' ).children( '#exphp_mask' ).length > 0 ) { return false; } scrollTopAfterClose = $cmhp_jq('body').scrollTop(); $cmhp_jq('html, body').css({ overflow: 'hidden', height: '100%' }); $cmhp_jq( '
' ).css({ position: 'fixed', left: 0, right: 0, top: 0, bottom: 0, background: 'rgba(255,255,255,1)', zIndex: 999999999999, display: 'flex', 'align-items': 'center', 'justify-content': 'center', lineHeight: 1 }).appendTo( 'body' ); $cmhp_jq( '
' ).css({ background: '#fff', border: '1px solid #DDDDDD', 'box-shadow': '0px 0px 7px #bbb', 'height': '80vh', width: '600px', 'max-width': '100vw', 'box-sizing': 'border-box', overflow: 'hidden' }).appendTo( '#exphp_mask' ); $cmhp_jq( '#exphp_overlay' ).append( '

Erstinformation

'); $cmhp_jq( '#exphp_overlay' ).append( '
' ); $cmhp_jq( '#exphp_overlaycontentcontainer' ).after( '
'); $cmhp_jq( '#exphp_buttoncontainer' ).append( 'Erstinformation speichern'); $cmhp_jq( '#exphp_buttoncontainer' ).append( 'weiter zum Rechner'); $cmhp_jq( '#exphp_overlay' ).find( '.bigsubmitbutton' ).css({ paddingTop: '12px', paddingBottom: '12px', fontSize: '16px', marginTop: '15px', }); $cmhp_jq( '#exphp_overlay' ).find( '.bigsubmitbutton.save_pdf' ).css({ background: 'rgb(242, 242, 242)', border: '1px solid rgb(201, 201, 202)', color: 'rgb(51, 51, 51)', float: 'left', marginLeft: '20px' }); $cmhp_jq( '#exphp_overlay' ).find( '.bigsubmitbutton.close_overlay' ).css({ float: 'right', marginRight: '20px' }); var data = "\n\n \n\nErstinformation<\/title>\n\n