Cheating Calculator in Pakistan

Cheating Calculator in Pakistan

Never Sometimes Always
Low Moderate High

Your Cheating Score is: 0

document.getElementById(‘cheatingCalculatorForm’).addEventListener(‘submit’, function(event) { event.preventDefault(); const cheatScore = parseInt(document.getElementById(‘cheatScore’).value); const cheatFrequency = document.getElementById(‘cheatFrequency’).value; const cheatImpact = document.getElementById(‘cheatImpact’).value; let score = cheatScore; if (cheatFrequency === ‘sometimes’) { score += 2; } else if (cheatFrequency === ‘always’) { score += 5; } if (cheatImpact === ‘moderate’) { score += 3; } else if (cheatImpact === ‘high’) { score += 5; } document.getElementById(‘cheatingScoreResult’).textContent = score; }); .calculator-container { max-width: 500px; margin: 0 auto; padding: 20px; background-color: #f9f9f9; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); font-family: Arial, sans-serif; } .form-group { margin-bottom: 20px; } .form-group label { font-size: 16px; font-weight: bold; margin-bottom: 5px; display: block; } .form-group input, .form-group select { width: 100%; padding: 10px; font-size: 16px; border: 1px solid #ccc; border-radius: 5px; } .form-group button { width: 100%; padding: 10px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; font-size: 16px; cursor: pointer; } .form-group button:hover { background-color: #45a049; } .result { margin-top: 20px; font-size: 18px; font-weight: bold; text-align: center; }

Leave a Reply

Your email address will not be published. Required fields are marked *