Fix templating errors, js errors
This commit is contained in:
parent
92c8eef214
commit
8d42d46d74
8 changed files with 93 additions and 52 deletions
19
sqrl/static/sqrl/dropin.css
Normal file
19
sqrl/static/sqrl/dropin.css
Normal file
|
@ -0,0 +1,19 @@
|
|||
.sqrl-parent {
|
||||
padding: 15px;
|
||||
background-color: #fff;
|
||||
text-align: center;
|
||||
max-width: 300px;
|
||||
border-radius: 5%;
|
||||
}
|
||||
#sqrl-qr img {
|
||||
margin: auto;
|
||||
width: 100%;
|
||||
padding-top: 3px;
|
||||
}
|
||||
.sqrl-wrap a {
|
||||
font-size: 50%;
|
||||
}
|
||||
|
||||
.sqrl-form input {
|
||||
margin: auto;
|
||||
}
|
|
@ -2,8 +2,10 @@
|
|||
var get_next_url = function() {
|
||||
// A Next defined in the URL has priority
|
||||
var urlparam = document.URL.match(/next=([^&#]+)/)
|
||||
if (urlparam.length == 2) {
|
||||
return urlparam[1]
|
||||
if (urlparam) {
|
||||
if (urlparam.length == 2) {
|
||||
return urlparam[1]
|
||||
}
|
||||
}
|
||||
// Next highest priority is a defined SQRL_NEXT
|
||||
if (typeof SQRL_NEXT !== "undefined") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue