File size: 1,785 Bytes
0e94cb8
1bdf07e
0e94cb8
 
 
 
 
 
 
 
 
 
 
 
1bdf07e
0e94cb8
1bdf07e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
35
36
37
38
39
40
41

document.addEventListener('DOMContentLoaded', function() {
    // Handle social media account generation
    const generateBtn = document.querySelector('.bg-blue-500');
    if (generateBtn) {
        generateBtn.addEventListener('click', function() {
            const platform = document.querySelector('select').value;
            const count = document.querySelector('input[type="number"]').value;
            const usernamePattern = document.querySelector('input[type="text"]').value;
            
            alert(`Generating ${count} ${platform} accounts with pattern: ${usernamePattern}\n\nThis is a demo - actual account creation would require backend integration.`);
        });
    }

    // Handle question submission
const questionInput = document.querySelector('input[type="text"]');
    const submitButton = document.querySelector('button');
    
    submitButton.addEventListener('click', function() {
        if (questionInput.value.trim() !== '') {
            alert(`The wizard ponders your question: "${questionInput.value}"\n\n✨ The answer will reveal itself in time... ✨`);
            questionInput.value = '';
        }
    });
    
    questionInput.addEventListener('keypress', function(e) {
        if (e.key === 'Enter' && questionInput.value.trim() !== '') {
            alert(`The wizard ponders your question: "${questionInput.value}"\n\n✨ The answer will reveal itself in time... ✨`);
            questionInput.value = '';
        }
    });
    
    // Add hover effect to question items
    const questionItems = document.querySelectorAll('li');
    questionItems.forEach(item => {
        item.addEventListener('click', function() {
            questionInput.value = this.textContent;
            questionInput.focus();
        });
    });
});