<!DOCTYPE html>&#10;<html lang="ja">&#10;<head>&#10;&#32;&#32;&#32;&#32;<meta charset="UTF-8">&#10;&#32;&#32;&#32;&#32;<meta name="viewport" content="width=device-width, initial-scale=1.0">&#10;&#32;&#32;&#32;&#32;<title>&#20024;&#12398;&#33394;&#12392;&#12450;&#12452;&#12467;&#12531;&#20999;&#12426;&#26367;&#12360;</title>&#10;&#32;&#32;&#32;&#32;
        .container {
            width: 128px;
            height: 128px;
            position: relative;
            margin: 0 auto;
        }

        .spinner {
            position: absolute;
            width: 128px;
            height: 128px;
            border: 8px solid transparent;
            border-top: 8px solid blue;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        .circle {
            position: absolute;
            width: 128px;
            height: 128px;
            border: 8px solid transparent; /* デフォルトは透明 */
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
        }

        .icon {
            width: 64px;
            height: 64px;
            font-size: 64px;
            line-height: 64px;
            text-align: center;
            opacity: 0;
            transform: scale(0);
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes fadeIn {
            0% { opacity: 0; transform: scale(0); }
            100% { opacity: 1; transform: scale(1); }
        }
    &#10;</head>&#10;<body>&#10;&#32;&#32;&#32;&#32;<div class="container">&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<div class="spinner" id="spinner"></div>&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<div class="circle" id="circle">&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<div class="icon" id="icon"></div>&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;</div>&#10;&#32;&#32;&#32;&#32;</div>&#10;&#32;&#32;&#32;&#32;<div class="tyuuou">&#10;&#32;&#32;&#32;&#32;<p>&#12524;&#12463;&#12522;&#12456;&#12540;&#12471;&#12519;&#12531;&#20418;&#12450;&#12463;&#12475;&#12473;&#35299;&#26512;&#38;&#12522;&#12480;&#12452;&#12524;&#12463;&#12488;&#32;&#100;&#121;&#32;&#83;&#111;&#103;&#111;&#117;&#83;&#121;&#115;&#116;&#101;&#109;</p>&#10;&#32;&#32;&#32;&#32;<p>&#12524;&#12463;&#12522;&#12456;&#12540;&#12471;&#12519;&#12531;&#20418;&#12289;&#83;&#111;&#103;&#111;&#117;&#83;&#121;&#115;&#116;&#101;&#109;&#12364;&#31649;&#29702;&#12375;&#12390;&#12356;&#12394;&#12356;&#12506;&#12540;&#12472;&#12395;&#31227;&#21205;&#12375;&#12414;&#12377;</p>&#10;&#32;&#32;&#32;&#32;<p id="msg"></p>&#10;&#32;&#32;&#32;&#32;</div>&#10;&#32;&#32;&#32;&#32;&#10;&#10;&#32;&#32;&#32;&#32;<script>
      
        // 丸とアイコンを切り替えて表示する関数
        function showResult(symbol, color) {
            const spinner = document.getElementById('spinner');
            const circle = document.getElementById('circle');
            const icon = document.getElementById('icon');

            // スピナーを非表示
            spinner.style.display = 'none';

            // 丸の色を設定して表示
            circle.style.borderColor = color; // 緑か赤を設定
            circle.style.opacity = '1';

            // アイコンを設定して表示
            icon.textContent = symbol; // ✔または✖
            icon.style.color = color; // アイコンの色を丸に合わせる
            icon.style.animation = 'fadeIn 0.5s forwards';
        }
        window.onload = function() {
          var msg = document.getElementById('msg'); msg.innerText = 'Googleアカウントのアドレスを取得しています・・・';
          setTimeout(var msg = document.getElementById('msg'); msg.innerText = '5-4であるか確認しています';,500);
        }
        // ページ読み込み時にスピナーを表示
        window.onload = function() {
            const spinner = document.getElementById('spinner');

            // スピナーを回転
            spinner.style.display = 'block';
            //ロードメッセージ
            var msg = document.getElementById('msg'); msg.innerText = 'Googleアカウントのアドレスを取得しています・・・';
            setTimeout(function(){var msg = document.getElementById('msg'); msg.innerText = '5-4であるか確認しています・・・';},500);
            //結果表示&リダイレクト
            google.script.run.withSuccessHandler(function(status){if(status == 'ok'){showResult('✓', 'green');google.script.run.withFailureHandler().モニタリング();setTimeout(function() {window.location.href = '<?=url?>'}, 3000);}else{showResult('×', 'red')}}).withFailureHandler(function(err){var msg = document.getElementById('msg'); msg.innerText = '問題が発生しました　詳細:' + err; showResult('×', 'red')}).certification()
        };
    </script>&#10;</body>&#10;</html>&#10;