UNPKG

total5

Version:
49 lines (44 loc) 1.88 kB
<!DOCTYPE html> <html> <head> <title>@{model.status}</title> <meta charset="utf-8" /> <meta name="format-detection" content="telephone=no" /> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /> <meta name="robots" content="all,follow" /> <style type="text/css"> /*auto*/ html,body { height: 100%; width: 100%; overflow: hidden; font-family: Arial; font-smoothing:antialiased; background-color: white; margin: 0; padding: 0; color: black; } .table { display: table; width: 100%; height: 100%; table-layout: fixed; } .body { padding: 20px; } .cell { display: table-cell; vertical-align: middle; text-align: center; width: 100%; height: 100%; font-size: 30px; } .cell b { font-size: 60px; background-color: #000; border-bottom: 5px solid #D0D0D0; color: #FFF; position: relative; display: inline-block; padding: 10px 15px; border-radius: 10px; margin-bottom: 20px; animation: anim 0.5s forwards 2s; } .error { font-size: 11px; color: gray; width: 90%; max-width: 800px; margin: 20px auto; background-color: #F0F0F0; padding: 10px; border-radius: 2px; text-align: left; font-family: monospace; overflow: auto; } #url { font-size: 12px; color: gray; margin: 5px 0; } @keyframes anim { 0% { transform: rotate(0deg); } 50% { transform: rotate(-3deg) scale(1.3); } 100% { transform: rotate(5deg) scale(1); } } @media(max-width: 768px) { .cell b { margin-bottom: 10px; } .cell { font-size: 25px; } } </style> </head> <body> <div class="table"> <div class="cell"> <div class="body"> <b>@{model.code}</b> <div class="status">@{model.status}</div> <div id="url"></div> @{if model.error}<div class="error">@{model.error.replace(/\n/g, '<br>')}</div>@{fi} </div> </div> </div> <script> document.getElementById('url').innerHTML = location.href; </script> </body> </html>