document.write('
'); var nfyLoginLink = "https://mein.mittelhessen.de/REST/oauth/authorize?response_type=code&client_id=6639066501&access_type=offline&approval_prompt=force&redirect_uri=http%3A%2F%2Fwww.mittelhessen.de%2FREST%2Foauth%2Fclient%2Fauthorize_code"; var nfyLoginLinkAction = "https://mein.mittelhessen.de/index/login.html?clientid=6639066501&nc=1&clienttarget="; // jQuery Ready ;jQuery(document).ready(function($){ var redirectUri = nfyLoginLink.match(/redirect_uri=([^&]+)/); var newRedirectUri = redirectUri[0] + encodeURIComponent("?target=")+encodeURIComponent(encodeURIComponent(document.location.pathname+document.location.search)); nfyLoginLink = nfyLoginLink.replace(redirectUri[0], newRedirectUri); $(".login_redirect_link").click(function(e){ e.preventDefault(); window.location.href = nfyLoginLink; }); jQuery(".show-comment-form").hide(); if ( jQuery(".singlecommentcontainer .comment.detail").length > 0) { $(".commentbox .login").hide(); } jQuery(".nfyc-login-required").each(function(){ $(this).html("Login").click(function(e){ e.preventDefault(); window.location.href = nfyLoginLink; }); }); jQuery("#form-login").attr("action", nfyLoginLinkAction+encodeURIComponent(document.location.pathname+document.location.search)); if ( jQuery(".paid_content_container").length > 0 ) { if ( !sessionStorage.getItem("nfy_payment_layer") ) { jQuery(".paid_content_container").show(); } jQuery(".paid_close").click(function(e) { sessionStorage.setItem("nfy_payment_layer", "false"); jQuery(this).parent().parent().fadeOut(); e.preventDefault(); }); jQuery(".paid_content_inner").prepend('

Sie können diesen Monat noch 9 Artikel kostenlos lesen.

'); }; }); var isGuest = true;