<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Checking Your Browser</title>
        <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans" />
        <style>
            html{height:100%}body{height:100%;margin:0;font-family:'Open Sans',sans-serif}.wrap{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;height:100%;padding:0 100px;text-align:center}.pulse-dots{display:flex}.dot{position:relative;display:block;visibility:hidden;border:#0c73ef solid 20px;border-radius:100%;animation:dots 1.2s infinite ease-in-out}.dot+.dot{margin-left:30px}.pulse-dots .dot:nth-child(2){animation-delay:150ms}.pulse-dots .dot:nth-child(3){animation-delay:.3s}@keyframes dots{0%{visibility:visible;transform:scale(0)}50%{transform:scale(1)}100%{visibility:hidden;transform:scale(0)}}.heading{margin-top:40px;margin-bottom:60px;font-weight:400;font-size:32px;color:#121212}.description{margin:0;font-size:22px;color:#666;line-height:1}.description+.description{margin-top:20px}[data-count]::before{display:inline-block;content:attr(data-count)}.link{color:#0c73ef;text-decoration:none}.info{margin-top:60px;font-size:14px;color:#aaa}@media screen and (max-width:1024px){.heading{margin-top:90px;margin-bottom:40px;font-size:48px}.description{font-size:28px;line-height:1.8}.description+.description{margin-top:0}.info{position:absolute;bottom:80px;font-size:24px}}@media screen and (max-width:600px){.wrap{padding:0 60px}.heading{margin-top:80px;margin-bottom:30px;font-size:42px}.description{font-size:24px;line-height:1.6}.info{bottom:60px;font-size:20px}}@media screen and (max-width:414px){.wrap{padding:0 40px}.dot{border-width:14px}.heading{margin-top:30px;margin-bottom:20px;font-size:30px}.description{font-size:18px}.info{bottom:40px;font-size:16px}}@media screen and (max-width:360px){.wrap{padding:0 20px}.dot{border-width:12px}.heading{font-size:26px}.description{font-size:16px}.info{font-size:14px}}
        </style>
    </head>
    <body>
        <main role="main">
            <div class="wrap">
                <div class="pulse-dots">
                    <div class="dot"></div>
                    <div class="dot"></div>
                    <div class="dot"></div>
                </div>
                <h1 class="heading">Checking Your Browser</h1>
                <p class="description">This check is done automatically.</p>
                <p class="description">Once finished, you will be redirected to <a id="webserver-link" href="" class="link"></a> in <span id="count" data-count="5"></span> seconds.</p>
                <div class="info">DDoS protection powered by Cloudbric</div>
            </div>
        </main>
        <script>
			document.addEventListener('DOMContentLoaded', function(){
			    var url = location.hostname,
					redirect_link = document.getElementById('webserver-link');
					
				redirect_link.innerHTML = url;
				redirect_link.href = 'https://' + url;
			});
			
            window.addEventListener('load', function(){
                var countNode = document.getElementById('count');

                function countdown(count) {
                    var trigger = setInterval(function(){
                        countNode.setAttribute('data-count', count);

                        --count || setTimeout(function(){
                            clearInterval(trigger);
							
                            location.reload(true);
                        }, 1000);
                    }, 1000);
                }

                countdown(5);
            });
        </script>
    </body>
</html>