DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (c43b0a75e166)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
<!DOCTYPE html>
<html>
  <head>
    <title>Login page</title>
<style>
    #login {display:none;}
</style>
  </head>
  <body>
    <h1 id="welcome">Testing verified email.</h1>
    <p id="output">Output: </p>
    <script type="text/javascript" src="http://localhost/s/wrapper.js"></script>
    <button id="login" >Login with your Firefox ID</button>
    <script type="text/javascript">
      console.log("Loaded wrapper page.");

      function callback(m) {
        var txt = document.createTextNode(JSON.stringify(m));
        document.getElementById('welcome').innerHTML = "Welcome " + m.result.email;
        var out = document.getElementById("output");
        out.appendChild(txt);
      }
      function login(e) {
        document.getElementById('output').innerHTML='';
        navigator.id.getVerifiedEmail(callback);
      }
     var lg = document.getElementById('login');
     lg.addEventListener("click",login,false);
     lg.style.display='inline';
     //navigator.id.getVerifiedEmail(callback);
    </script>
  </body>
</html>