saddas

Azam4eg

Администратор
Forum jamoasi
Администратор
Xabarlar
135
Reaktsiyalar
0
<style>
body { font-family: Arial, sans-serif; max-width: 600px; margin: 20px auto; padding: 0 10px; }
h1, h2 { text-align: center; }
.question { margin-bottom: 15px; }
.question p { margin: 0 0 5px; font-weight: bold; }
.options label { margin-right: 10px; }
button { display: block; margin: 20px auto; padding: 10px 20px; }
#result { margin-top: 20px; padding: 15px; border: 1px solid #ccc; border-radius: 5px; background: #f9f9f9; }
</style>
</head>
<body>
<h1>O‘z psixologik yoshingizni aniqlang</h1>
<form id="ageTest">
<!-- Questions -->
<div class="question" id="q1">
<p>1. Do‘stlaringiz bilan o‘yinlar, quvnoq mashg‘ulotlar sizni ko‘proq quvontiradimi?</p>
<div class="options">
<label><input type="radio" name="q1" value="2"> Ha</label>
<label><input type="radio" name="q1" value="1"> Ba’zan</label>
<label><input type="radio" name="q1" value="0"> Yo‘q</label>
</div>
</div>
<!-- Repeat similarly for q2 to q10 -->
<div class="question" id="q2">
<p>2. Yangi va noodatiy tajribalarni sinab ko‘rishga tayyormisiz?</p>
<div class="options">
<label><input type="radio" name="q2" value="2"> Ha</label>
<label><input type="radio" name="q2" value="1"> Ba’zan</label>
<label><input type="radio" name="q2" value="0"> Yo‘q</label>
</div>
</div>
<div class="question" id="q3">
<p>3. Rejalashtirish va tartibga rioya qilish siz uchun muhimmi?</p>
<div class="options">
<label><input type="radio" name="q3" value="2"> Ha</label>
<label><input type="radio" name="q3" value="1"> Ba’zan</label>
<label><input type="radio" name="q3" value="0"> Yo‘q</label>
</div>
</div>
<div class="question" id="q4">
<p>4. Qattiq stress yoki muammoga duch kelganda, tezda moslashib ketishingiz osonmi?</p>
<div class="options">
<label><input type="radio" name="q4" value="2"> Ha</label>
<label><input type="radio" name="q4" value="1"> Ba’zan</label>
<label><input type="radio" name="q4" value="0"> Yo‘q</label>
</div>
</div>
<div class="question" id="q5">
<p>5. Kechagi voqealarga o‘tkir nostalji bilan boqib, hissiyotlarga to‘lasizmi?</p>
<div class="options">
<label><input type="radio" name="q5" value="2"> Ha</label>
<label><input type="radio" name="q5" value="1"> Ba’zan</label>
<label><input type="radio" name="q5" value="0"> Yo‘q</label>
</div>
</div>
<div class="question" id="q6">
<p>6. Yangiliklardan va texnologiyalardan ortda qolishdan qo‘rqasizmi?</p>
<div class="options">
<label><input type="radio" name="q6" value="2"> Ha</label>
<label><input type="radio" name="q6" value="1"> Ba’zan</label>
<label><input type="radio" name="q6" value="0"> Yo‘q</label>
</div>
</div>
<div class="question" id="q7">
<p>7. Oilaviy an’ana va qadriyatlarni hurmat qilasizmi?</p>
<div class="options">
<label><input type="radio" name="q7" value="2"> Ha</label>
<label><input type="radio" name="q7" value="1"> Ba’zan</label>
<label><input type="radio" name="q7" value="0"> Yo‘q</label>
</div>
</div>
<div class="question" id="q8">
<p>8. Hayot ma’nosi va ruhiy taraqqiyot haqida chuqur o‘ylaysizmi?</p>
<div class="options">
<label><input type="radio" name="q8" value="2"> Ha</label>
<label><input type="radio" name="q8" value="1"> Ba’zan</label>
<label><input type="radio" name="q8" value="0"> Yo‘q</label>
</div>
</div>
<div class="question" id="q9">
<p>9. Muammolarni mantiqiy tahlil qilib, xotirjam hal qila olasizmi?</p>
<div class="options">
<label><input type="radio" name="q9" value="2"> Ha</label>
<label><input type="radio" name="q9" value="1"> Ba’zan</label>
<label><input type="radio" name="q9" value="0"> Yo‘q</label>
</div>
</div>
<div class="question" id="q10">
<p>10. O‘z xatolaringizdan tez-da saboq olib, ulardan qo‘rqmasdan o‘rgana olasizmi?</p>
<div class="options">
<label><input type="radio" name="q10" value="2"> Ha</label>
<label><input type="radio" name="q10" value="1"> Ba’zan</label>
<label><input type="radio" name="q10" value="0"> Yo‘q</label>
</div>
</div>

<button type="submit">Natijani ko‘rsatish</button>
</form>

<div id="result" style="display:none;"></div>

<script>
document.getElementById('ageTest').addEventListener('submit', function(e) {
e.preventDefault();
let total = 0;
for (let i = 1; i <= 10; i++) {
const val = document.querySelector('input[name="q' + i + '"]:checked');
if (val) total += parseInt(val.value);
}
const resultDiv = document.getElementById('result');
let message = '';
if (total <= 5) message = '<strong>Psixologik yoshingiz: bolaning dunyosi (4–12 yosh)</strong>. Hayotga ochiq va sarguzashtga to‘la qaraysiz.';
else if (total <= 10) message = '<strong>Psixologik yoshingiz: o‘smirlik davri (13–17 yosh)</strong>. His-tuyg‘ular kuchli, mustaqillikni izlaysiz.';
else if (total <= 15) message = '<strong>Psixologik yoshingiz: voyaga yetganlik davri (18–30 yosh)</strong>. Mas’uliyatni o‘z zimmangizga olasiz, balansni izlaysiz.';
else message = '<strong>Psixologik yoshingiz: yetuklik va donolik (31+ yosh)</strong>. Hayot tajribangizga tayangan holda xotirjam va bardoshli bo‘lasiz.';
resultDiv.innerHTML = '<p>Sizning ballaringiz: <strong>' + total + '</strong></p>' + message;
resultDiv.style.display = 'block';
});
</script>
 
Ushbu saytda joylangan barcha maqolalar faqat tanishtirish maqsadida taqdim etilgan. Ular davolanishning o‘rnini bosa olmaydi va hech qanday davolash tavsiyalarini o‘z ichiga olmaydi. Sog‘lig‘ingiz bilan bog‘liq har qanday muammolar yuzaga kelganda, albatta, shifokoringizga murojaat qilishingiz kerak.
Orqaga qaytish
Yuqorida