<!DOCTYPE html>
	<html lang="en-US">
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Log In &lsaquo; Bangor Daily News &#8212; WordPress</title>
	  <style type="text/css">
		.login {
			background: white;
		}

		#login {
			color: #1e1e1e;
		}

		#login h1 {
			margin: 0 0 24px;
			padding: 24px 24px 0;
		}

		#login h1 a {
			background-position: bottom center;
			background-repeat: no-repeat;
			background-size: contain;
			height: 72px;
			margin: 0 auto;
							background-image: url( "data:image/svg+xml,%3Csvg width='72' height='72' fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 32c8.836 0 16-7.164 16-16S24.836 0 16 0 0 7.164 0 16s7.163 16 16 16z' fill='%2336f'/%3E%3Cpath d='M22.988 16.622h-1.72l-1.103-1.124h2.823v1.124zm0-3.31H18.02l-1.102-1.124h6.071v1.124zm0-3.31h-8.217l-1.103-1.125h9.32v1.125zm0 13.12L9.012 8.878v14.246h3.45v-5.98l5.867 5.98h4.66z' fill='%23fff'/%3E%3C/svg%3E%0A" );
				width: 72px;
					}

		#login form {
			border: none;
			box-shadow: 0 0 0 1px #ddd;
			margin: 0;
			padding: 24px;
		}

		#login #nav,
		#login #backtoblog {
			background: white;
			box-shadow: 0 0 0 1px #ddd;
			margin: 0;
			padding: 12px 12px 0;
		}

		#login #nav a,
		#login #backtoblog a {
			color: inherit;
		}

		#login #nav a:hover,
		#login #backtoblog a:hover {
			text-decoration: underline;
		}

		#login #backtoblog {
			padding-bottom: 12px;
			position: relative;
		}

		#login #backtoblog:before {
			background: white;
			content: "";
			display: block;
			height: 1px;
			left: 1px;
			position: absolute;
			right: 1px;
			top: -1px;
		}

		#login .message,
		#login .success,
		#login #login_error {
			box-shadow: 0 0 0 1px #ddd;
			margin: 0;
		}
  </style>
<meta name='robots' content='noindex, follow' />
<link rel='dns-prefetch' href='//bdn-data.s3.amazonaws.com' />
<link rel='dns-prefetch' href='//i0.wp.com' />
<link rel='dns-prefetch' href='//c0.wp.com' />
<script src="https://www.bangordailynews.com/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection/dist/jetpack-sso-login.js?minify=false&amp;ver=2.11.2" id="jetpack-sso-login-js"></script>
<link rel='stylesheet' id='genesis-blocks-style-css-css' href='https://www.bangordailynews.com/wp-content/plugins/genesis-blocks/dist/style-blocks.build.css?ver=1720736657' type='text/css' media='all' />
<link rel='stylesheet' id='dashicons-css' href='https://c0.wp.com/c/6.6.1/wp-includes/css/dashicons.min.css' type='text/css' media='all' />
<link rel='stylesheet' id='buttons-css' href='https://c0.wp.com/c/6.6.1/wp-includes/css/buttons.min.css' type='text/css' media='all' />
<link rel='stylesheet' id='forms-css' href='https://c0.wp.com/c/6.6.1/wp-admin/css/forms.min.css' type='text/css' media='all' />
<link rel='stylesheet' id='l10n-css' href='https://c0.wp.com/c/6.6.1/wp-admin/css/l10n.min.css' type='text/css' media='all' />
<link rel='stylesheet' id='login-css' href='https://c0.wp.com/c/6.6.1/wp-admin/css/login.min.css' type='text/css' media='all' />
<link rel='stylesheet' id='jetpack-sso-login-css' href='https://www.bangordailynews.com/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection/dist/jetpack-sso-login.css?minify=false&#038;ver=2.11.2' type='text/css' media='all' />
			<style>
				.jetpack-sso .message {
					margin-top: 20px;
				}

				.jetpack-sso #login .message:first-child,
				.jetpack-sso #login h1 + .message {
					margin-top: 0;
				}
			</style>
			<meta name='referrer' content='strict-origin-when-cross-origin' />
		<meta name="viewport" content="width=device-width" />
	<link rel="icon" href="https://bdn-data.s3.amazonaws.com/uploads/2020/06/BDN-logo-144x144-1-1-35x35.png" sizes="32x32" />
<link rel="icon" href="https://i0.wp.com/bdn-data.s3.amazonaws.com/uploads/2020/06/BDN-logo-144x144-1-1.png?fit=144%2C144&#038;ssl=1" sizes="192x192" />
<link rel="apple-touch-icon" href="https://i0.wp.com/bdn-data.s3.amazonaws.com/uploads/2020/06/BDN-logo-144x144-1-1.png?fit=144%2C144&#038;ssl=1" />
<meta name="msapplication-TileImage" content="https://i0.wp.com/bdn-data.s3.amazonaws.com/uploads/2020/06/BDN-logo-144x144-1-1.png?fit=144%2C144&#038;ssl=1" />
	</head>
	<body class="login no-js login-action-login wp-core-ui  locale-en-us jetpack-sso jetpack-sso-form-display">
	<script>
document.body.className = document.body.className.replace('no-js','js');
</script>

		<div id="login">
		<h1><a href="https://www.bangordailynews.com">Bangor Daily News</a></h1>
	<p class="message">A WordPress.com account is required to access this site. Click the button below to sign in or create a free WordPress.com account.</p>
<div id="login_error" class="notice notice-error"><p><strong>Error:</strong> User registration is currently not allowed.</p></div>
		<form name="loginform" id="loginform" action="https://www.bangordailynews.com/wp-login.php" method="post">
			<p>
				<label for="user_login">Username or Email Address</label>
				<input type="text" name="log" id="user_login" aria-describedby="login_error" class="input" value="" size="20" autocapitalize="off" autocomplete="username" required="required" />
			</p>

			<div class="user-pass-wrap">
				<label for="user_pass">Password</label>
				<div class="wp-pwd">
					<input type="password" name="pwd" id="user_pass" aria-describedby="login_error" class="input password-input" value="" size="20" autocomplete="current-password" spellcheck="false" required="required" />
					<button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="Show password">
						<span class="dashicons dashicons-visibility" aria-hidden="true"></span>
					</button>
				</div>
			</div>
					<div id="jetpack-sso-wrap">
		

			<div id="jetpack-sso-wrap__action">
					<a rel="nofollow" href="https://www.bangordailynews.com/wp-login.php?action=jetpack-sso" class="jetpack-sso button button-primary"><span class="genericon genericon-wordpress"></span> Log in with WordPress.com</a>
										<p>
						You can now save time spent logging in by connecting your WordPress.com account to Bangor Daily News.					</p>
							</div>

							</div>
							<p class="forgetmenot"><input name="rememberme" type="checkbox" id="rememberme" value="forever"  /> <label for="rememberme">Remember Me</label></p>
			<p class="submit">
				<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="Log In" />
									<input type="hidden" name="redirect_to" value="https://www.bangordailynews.com/wp-admin/" />
									<input type="hidden" name="testcookie" value="1" />
			</p>
		</form>

					<p id="nav">
				<a class="wp-login-lost-password" href="https://www.bangordailynews.com/wp-login.php?action=lostpassword">Lost your password?</a>			</p>
			<script>
function wp_attempt_focus() {setTimeout( function() {try {d = document.getElementById( "user_login" );d.focus(); d.select();} catch( er ) {}}, 200);}
wp_attempt_focus();
if ( typeof wpOnload === 'function' ) { wpOnload() }
</script>
		<p id="backtoblog">
			<a href="https://www.bangordailynews.com/">&larr; Go to Bangor Daily News</a>		</p>
		<div class="privacy-policy-page-link"><a class="privacy-policy-link" href="https://www.bangordailynews.com/privacy/" rel="privacy-policy">Privacy Policy</a></div>	</div>
			<link rel='stylesheet' id='jetpack_css-css' href='https://www.bangordailynews.com/wp-content/plugins/jetpack/css/jetpack.css?ver=13.7-a.5' type='text/css' media='all' />
<script src="https://c0.wp.com/c/6.6.1/wp-includes/js/jquery/jquery.min.js" id="jquery-core-js"></script>
<script src="https://c0.wp.com/c/6.6.1/wp-includes/js/jquery/jquery-migrate.min.js" id="jquery-migrate-js"></script>
<script id="zxcvbn-async-js-extra">
var _zxcvbnSettings = {"src":"https:\/\/www.bangordailynews.com\/wp-includes\/js\/zxcvbn.min.js"};
</script>
<script src="https://c0.wp.com/c/6.6.1/wp-includes/js/zxcvbn-async.min.js" id="zxcvbn-async-js"></script>
<script src="https://c0.wp.com/c/6.6.1/wp-includes/js/dist/hooks.min.js" id="wp-hooks-js"></script>
<script src="https://c0.wp.com/c/6.6.1/wp-includes/js/dist/i18n.min.js" id="wp-i18n-js"></script>
<script id="wp-i18n-js-after">
wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );
</script>
<script id="password-strength-meter-js-extra">
var pwsL10n = {"unknown":"Password strength unknown","short":"Very weak","bad":"Weak","good":"Medium","strong":"Strong","mismatch":"Mismatch"};
</script>
<script src="https://c0.wp.com/c/6.6.1/wp-admin/js/password-strength-meter.min.js" id="password-strength-meter-js"></script>
<script src='https://www.bangordailynews.com/wp-content/plugins/the-events-calendar/common/src/resources/js/underscore-before.js'></script>
<script src="https://c0.wp.com/c/6.6.1/wp-includes/js/underscore.min.js" id="underscore-js"></script>
<script src='https://www.bangordailynews.com/wp-content/plugins/the-events-calendar/common/src/resources/js/underscore-after.js'></script>
<script id="wp-util-js-extra">
var _wpUtilSettings = {"ajax":{"url":"\/wp-admin\/admin-ajax.php"}};
</script>
<script src="https://c0.wp.com/c/6.6.1/wp-includes/js/wp-util.min.js" id="wp-util-js"></script>
<script id="user-profile-js-extra">
var userProfileL10n = {"user_id":"0","nonce":"d1a6a68f59"};
</script>
<script src="https://c0.wp.com/c/6.6.1/wp-admin/js/user-profile.min.js" id="user-profile-js"></script>
	<script>
	/(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())},!1);
	</script>
		<script>

        // Set cookie name, If empty give it the default
        var cookie_name = 'bdn_subscriber' ?
            'bdn_subscriber' :
            'bdn_subscriber';

        //document.cookie = cookie_name + "=test;domain=.newspackstaging.com;path=/";

		/**
		 * Piano Login/Logout button handling.
		 */
		( function() {
			var logout = document.getElementsByClassName( 'wp_piano_logout_button' );
			var login  = document.getElementsByClassName( 'wp_piano_id_button' );

			function piano_add_logout_listener() {
				for ( var i = 0; i < logout.length; ++i ) {
					logout[ i ].addEventListener( 'click', function(evt) {
						evt.preventDefault();
						// Remove the ad-lite experience cookie when the user logs out
                        document.cookie = cookie_name + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC;domain=.bangordailynews.com;path=/;";
                        //document.cookie = cookie_name +"=; expires=Thu, 01 Jan 1970 00:00:00 UTC;domain=.newspackstaging.com;path=/;";
						tp.pianoId.logout();
                        jQuery('.scaip').show();
					} );
				}
			}

			function piano_handle_login_logout_buttons() {
				if ( tp.pianoId.isUserValid() ) {
					for ( var i = 0; i < logout.length; ++i ) {
						logout[ i ].classList.remove( 'hide' );
					}
					for ( var i = 0; i < logout.length; ++i ) {
						login[ i ].classList.add( 'hide' );
					}

					// Populate cookie with rid
                    //piano_user_experience();

				} else {
					for ( var i = 0; i < logout.length; ++i ) {
						logout[ i ].classList.add( 'hide' );
					}
					for ( var i = 0; i < logout.length; ++i ) {
						login[ i ].classList.remove( 'hide' );
					}

					console.log(cookie_name);
					// Make sure the cookie is removed
                    document.cookie = cookie_name + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC;domain=.bangordailynews.com;path=/;";
                    //document.cookie = cookie_name + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC;domain=.newspackstaging.com;path=/;";
				}
			}

			function piano_password_reset() {
				if ( '/' !== document.location.pathname ) {
					return;
				}

				// Password can be reset only if user is anonymous
				if (!tp.user.isUserValid()) {
					// If URL has reset_token parameter
					var tokenMatch = location.search.match(/reset_token=([A-Za-z0-9]+)/);
					if (tokenMatch) {
						// Get value of the token
						var token = tokenMatch[1];
						// Present password reset form with the found token
						tp.pianoId.show({
							'resetPasswordToken': token, loggedIn: function () {
								// Once user logs in - refresh the page
								location.reload();
							}
						});
					}
				}
			}

			// Ad-lite experience
			// If user is a subscriber, add cookie with resource id
            function piano_user_experience() {
                if ( tp.pianoId.isUserValid() ) {
                    tp.api.callApi('/access/list', {}, function (data) {
                        if (typeof data.data != "undefined") {
                            // Loop through all possible access objects
                            for (var i in data.data) {
                                // Was access granted?
                                if (data.data[i].granted) {
                                    // Get the resource id, put into a browser cookie for ad-lite experience
                                    // note: Super Cool Ad Inserter checks for this cookie in function scaip_maybe_insert_shortcode found in file /plugins/super-cool-ad-inserter/inc/scaip-shortcode-inserter.php
                                    if(data.data[i].resource.rid){
                                        document.cookie = cookie_name + "="+data.data[i].resource.rid+";domain=.bangordailynews.com;path=/";
                                        document.cookie = "uid" + "="+data.data[i].user.uid+";domain=.bangordailynews.com;path=/";
                                        // Action exclusivity??
                                        //document.cookie = cookie_name + "="+data.data[i].resource.rid+";domain=.newspackstaging.com;path=/";
                                        var rid = data.data[i].resource.rid;
                                    }
                                }
                            }
                        }
                    });
                } else {
                    // Make sure the subscriber cookie is removed if user is logged out.
                    document.cookie = cookie_name + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC;domain=.bangordailynews.com;path=/;";
                    //document.cookie = cookie_name + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC;domain=.newspackstaging.com;path=/;";
                }
            }


			tp.push( [ 'init', piano_add_logout_listener ] );
			tp.push( [ 'init', piano_handle_login_logout_buttons ] );
			tp.push( [ 'init', piano_password_reset ] );

            // Added for ad-lite experience
            tp.push( [ 'init', piano_user_experience ] );

			tp.push( [ 'addHandler', 'loggedIn', piano_handle_login_logout_buttons ] );
			tp.push( [ 'addHandler', 'loggedOut', piano_handle_login_logout_buttons ] );
			tp.push( [ 'addHandler', 'loginSuccess', piano_handle_login_logout_buttons ] );
        } )();

		// Trigger page refresh after users login
		tp = window.tp || [];
		// Hook execute when login was successful
		tp.push(['addHandler', 'loginSuccess', function () {
			// Get list of all access data
			tp.api.callApi('/access/list', {}, function (data) {
				if (typeof data.data != "undefined") {
					// Loop through all possible access objects
					for (var i in data.data) {
				    	// Was access granted?
						if (data.data[i].granted) {
						    // Get the resource id, put into a browser cookie for ad-lite experience
                            // note: Super Cool Ad Inserter checks for this cookie in function scaip_maybe_insert_shortcode found in file /plugins/super-cool-ad-inserter/inc/scaip-shortcode-inserter.php
                            if(data.data[i].resource.rid){
                                document.cookie = cookie_name + "="+data.data[i].resource.rid+";domain=.bangordailynews.com;path=/";
                                //document.cookie = cookie_name + "="+data.data[i].resource.rid+";domain=.newspackstaging.com;path=/";
                            }

							// All good, user just logged in, we can close the offer
							tp.offer.close();

							location.reload();

						}
					}
				}
			});
		}]);
	</script>
		</body>
	</html>