2-step-verification-code.html 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <!doctype html>
  2. <!--
  3. * Tabler - Premium and Open Source dashboard template with responsive and high quality UI.
  4. * @version 1.0.0-beta19
  5. * @link https://tabler.io
  6. * Copyright 2018-2023 The Tabler Authors
  7. * Copyright 2018-2023 codecalm.net Paweł Kuna
  8. * Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
  9. -->
  10. <html lang="en">
  11. <head>
  12. <meta charset="utf-8"/>
  13. <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/>
  14. <meta http-equiv="X-UA-Compatible" content="ie=edge"/>
  15. <title>2-Step Verification - Tabler - Premium and Open Source dashboard template with responsive and high quality UI.</title>
  16. <script defer data-api="/stats/api/event" data-domain="preview.tabler.io" src="/stats/js/script.js"></script>
  17. <meta name="msapplication-TileColor" content=""/>
  18. <meta name="theme-color" content=""/>
  19. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
  20. <meta name="apple-mobile-web-app-capable" content="yes"/>
  21. <meta name="mobile-web-app-capable" content="yes"/>
  22. <meta name="HandheldFriendly" content="True"/>
  23. <meta name="MobileOptimized" content="320"/>
  24. <link rel="icon" href="./favicon.ico" type="image/x-icon"/>
  25. <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon"/>
  26. <meta name="description" content="Tabler comes with tons of well-designed components and features. Start your adventure with Tabler and make your dashboard great again. For free!"/>
  27. <meta name="canonical" content="https://preview.tabler.io/2-step-verification-code.html">
  28. <meta name="twitter:image:src" content="https://preview.tabler.io/static/og.png">
  29. <meta name="twitter:site" content="@tabler_ui">
  30. <meta name="twitter:card" content="summary">
  31. <meta name="twitter:title" content="Tabler: Premium and Open Source dashboard template with responsive and high quality UI.">
  32. <meta name="twitter:description" content="Tabler comes with tons of well-designed components and features. Start your adventure with Tabler and make your dashboard great again. For free!">
  33. <meta property="og:image" content="https://preview.tabler.io/static/og.png">
  34. <meta property="og:image:width" content="1280">
  35. <meta property="og:image:height" content="640">
  36. <meta property="og:site_name" content="Tabler">
  37. <meta property="og:type" content="object">
  38. <meta property="og:title" content="Tabler: Premium and Open Source dashboard template with responsive and high quality UI.">
  39. <meta property="og:url" content="https://preview.tabler.io/static/og.png">
  40. <meta property="og:description" content="Tabler comes with tons of well-designed components and features. Start your adventure with Tabler and make your dashboard great again. For free!">
  41. <!-- CSS files -->
  42. <link href="./dist/css/tabler.min.css?1685973381" rel="stylesheet"/>
  43. <link href="./dist/css/tabler-flags.min.css?1685973381" rel="stylesheet"/>
  44. <link href="./dist/css/tabler-payments.min.css?1685973381" rel="stylesheet"/>
  45. <link href="./dist/css/tabler-vendors.min.css?1685973381" rel="stylesheet"/>
  46. <link href="./dist/css/demo.min.css?1685973381" rel="stylesheet"/>
  47. <style>
  48. @import url('https://rsms.me/inter/inter.css');
  49. :root {
  50. --tblr-font-sans-serif: 'Inter Var', -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif;
  51. }
  52. body {
  53. font-feature-settings: "cv03", "cv04", "cv11";
  54. }
  55. </style>
  56. </head>
  57. <body class=" d-flex flex-column">
  58. <script src="./dist/js/demo-theme.min.js?1685973381"></script>
  59. <div class="page page-center">
  60. <div class="container container-tight py-4">
  61. <div class="text-center mb-4">
  62. <a href="." class="navbar-brand navbar-brand-autodark">
  63. <img src="./static/logo.svg" width="110" height="32" alt="Tabler" class="navbar-brand-image">
  64. </a>
  65. </div>
  66. <form
  67. class="card card-md"
  68. action="./"
  69. method="get"
  70. autocomplete="off"
  71. novalidate
  72. >
  73. <div class="card-body">
  74. <h2 class="card-title card-title-lg text-center mb-4">Authenticate Your Account</h2>
  75. <p class="my-4 text-center">Please confirm your account by entering the authorization code sent to <strong>+1 856-672-8552</strong>.</p>
  76. <div class="my-5">
  77. <div class="row g-4">
  78. <div class="col">
  79. <div class="row g-2">
  80. <div class="col">
  81. <input type="text" class="form-control form-control-lg text-center py-3" maxlength="1" inputmode="numeric" pattern="[0-9]*" data-code-input />
  82. </div>
  83. <div class="col">
  84. <input type="text" class="form-control form-control-lg text-center py-3" maxlength="1" inputmode="numeric" pattern="[0-9]*" data-code-input />
  85. </div>
  86. <div class="col">
  87. <input type="text" class="form-control form-control-lg text-center py-3" maxlength="1" inputmode="numeric" pattern="[0-9]*" data-code-input />
  88. </div>
  89. </div>
  90. </div>
  91. <div class="col">
  92. <div class="row g-2">
  93. <div class="col">
  94. <input type="text" class="form-control form-control-lg text-center py-3" maxlength="1" inputmode="numeric" pattern="[0-9]*" data-code-input />
  95. </div>
  96. <div class="col">
  97. <input type="text" class="form-control form-control-lg text-center py-3" maxlength="1" inputmode="numeric" pattern="[0-9]*" data-code-input />
  98. </div>
  99. <div class="col">
  100. <input type="text" class="form-control form-control-lg text-center py-3" maxlength="1" inputmode="numeric" pattern="[0-9]*" data-code-input />
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. <div class="my-4">
  107. <label class="form-check">
  108. <input type="checkbox" class="form-check-input" />
  109. Dont't ask for codes again on this device
  110. </label>
  111. </div>
  112. <div class="form-footer">
  113. <div class="btn-list flex-nowrap">
  114. <a href="./2-step-verification.html" class="btn w-100">
  115. Cancel
  116. </a>
  117. <a href="#" class="btn btn-primary w-100">
  118. Verify
  119. </a>
  120. </div>
  121. </div>
  122. </div>
  123. </form>
  124. <div class="text-center text-secondary mt-3">
  125. It may take a minute to receive your code. Haven't received it? <a href="./">Resend a new code.</a>
  126. </div>
  127. </div>
  128. </div>
  129. <!-- Libs JS -->
  130. <!-- Tabler Core -->
  131. <script src="./dist/js/tabler.min.js?1685973381" defer></script>
  132. <script src="./dist/js/demo.min.js?1685973381" defer></script>
  133. <script>
  134. document.addEventListener("DOMContentLoaded", function() {
  135. var inputs = document.querySelectorAll('[data-code-input]');
  136. // Attach an event listener to each input element
  137. for(let i = 0; i < inputs.length; i++) {
  138. inputs[i].addEventListener('input', function(e) {
  139. // If the input field has a character, and there is a next input field, focus it
  140. if(e.target.value.length === e.target.maxLength && i + 1 < inputs.length) {
  141. inputs[i + 1].focus();
  142. }
  143. });
  144. inputs[i].addEventListener('keydown', function(e) {
  145. // If the input field is empty and the keyCode for Backspace (8) is detected, and there is a previous input field, focus it
  146. if(e.target.value.length === 0 && e.keyCode === 8 && i > 0) {
  147. inputs[i - 1].focus();
  148. }
  149. });
  150. }
  151. });
  152. </script>
  153. </body>
  154. </html>