Search
Quick Commands
run:diagnostics Run all system checks
db:connect Connect to primary DB
cache:clear Clear application cache
users:list Show all active users
Notifications

Stay on top of recent system events and updates.

  • Notification avatar
    System Update Available

    Version 2.4.1 is ready to install with new features.

    2 minutes ago

  • AB
    New User Registration

    Alex Brown from Canada has joined the platform.

    15 minutes ago

  • Notification avatar
    Backup Completed

    Daily backup has been successfully completed.

    1 hour ago

  • Notification avatar
    Security Alert

    Unusual login activity detected from new location.

    3 hours ago

  • Notification avatar
    Monthly Report Ready

    Your analytics report for September is now available.

    Yesterday

  • MJ
    Server Maintenance

    Scheduled maintenance will begin at 2:00 AM EST.

    2 days ago

Input Masking

Vanilla JavaScript input masking using Cleave.js

Advanced Masking Examples

More complex input formatting examples

Real-time Validation

Input masking with validation feedback

Password must be at least 8 characters long

📋 Source Code Examples

HTML markup and JavaScript for input masking

Phone Number Masking

US phone number with Cleave.js:

<!-- HTML -->
<input type="text" class="form-control" id="phone-mask" 
       placeholder="(555) 123-4567">

<!-- JavaScript -->
<script>
new Cleave('#phone-mask', {
    blocks: [0, 3, 3, 4],
    delimiters: ['(', ') ', '-'],
    numericOnly: true
});
</script>
Credit Card Masking

Credit card input with automatic type detection:

new Cleave('#credit-card-mask', {
    creditCard: true,
    onCreditCardTypeChanged: function(type) {
        // Credit card type detected
    }
});
Date Masking

Date input with MM/DD/YYYY format:

new Cleave('#date-mask', {
    date: true,
    datePattern: ['m', 'd', 'Y']
});
Currency Masking

Currency input with USD formatting:

new Cleave('#currency-mask', {
    numeral: true,
    numeralThousandsGroupStyle: 'thousand',
    numeralDecimalMark: '.',
    numeralIntegerScale: 10,
    numeralDecimalScale: 2,
    prefix: '$'
});
Custom Format Masking

Custom alphanumeric format (e.g., XXX-XXX-XXXX):

new Cleave('#custom-mask', {
    blocks: [3, 3, 4],
    uppercase: true,
    delimiter: '-'
});
Real-time Validation

Email validation with JavaScript:

const emailInput = document.getElementById('email-input');
const emailFeedback = document.getElementById('email-feedback');

emailInput.addEventListener('input', function() {
    const email = this.value;
    const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
    
    if (email && !emailRegex.test(email)) {
        this.classList.add('is-invalid');
        emailFeedback.textContent = 'Please enter a valid email';
    } else {
        this.classList.remove('is-invalid');
    }
});