Login with patternlock

Responder
Otto
Mensajes: 50
Registered for: 3 years 5 months
Austria

Login with patternlock

Mensaje por Otto »

Hello friends,
Sometimes you have to go analog. A flow chart on paper can help.
Best regards,
Otto

https://github.com/steffest/PatternLock


Imagen

Imagen

Imagen

ramirezosvaldo
Mensajes: 127
Registered for: 3 years 5 months
Mexico

Mensaje por ramirezosvaldo »

Dear Otto,

Good, What is the Plugin ? and how to implement it ?

Regards
Osvaldo Ramirez

Otto
Mensajes: 50
Registered for: 3 years 5 months
Austria

Mensaje por Otto »

Osvaldo, it is the GITHUB link I put above. There are samples included.

Best regards,
Otto

Código: Seleccionar todo

function main

TEMPLATE

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=320, user-scalable=no, initial-scale=1.0, maximum-scale=1.0" />
    <title>Pattern Lock</title>
    
    <link rel="stylesheet" type="text/css" href="_style/patternlock.css"/>
    <script src="_script/patternlock.js"></script>
    
    <script>
        function submitform(){
            alert("PW you entered " + document.getElementById("password").value); 
            
            if (document.getElementById("password").value=="123") {
                 window.open( "http://www.google.com", '_blank').focus();
            } else {
                alert("Error, intente de nuevo");
            }
            return true;
        }
    </script>
    
    <style>
        body{
            text-align:center;
            font-family:Arial, Helvetica, sans-serif;
        }
    </style>
    
</head>

<body>
    <form method="post" onsubmit="return submitform()">
        <h2>Please login</h2>
        
        <div>
            <input type="password" id="password" name="password" class="patternlock" />
            <input type="submit" value="login"/>
        </div>
    </form>
    
</body>
</html>


ENDTEXT

return 

//----------------------------------------------------------------------------//

ramirezosvaldo
Mensajes: 127
Registered for: 3 years 5 months
Mexico

Mensaje por ramirezosvaldo »

Gracias Otto

Regards
Osvaldo Ramirez

Responder