PHP Classes

File: src/Cabin/Bridge/public/board.js

Recommend this page to a friend!
  Classes of Scott Arciszewski   CMS Airship   src/Cabin/Bridge/public/board.js   Download  
File: src/Cabin/Bridge/public/board.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CMS Airship
Content management system with security features
Author: By
Last change:
Date: 7 years ago
Size: 868 bytes
 

Contents

Class file image Download
$(document).ready(function() { $("#optional_field_wrapper").hide(0); $("#show_hide_optional").on('change', function() { $("#optional_field_wrapper").toggle(300); }); $("#username").change(function() { var API_ENDPOINT = window.location.pathname + "/checkUsername"; $.post( API_ENDPOINT, { "username": $("#username").val() }, function(r) { if (r.status !== "success") { alert("Request failed!"); } else if (!r.result.available) { alert(r.message); } } ); }); $("#password").change(function() { var zx = zxcvbn($("#password").val()); console.log(JSON.stringify(zx)); passwordWarning(zx.feedback.warning, zx.score); }); });