9th Class Computer Science Urdu Medium Chapter 5 MCQ Test With Answer

MCQ's Test For Chapter 5 "Computer Science 9th Class Urdu Medium Chapter 5 Online Test"

Try The MCQ's Test For Chapter 5 "Computer Science 9th Class Urdu Medium Chapter 5 Online Test"

  • Total Questions10

  • Time Allowed15

Computer Science 9th Class Urdu Medium Chapter 5 Online Test

00:00
Question # 1

ہیڈنگز کس ٹیگز سے ڈیفائن کی جاتی ہے.

Question # 2

کون سی لینگویج ویب پیج بنانے کے لیے استعمال ہوتی ہے.

Question # 3

کے بنیادی سکشنز ہیں.HTML

Question # 4

کون سا ایک ائی کون یا ایک تصویر یا ٹیکسٹ ہوسکتا ہے. جس پر اگر کلک کیا جائے تو یہ آپ کو کسی دوسرے پین پر لے جائے.

Question # 5

کو ڈاکومنٹ میں ....... قسم کی ہیڈنگ ہوسکتی ہے. HTML

Question # 6

ایک لسٹ جو کہ اپنے اندر ایک اور لسٹ رکھ سکتی ہے کہلاتی ہے.

Question # 7

...........براؤزر کو بتاتا ہے کہ ویب پیچ پر اجزاء کو منظم کرنا ہے.

Question # 8

ایک ہی پیج کے ایک حصے سے دوسرے حصے میں جانے کے لیے.

Question # 9

ڈاکومنٹ میں ٹیکسٹ کی اقسام ہے.HTML

Question # 10

ایک سیل کو ای سے زائد سیلز پر پھیلانے کے لیے ہم ٹیبل کے ایڑی بیوٹ ..... کااسعتمال کرتے ہیں.

Prepare Complete Set Wise Chapter 5 "Computer Science 9th Class Urdu Medium Chapter 5 Online Test" MCQs Online With Answers


Top Scorers Of Chapter 5 "Computer Science 9th Class Urdu Medium Chapter 5 Online Test" MCQ`s Test

  • M
    Malikabdullah Malikabdullah 16 - Aug - 2024 00 Min 11 Sec 10/10
  • I
    Iqra Is,haq 18 - Feb - 2018 00 Min 52 Sec 10/10
  • S
    Shoaib Akhter 23 - Jan - 2019 01 Min 36 Sec 10/10
  • G
    GGHS JABOKA 16 - Feb - 2023 01 Min 57 Sec 10/10
  • N
    Noor us Saba Shaikh 01 - Jul - 2021 04 Min 31 Sec 10/10
  • E
    Educational Orion 21 - Mar - 2024 00 Min 20 Sec 9/10
  • S
    Saira Cooking max 29 - May - 2022 00 Min 44 Sec 9/10
  • H
    Hafiz Muhammad Shoaib Arshad 03 - Dec - 2024 02 Min 03 Sec 9/10
  • S
    sadia 15 - Mar - 2019 03 Min 43 Sec 9/10
  • R
    Rashid Butt 21 - Mar - 2024 02 Min 52 Sec 8/10
  • A
    Ali raza Ali raza 03 - Apr - 2022 10 Min 50 Sec 8/10
  • H
    hamza abid 27 - Feb - 2022 10 Min 50 Sec 8/10
  • A
    ayesha 04 - Feb - 2019 13 Min 14 Sec 8/10
  • C
    chand 22 - Feb - 2018 01 Min 30 Sec 7/10
  • C
    Channa Rabia 16 - Dec - 2021 02 Min 05 Sec 7/10
D. کوئی نہیں.
Sr.# Question Answer
1 ایک ہی پیج کے ایک حصے سے دوسرے حصے میں جانے کے لیے.
A. ٹیکسٹ
B. اینکر
C. بولڈ
D. ترچھا
2 ان میں سے کونساٹیگ پراگراف بنانے کے لیے استعمال ہوتا ہے.
A.
B.

C.
3 ڈاکومنٹ میں ٹیکسٹ کی اقسام ہے.HTML
A. 1
B. 2
C. 3
D. 4
4 کے بنیادی سکشنز ہیں.HTML
A. ہیڈ
B. باڈی
C. الف اور ب دونوں
D. ان میں سے کوئی نہیں.
5 اپنے اندر میٹا ڈیٹا رکھتا ہے.
A. < head>
B.
C. </div> <div class="" style="display: flex; align-items: center; gap: 5px;"> D. َ<HTML> </div> </td> </tr> <tr> <td><span>6</span></td> <td> <span>..... ایک طریقہ وضع کرتا ہے جس کو استعمال کرتے ہوئے پیج کی بناوٹ ڈیزائن کرتے ہیں اور دوسرے عناصر لگائے جاتے ہیں.</span> </td> <td> <div class="" style="display: flex; align-items: center; gap: 5px;"> A. مارک اپ </div> <div class="correct-ans" style="display: flex; align-items: center; gap: 5px;"> B. مارک اپ لینگوئج </div> <div class="" style="display: flex; align-items: center; gap: 5px;"> C. الف دور دونوں </div> <div class="" style="display: flex; align-items: center; gap: 5px;"> D. لینگوئج </div> </td> </tr> <tr> <td><span>7</span></td> <td> <span>اپنے ٹیگز اور ٹیکسٹ جو پیج پر ظاہر نہیں ہوتے ان کو ....... سیکشن میں لکھا جاتا ہے.</span> </td> <td> <div class="" style="display: flex; align-items: center; gap: 5px;"> A. <body> </div> <div class="correct-ans" style="display: flex; align-items: center; gap: 5px;"> B. < head> </div> <div class="" style="display: flex; align-items: center; gap: 5px;"> C. <title> </div> <div class="" style="display: flex; align-items: center; gap: 5px;"> D. <HTML> </div> </td> </tr> <tr> <td><span>8</span></td> <td> <span>ایک ویب پیج کے ٹیکسٹ کو اپنی مرضی کا رنگ دینے کے لیے ... ایڑی بیوٹ استعمال ہوتا ہے.</span> </td> <td> <div class="" style="display: flex; align-items: center; gap: 5px;"> A. نمبر </div> <div class="" style="display: flex; align-items: center; gap: 5px;"> B. کالم </div> <div class="" style="display: flex; align-items: center; gap: 5px;"> C. گول </div> <div class="correct-ans" style="display: flex; align-items: center; gap: 5px;"> D. ٹیکسٹ </div> </td> </tr> <tr> <td><span>9</span></td> <td> <span>ان آرڈر لسٹ میں ہر لسٹ سٹارٹ ہوتی ہے.</span> </td> <td> <div class="" style="display: flex; align-items: center; gap: 5px;"> A. نمبر </div> <div class="" style="display: flex; align-items: center; gap: 5px;"> B. کریکٹر </div> <div class="correct-ans" style="display: flex; align-items: center; gap: 5px;"> C. بلٹ </div> <div class="" style="display: flex; align-items: center; gap: 5px;"> D. کولن </div> </td> </tr> <tr> <td><span>10</span></td> <td> <span>ان میں سے کونسا ٹیگز کا کلوزنگ ٹیگ نہیں ہے.</span> </td> <td> <div class="" style="display: flex; align-items: center; gap: 5px;"> A. <ii> </div> <div class="" style="display: flex; align-items: center; gap: 5px;"> B. < > </div> <div class="correct-ans" style="display: flex; align-items: center; gap: 5px;"> C. <br> </div> <div class="" style="display: flex; align-items: center; gap: 5px;"> D. <th> </div> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <div class="new-ads-sec"> <div class="container"> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12"> <ul class="ss-ads" style="border: 0; padding-top: 0; margin: 0;"> <li> <a href="aHR0cDovL2N1dGx5LmluL1A0QzVWeQ==" class="banner-link decode-banner-url" target="_blank" aria-label="ads"><img src="https://cdn.ilmkidunya.com/images/Banners/Gif file Banner.gif" alt="" /></a> </li> <li> </li> <li> </li> <li> </li> </ul> </div> </div> </div> </div> </div> <div class="question-side" id="pol-answer-mode"> <div class="question-box"> <div class="top-box"> <h2 id="test-title">Test Questions</h2> <div class="close-btn"> <a href="javascript:void(0)" id="close-ans"> <img src="https://images.ishallwin.com/ot-images/red-cross.webp" alt="" /> </a> </div> </div> <div class="holder-question" id="quest-holder"> <!-- Questions will load here --> </div> <div class="last-box"> <a href="javascript:void(0)" class="prev prev-ans"><img src="https://images.ishallwin.com/ot-images/arrow-down.webp" alt="" /></a> <a href="javascript:void(0)" class="next next-ans"><img src="https://images.ishallwin.com/ot-images/arrow-down.webp" alt="" /></a> </div> </div> </div> <script> const closeBtn = document.getElementById("close-ans"); const targetBox = document.getElementById("pol-answer-mode"); const holder = document.getElementById("quest-holder"); function openAnsMode(apiUrl) { fetch(apiUrl) .then(res => res.json()) .then(data => { console.log("Fetched Questions:", data); holder.innerHTML = ""; const baseImgPath = "https://cdn.ilmkidunya.com/ots/mcqs/"; data.forEach((q, index) => { let correctIndex = q.correctAnswer - 1; let questionImgHtml = q.questionImage ? `<div class="q-img"><img src="${baseImgPath + q.questionImage}" alt="Question Image" /></div>` : ""; let choicesHtml = q.choices .filter(c => c.text || c.img) .map((c, i) => ` <li class="${i === correctIndex ? "correct" : ""}"> <label class="radio-container"> <span class="q-detiel"> ${c.text ? c.text : ""} ${c.img ? `<img src="${baseImgPath + c.img}" alt="Option ${c.value}" class="opt-img" />` : ""} </span> <input type="radio" disabled value="${c.value}" data-correct="${i === correctIndex}"> <span class="label">${c.value}</span> <span class="checkmark"></span> </label> </li> `).join(""); holder.innerHTML += ` <div class="mid-box1 ans-bx-visible"> <strong>Question # ${index + 1}</strong> <h3>${q.question}</h3> ${questionImgHtml} <ul>${choicesHtml}</ul> </div> `; }); setupNavigation(); targetBox.classList.add("visible"); }); } closeBtn.addEventListener("click", function (e) { e.preventDefault(); targetBox.classList.remove("visible"); }); document.addEventListener("click", function (event) { if ( targetBox.classList.contains("visible") && !targetBox.contains(event.target) && event.target !== closeBtn && !event.target.closest("[onclick*='openAnsMode']") ) { targetBox.classList.remove("visible"); } }); function setupNavigation() { let questions = document.querySelectorAll(".ans-bx-visible"); let currentIndex = 0; const prevBtn = document.querySelector(".prev-ans"); const nextBtn = document.querySelector(".next-ans"); function showQuestion(index) { questions.forEach((q, i) => { q.style.display = (i === index) ? "block" : "none"; }); prevBtn.classList.toggle("active", index > 0); nextBtn.classList.toggle("active", index < questions.length - 1); } showQuestion(currentIndex); nextBtn.onclick = function (e) { e.preventDefault(); if (currentIndex < questions.length - 1) { currentIndex++; showQuestion(currentIndex); } }; prevBtn.onclick = function (e) { e.preventDefault(); if (currentIndex > 0) { currentIndex--; showQuestion(currentIndex); } }; } </script> <script> let testAlreadyStarted = false; window.addEventListener('DOMContentLoaded', function () { document.getElementById('close').addEventListener('click', function (event) { closePoll(); event.preventDefault(); }); document.addEventListener('click', function (event) { var pol = document.getElementById('pol'); if (!pol.contains(event.target) && event.target !== document.getElementById('launch-test-btn')) { closePoll(); } }); }); function closePoll() { document.body.classList.remove('open-poll'); } function launchTest() { document.body.classList.add('open-poll'); if (!testAlreadyStarted && !isRunning) { startTime = Date.now(); // only first time startStop(); // start stopwatch testAlreadyStarted = true; // mark as started } } </script> <script> document.addEventListener("DOMContentLoaded", function () { let midBoxes = document.querySelectorAll(".mid-box"); let currentIndex = 0; function showBox(index) { midBoxes.forEach((box, i) => { box.style.display = i === index ? "block" : "none"; }); } showBox(currentIndex); document.querySelector(".next").addEventListener("click", function (e) { e.preventDefault(); if (currentIndex < midBoxes.length - 1) { currentIndex++; showBox(currentIndex); } }); document.querySelector(".prev").addEventListener("click", function (e) { e.preventDefault(); if (currentIndex > 0) { currentIndex--; showBox(currentIndex); } }); midBoxes.forEach((box, index) => { let radios = box.querySelectorAll('input[type="radio"]'); radios.forEach((radio, i) => { radio.name = `radio-${index}`; }); }); }); </script> <script> document.addEventListener("DOMContentLoaded", function () { let midBoxes = document.querySelectorAll(".mid-box"); let nextBtn = document.querySelector(".next"); let prevBtn = document.querySelector(".prev"); let currentIndex = 0; function showBox(index) { midBoxes.forEach((box, i) => { if (i === index) { box.style.display = "block"; setTimeout(() => { box.style.opacity = "1"; }, 200); } else { box.style.opacity = "0"; setTimeout(() => { box.style.display = "none"; }, 300); } }); prevBtn.classList.toggle("active", index > 0); nextBtn.classList.toggle("active", index < midBoxes.length - 1); } midBoxes.forEach(box => { box.style.transition = "opacity 0.3s ease-in-out"; box.style.opacity = "0"; }); showBox(currentIndex); nextBtn.addEventListener("click", function (e) { e.preventDefault(); if (currentIndex < midBoxes.length - 1) { currentIndex++; showBox(currentIndex); } }); prevBtn.addEventListener("click", function (e) { e.preventDefault(); if (currentIndex > 0) { currentIndex--; showBox(currentIndex); } }); }); </script> <script> document.addEventListener("DOMContentLoaded", function () { document.querySelector(".get-result").addEventListener("click", function (e) { e.preventDefault(); document.querySelector(".holder-question").style.display = "none"; document.querySelector(".last-box").style.display = "none"; this.style.display = "none"; document.querySelector(".ans-question").style.display = "block"; }); }); </script> <script> let timer; let isRunning = false; let elapsedTime = 0; let finalDuration = null; // ✅ Added — store once when fakeSubmit clicked function startStop() { if (isRunning) { clearInterval(timer); document.getElementById('startStopBtn').textContent = 'Start'; } else { const startTime = Date.now() - elapsedTime; timer = setInterval(() => { elapsedTime = Date.now() - startTime; const totalSeconds = Math.floor(elapsedTime / 1000); const minutes = String(Math.floor(totalSeconds / 60)).padStart(2, '0'); const seconds = String(totalSeconds % 60).padStart(2, '0'); document.getElementById('display').textContent = `${minutes}:${seconds}`; }, 1000); document.getElementById('startStopBtn').textContent = 'Stop'; } isRunning = !isRunning; } function reset() { clearInterval(timer); elapsedTime = 0; document.getElementById('display').textContent = '00:00'; document.getElementById('startStopBtn').textContent = 'Start'; isRunning = false; finalDuration = null; // ✅ Reset only on page refresh or manual reset } document.addEventListener("DOMContentLoaded", function () { document.getElementById('startStopBtn').onclick = startStop; document.getElementById('resetBtn').onclick = reset; }); function getDurationInSeconds() { return Math.floor(elapsedTime / 1000); } </script> <script> const testTitle = "Computer Science 9th Class Urdu Medium Chapter 5 Online Test"; const testUrl = "9th-computer-science-chapter-5-test-preparation"; const testId = 422; let isUserLoggedIn = false; let Marks = 10; let startTime; let autoStartAfterLogin = false; async function submitTest() { const durationInSeconds = finalDuration ?? getDurationInSeconds(); // ✅ use stored or current const questionBoxes = document.querySelectorAll(".mid-box"); let resultHTML = ""; let correctCount = 0; questionBoxes.forEach((box) => { const questionNumber = box.dataset.questionNumber; const questionText = box.querySelector("h3").innerHTML; const questionImageElem = box.querySelector(".question-image"); const questionImageHtml = questionImageElem ? questionImageElem.outerHTML : ""; const inputs = box.querySelectorAll("input[type='radio']"); const selected = box.querySelector("input[type='radio']:checked"); const selectedVal = selected ? selected.value : null; let correct = null; inputs.forEach(input => { if (input.dataset.correct === "true") correct = input.value; }); if (selectedVal === correct) correctCount++; let optionsHTML = ""; inputs.forEach(input => { const label = input.value; const optionLabelElem = input.closest("label"); const optionText = optionLabelElem.querySelector(".q-detiel").innerHTML; let liClass = ""; if (label === correct) liClass = "correct"; if (label === selectedVal && selectedVal !== correct) liClass = "wrong"; optionsHTML += ` <li class="${liClass}"> <label class="radio-container"> <span class="q-detiel">${optionText}</span> <input type="radio" disabled value="${label}" data-correct="${label === correct ? 'true' : 'false'}"> <span class="label">${label}</span> <span class="checkmark"></span> </label> </li>`; }); resultHTML += ` <div class="mid-box1"> <strong>Question # ${questionNumber}</strong> <h3>${questionText}</h3> ${questionImageHtml} <ul>${optionsHTML}</ul> </div>`; }); if (typeof timer !== "undefined") { clearInterval(timer); isRunning = false; } document.querySelector(".ans-box").innerHTML = resultHTML; document.querySelector(".holder-question").style.display = "none"; document.querySelector(".last-box").style.display = "none"; document.querySelector(".real-submit").style.display = "none"; document.querySelector(".fake-submit").style.display = "none"; document.querySelector(".ans-question").style.display = "block"; try { const response = await fetch('/online-test/save-result', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ TestId: testId, TestTitle: testTitle, TotalQuestions: questionBoxes.length, CorrectAnswers: correctCount, Duration: durationInSeconds, TestUrl: testUrl, TotalMarks: Marks }) }); if (!response.ok) { console.error("Error saving result:", response.statusText); return; } const data = await response.json(); if (data.success) { window.savedTestResultId = data.testResultId; console.log("Result saved successfully", data); } } catch (err) { console.error("Fetch error:", err); } } document.addEventListener("DOMContentLoaded", function () { if (!isUserLoggedIn) { document.querySelector(".real-submit").style.display = "none"; document.querySelector(".fake-submit").style.display = "inline-block"; } else { document.querySelector(".fake-submit").style.display = "none"; document.querySelector(".real-submit").style.display = "inline-block"; } }); document.querySelector(".fake-submit").addEventListener("click", function (e) { e.preventDefault(); // ✅ Capture duration only first time if (finalDuration === null) { finalDuration = getDurationInSeconds(); console.log("Captured duration at fake submit:", finalDuration, "seconds"); } autoStartAfterLogin = true; if (typeof timer !== "undefined") { clearInterval(timer); isRunning = false; } showLoginPopup(); }); document.querySelector(".real-submit").addEventListener("click", function (e) { e.preventDefault(); submitTest(); }); window.addEventListener("message", function (event) { if (event.data && event.data.success) { console.log("Login success:", event.data.user); isUserLoggedIn = true; document.querySelector(".fake-submit").style.display = "none"; document.querySelector(".real-submit").style.display = "inline-block"; if (autoStartAfterLogin) { const startBtn = document.getElementById("launch-test-btn"); if (startBtn) { startBtn.click(); setTimeout(() => { const submitBtn = document.querySelector(".real-submit"); if (submitBtn) submitBtn.click(); }, 2000); } autoStartAfterLogin = false; } } }); </script> <script> document.querySelector("#download-result").addEventListener("click", function () { if (window.savedTestResultId) { window.location.href = `/online-test/test-results?id=${window.savedTestResultId}`; } else { alert("Please submit the test first."); } }); </script> </div> <div class="share-sec"> <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="share-box" style="float: left; padding-top: 30px;"> <!-- ShareThis BEGIN --> <div class="sharethis-inline-share-buttons" style="margin-bottom: 20px;"></div> <!-- ShareThis END --> </div> </div> </div> </div> </div><div class="feedback-sec"> <div class="container"> <div class="col-lg-12"> <div class="feed-box"> <h3>Is this page helpful?</h3> <ul class="yes-no"> <li><a href="javascript:void(0)" data-box="yes-box">Yes</a></li> <li><a href="javascript:void(0)" data-box="no-box">No</a></li> </ul> <div id="yes-box" class="yes-box" style="display: none;"> <p>Thank you for your feedback. We are happy our work helped you.</p> <p>Now, please consider sharing this page to your friends/class-fellows. Thank you</p> </div> <div id="no-box" class="no-box" style="display: none;"> <p>We are sorry to know you could not find your required information.</p> <p>Please take a moment to let us know about your feedback.</p> <textarea id="Comments" placeholder="Please write your feedback about this page here."></textarea><br> <input type="hidden" id="PageUrl" value="/bs-english/"> <input type="button" onclick="getfeedback()" value="Submit"> </div> </div> </div> </div> </div> <div b-6ny76aq88l id="loginPartialContainer"></div> <!-- Main End --> <!-- Footer Start --> <footer b-6ny76aq88l class="main-footer"> <div b-6ny76aq88l class="container"> <div b-6ny76aq88l class="row"> <div b-6ny76aq88l class="col-lg-12"> <div b-6ny76aq88l class="footer-logo"> <a b-6ny76aq88l aria-label="link"> <img b-6ny76aq88l class="lazyload slider-lazy" data-src="https://www.ilmkidunya.com/ikd-logo.jpg" alt="img" src="https://cdn.ilmkidunya.com/images/companylogo/default.png" width="186" height="70" /> </a> </div> </div> <div b-6ny76aq88l class="col-lg-12"> <div b-6ny76aq88l class="footer-cards"> <div b-6ny76aq88l class="f-card"> <div b-6ny76aq88l class="figure"> <img b-6ny76aq88l class="lazyload slider-lazy" src="https://www.ilmkidunya.com/icons/fb.png" alt="img" width="14" height="27" /> </div> <p b-6ny76aq88l> A vibrant community of 491K followers. Join to get daily updates for exams & study activities. </p> <a b-6ny76aq88l aria-label="Facebook Page" class="btn btn-green" href="https://www.facebook.com/ilmkidunya/" target="_blank">Like</a> </div> <div b-6ny76aq88l class="f-card"> <div b-6ny76aq88l class="figure"> <img b-6ny76aq88l class="lazyload slider-lazy" data-src="https://www.ilmkidunya.com/icons/icon-4.webp" alt="img" src="https://www.ilmkidunya.com/icons/icon-4.webp" width="23" height="15" /> </div> <p b-6ny76aq88l> Join our 2.29 Million subscribers on Pakistan's #1 Educational YouTube Channel to keep learning. </p> <a b-6ny76aq88l aria-label="YouTube Channel" class="btn btn-green" href="https://www.youtube.com/@ilmkidunyaofficial" target="_blank">Subscribe</a> </div> <div b-6ny76aq88l class="f-card"> <div b-6ny76aq88l class="figure"> <img b-6ny76aq88l class="lazyload slider-lazy" data-src="https://www.ilmkidunya.com/icons/icon-3.webp" alt="img" src="https://www.ilmkidunya.com/icons/icon-3.webp" width="21" height="17" /> </div> <p b-6ny76aq88l> A great way to remain in touch with latest educational news. Become one of our 57.8k followers. </p> <a b-6ny76aq88l aria-label="Twitter Profile" class="btn btn-green" href="https://x.com/ilmkidunya" target="_blank">Follow</a> </div> <div b-6ny76aq88l class="f-card"> <div b-6ny76aq88l class="figure"> <img b-6ny76aq88l class="lazyload slider-lazy" data-src="https://www.ilmkidunya.com/icons/icon-2.webp" alt="img" src="https://www.ilmkidunya.com/icons/icon-2.webp" width="18" height="19" /> </div> <p b-6ny76aq88l> Make your Insta feed full of interesting information & educational content. Follow us on Instagram. </p> <a b-6ny76aq88l aria-label="Instagram Page" class="btn btn-green" href="https://www.instagram.com/ilmkidunyadotcom/" target="_blank">Follow</a> </div> <div b-6ny76aq88l class="f-card"> <div b-6ny76aq88l class="figure"> <img b-6ny76aq88l class="lazyload slider-lazy" data-src="https://www.ilmkidunya.com/icons/tektok1.png" alt="img" src="https://www.ilmkidunya.com/icons/tektok1.png" width="26" height="30" /> </div> <p b-6ny76aq88l> Make your valuable fun time more valuable. Get short informative & educational videos. </p> <a b-6ny76aq88l aria-label="TikTok Profile" class="btn btn-green" href="https://www.tiktok.com/@ilmkidunya.com" target="_blank">Follow</a> </div> </div> </div> <div b-6ny76aq88l class="col-lg-12"> <p b-6ny76aq88l class="copyright">Copyright <span b-6ny76aq88l id="year">2025</span> ilmkidunya.com. All rights reserved.</p> </div> <div b-6ny76aq88l class="col-lg-12"> <!-- ✅ OPTIMIZED: Fixed height to prevent layout shifts --> <div b-6ny76aq88l class="ad-container" style="min-height: 90px; position: relative;"> <ins b-6ny76aq88l class="adsbygoogle ad-slot" style="display:block; min-height: 90px;" data-ad-client="ca-pub-8866825487085085" data-ad-slot="9990874736" data-ad-format="auto" data-full-width-responsive="true"></ins> </div> </div> </div> </div> </footer> <!-- Footer End --> </div> <!-- ✅ ULTRA-OPTIMIZED SCRIPT LOADER - PRIORITIZED LOADING --> <script> (function() { // ✅ MINIMAL SYNCHRONOUS WORK ONLY var yearEl = document.getElementById('year'); if (yearEl) yearEl.textContent = new Date().getFullYear(); // ✅ STEP 1: IMMEDIATE GOOGLE ANALYTICS LOAD (HIGHEST PRIORITY) window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-245RQY719C', { transport_type: 'beacon', page_visibility: true }); // Load GA script non-blocking but immediate var gaScript = document.createElement('script'); gaScript.src = 'https://www.googletagmanager.com/gtag/js?id=G-245RQY719C'; gaScript.async = true; document.head.appendChild(gaScript); // ✅ STEP 2: DELAYED ADS LOADING (AFTER 1 SECOND) function loadAllAds() { var hideGoogleAds = false; if (!hideGoogleAds) { // Google Ads - non-blocking var adsScript = document.createElement('script'); adsScript.src = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8866825487085085'; adsScript.async = true; adsScript.onload = function() { if (window.adsbygoogle) { window.adsbygoogle = window.adsbygoogle || []; window.adsbygoogle.push({}); } }; document.head.appendChild(adsScript); } // Amazon Ads - non-blocking var amazonScript = document.createElement('script'); amazonScript.src = 'https://c.amazon-adsystem.com/aax2/apstag.js'; amazonScript.async = true; document.head.appendChild(amazonScript); // Anymind Ads - non-blocking var anymind = document.createElement('script'); anymind.src = '//anymind360.com/js/3995/ats.js'; anymind.async = true; document.head.appendChild(anymind); } // ✅ STEP 3: OTHER SCRIPTS LOADING (AFTER ADS) function loadOtherScripts() { // Only load if page is visible if (document.hidden) { document.addEventListener('visibilitychange', function() { if (!document.hidden) loadHeavyScripts(); }); return; } loadHeavyScripts(); } function loadHeavyScripts() { var scripts = [ 'https://code.jquery.com/jquery-3.6.0.min.js', 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js', '/js-files/combine.js', '/js-files/js/responsive.menu.js', '/js-files/js/functions.js' ]; function loadScript(index) { if (index >= scripts.length || document.hidden) return; var script = document.createElement('script'); script.src = scripts[index]; script.async = true; script.setAttribute('fetchpriority', 'low'); // Add defer to your own JS files for better TBT if (scripts[index].includes('/js-files/js/functions.js')) { script.defer = true; } script.onload = function() { setTimeout(function() { loadScript(index + 1); }, 100); }; document.body.appendChild(script); } loadScript(0); } // ✅ EXECUTION FLOW: GA → 1s DELAY → ADS → OTHER SCRIPTS if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', function() { // Wait 1 second then load ads setTimeout(function() { loadAllAds(); // Then load other scripts loadOtherScripts(); }, 1000); }); } else { // Already loaded, wait 1 second then proceed setTimeout(function() { loadAllAds(); loadOtherScripts(); }, 1000); } // ✅ CORE INTERACTIONS ONLY document.addEventListener('click', function(e) { var bannerLink = e.target.closest('.decode-banner-url'); if (bannerLink && bannerLink.hasAttribute('data-url')) { e.preventDefault(); var encodedUrl = bannerLink.getAttribute('data-url'); try { var decodedUrl = decodeURIComponent(escape(atob(encodedUrl))); window.open(decodedUrl, '_blank', 'noopener'); } catch (err) { console.warn('Invalid URL'); } } }); })(); </script> <style> .only-footer-fixed { display: none; } @media screen and (max-width: 900px) { .only-footer-fixed { display: block; position: fixed; left: 0; bottom: 0; padding: 0; background: #fff; z-index: 9147483647; width: 100%; text-align: center; } .only-footer-fixed .close-footer { position: absolute; right: 10px; top: -20px; font-size: 20px; line-height: 25px; width: 24px; height: 24px; border-radius: 50%; background: #f00; color: #fff; cursor: pointer; font-weight: bold; z-index: 1000; } .only-footer-fixed img { width: 100%; height: auto; } } .decode-banner-url { cursor: pointer; } .only-footer-fixed.hidden { display: none !important; } </style> <!-- WhatsApp Banner --> <div b-6ny76aq88l class="only-footer-fixed" id="whatsapp-banner-main"> <span b-6ny76aq88l class="close-footer">×</span> <a b-6ny76aq88l href="http://cutly.in/G6b44Y" target="_blank"> <img b-6ny76aq88l alt="WhatsApp Banner" loading="lazy" src="https://www.ilmkidunya.com/images/WhatsAppBanner/WhatsAppBanner.png" width="300" height="60" style="width: 100%; height: 60px; object-fit: cover;"> </a> </div> <script> // ✅ OPTIMIZED: WhatsApp banner cleanup - non-blocking document.addEventListener('DOMContentLoaded', function() { // Remove ALL unwanted banners const allBanners = document.querySelectorAll('.only-footer-fixed'); allBanners.forEach(banner => { const hasBAttributes = banner.hasAttribute('b-6ny76aq88l') || banner.querySelector('[b-6ny76aq88l]') !== null; const hasHiddenClass = banner.classList.contains('hidden'); if (hasBAttributes || hasHiddenClass) { banner.remove(); } }); // Ensure only one banner remains const remainingBanners = document.querySelectorAll('.only-footer-fixed'); if (remainingBanners.length > 1) { for (let i = 1; i < remainingBanners.length; i++) { remainingBanners[i].remove(); } } // Close functionality document.addEventListener('click', function(e) { if (e.target.classList.contains('close-footer')) { const banner = e.target.closest('.only-footer-fixed'); if (banner) { banner.remove(); try { localStorage.setItem('whatsappBannerClosed', 'true'); } catch (e) { // Ignore localStorage errors } } } }); // Check if user previously closed the banner try { if (localStorage.getItem('whatsappBannerClosed') === 'true') { const banners = document.querySelectorAll('.only-footer-fixed'); banners.forEach(banner => { banner.remove(); }); } } catch (e) { // Ignore localStorage errors } }); </script> </body> </html>