<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Electronics Online Store is opening soon</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <!--[if lte IE 8]> <html class="lte-ie8"> <![endif]-->
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no">
  <link href="//cdn.shopify.com/s/assets/storefront/opening_soon-7ca18dbe2b35b9a4e6b6dbfb6e487bb0.css" media="screen" rel="stylesheet" />
</head>
<body class="segment-online ">
  <img alt="Opening soon background image" class="fixed-background" src="//cdn.shopify.com/s/assets/storefront/bg3-372187cb87d9e90953ade219810c46f7.jpg" />

  <div class="modal-container " id="ModalContainer">
    <div class="modal__header">
      <div class="page-width modal__controls">
        <button type="button" class="icon icon-close-white" id="CloseModal">
          <span class="visuallyhidden">Close</span>
        </button>
      </div>
    </div>

    <div class="modal" role="dialog" aria-labelledby="ModalTitle">
      <div class="modal__content">
        <h2 class="modal__heading" id="ModalTitle">Enter store using password:</h2>
        <form accept-charset="UTF-8" action="/opening_soon" class="clearfix" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="LGocOBmBVflZ6ej9jW4NdycezrC5OHOluHMuj/yVqa8=" /></div>
          <label class="password-input marketing-input-wrapper" for="password">
            <span class="marketing-label marketing-label--hidden ">
              <span class="visuallyhidden">Password</span>
            </span>
            <input class="marketing-input" name="password" placeholder="Password" type="password" id="password">
          </label>
          <div class="password-submit marketing-input-wrapper">
            <input class="marketing-button marketing-form__submit segment-button" name="submit" type="submit" value="Enter">
          </div>
</form>
        <div class="modal__footer">
          <h4 class="modal__heading heading--4 modal__flair">Are you the store owner?</h4>
          <p>
            <a href="/admin">Log in here</a> or <a href="/admin/settings/general?tutorial=unlock">change your password settings</a>
          </p>
        </div>
      </div>
    </div>
  </div>

  <div class="opening-soon">
    <div class="section-heading">
      <h2 class="heading--2">Electronics Online Store</h2>
      <div class="section-heading__flair">
        <div class="opening-soon__img-container">
          <!--[if gte IE 9]><!-->
            <img alt="Opening soon" class="opening-soon__img" src="//cdn.shopify.com/s/assets/storefront/opening-soon-48bb7b45ac2c4e19a970510a52ffcf20.svg" />
          <!--<![endif]-->
          <!--[if lte IE 8]>
            <img alt="Opening soon" class="opening-soon__img" src="//cdn.shopify.com/s/assets/storefront/opening-soon-6bc58bfdd97609af9b15e8434c17b0f6.png" />
          <![endif]-->
        </div>
      </div>
      <button type="button" class="button segment-button button--small" id="OpenModal"><i class="ico ico-lock"></i> Enter store password</button>
    </div>

    <div class="opening-soon__footer">
      <p>This shop will be powered by <a href="//www.shopify.com" target="_blank" title="Create your own online store with Shopify" class="opening-soon__link"><i class="ico ico-shopify-bag"></i><span class="visuallyhidden">Shopify</span></a></p>
    </div>
  </div>

  <script>
    (function(){
      var MODAL = document.getElementById('ModalContainer'),
        CLOSE_BUTTON = document.getElementById("CloseModal"),
        OPEN_BUTTON = document.getElementById("OpenModal"),
        MODAL_ACTIVE_CLASS = 'js-is-active',
        BODY_MODAL_CLASS = 'js-modal-open';

      function openModal() {
        if (!isActiveModal()) {
          MODAL.className += ' ' + MODAL_ACTIVE_CLASS;
          document.body.className += ' ' + BODY_MODAL_CLASS;
          document.getElementById('password').focus();
        }
      }

      function closeModal() {
        if (isActiveModal()) {
          MODAL.className = MODAL.className.replace(RegExp('\\b\\s*' + MODAL_ACTIVE_CLASS + '\\b'),'');
          document.body.className = document.body.className.replace(RegExp('\\b\\s*' + BODY_MODAL_CLASS + '\\b'),'');
        }
      }

      function isActiveModal() {
        return (document.body.className.match(RegExp('\\b\\s*' + BODY_MODAL_CLASS + '\\b')) ? true : false);
      }

      function escapeModal(evt) {
        if (isActiveModal() && evt.keyCode === 27) {
          closeModal();
        }
      }

      CLOSE_BUTTON.onclick = closeModal;
      OPEN_BUTTON.onclick = openModal;
      window.onkeyup = escapeModal;
    })();
  </script>

</body>
</html>
