cryptosphere/cryptosphere

View on GitHub
webui/js/password.js

Summary

Maintainability
A
0 mins
Test Coverage
"use strict";

function openSesame() {
  $("#door-l").css("transform", "translateX(-150%)");
  $("#door-r").css("transform", "translateX(150%)");
}

$("#passbutton").click(openSesame);

$('#passfield').on('keydown', function(e) {
  if (e.which == 13) {
    openSesame();
  }
});