Файловый менеджер - Редактировать - /www/wwwroot/gamenworld.store/themes/question/layout/home/content.phtml
�азад
<?php global $zon, $site_url; ?> <?php $query = "SELECT * from zon_questions"; $questionList = runner($query); // var_dump();die; ?> <div class="category-tag"> <div class="app_left-section__HysCU"> <div class="mx-2"> <?php if (getAdById("1", 'status') == 0) { ?> <div style="display: grid; place-items: center; margin-top:35px;"> <?= getAdById("1", 'code') ?> </div> <?php } ?> </div> <div class="app_left-section"> <p class="LeftSection_quiz-sub-line__0TGvq"> Answer few questions and win 150 Coins free! </p> <?php foreach($questionList as $question) {?> <h3 class="LeftSection_quiz-sub-line__0TGvqh3 allhidden allshow<?php echo $question['id'];?>"> <?php echo $question['question'];?> </h3> <span id="answer<?php echo $question['id'];?>" style="display:none"><?php echo $question['correct_option'];?></span> <div class="LeftSection_options__VPxGn allhidden allshow<?php echo $question['id'];?>"> <button class="goldButton" id="<?php echo $question['id'];?>"><?php echo $question['optionA'];?></button> <button class="goldButton" id="<?php echo $question['id'];?>"><?php echo $question['optionB'];?></button> <button class="goldButton" id="<?php echo $question['id'];?>"><?php echo $question['optionC'];?></button> <button class="goldButton" id="<?php echo $question['id'];?>"><?php echo $question['optionD'];?></button> </div> <?php } ?> </div> <script> // 定义 sleep 函数 function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } $(".allhidden").hide(); $(".allshow1").show(); const buttons = document.querySelectorAll(".goldButton"); // 修改后的代码 buttons.forEach(function(button) { button.addEventListener("click", async function() { const buttonText = button.textContent; const classval = button.id; const answerZq = $("#answer"+classval).html(); // 检查按钮文本与答案是否匹配 if (buttonText == answerZq) { button.style.backgroundColor = "green"; } else { button.style.backgroundColor = "red"; } buttons.forEach(function(item) { const childtext = item.textContent; const answerZq = $("#answer"+classval).html(); if(childtext == answerZq) { item.style.backgroundColor = "green"; } }) // 等待 2 秒 await sleep(1000); const classindex = Number(classval)+1; $(".allshow"+classval).hide(); $(".allshow"+classindex).show(); }); }); </script> <div class="mx-2"> <?php if (getAdById("2", 'status') == 0) { ?> <div style="display: grid; place-items: center; margin-top:35px"> <?= getAdById("2", 'code') ?> </div> <?php } ?> </div> <div class="LeftSection_info__G2-aZ"> <h4>Play Quiz and Win Coins!</h4> <ul> <li>Play Quizzes in 25+ categories like GK, Sports, Bollywood, Business, Cricket & more!</li> <li>Compete with lakhs of other players!</li> <li>Win coins for every game.</li> <li>Trusted by millions of quiz enthusiasts like YOU!</li> </ul> </div> <div class="LeftSection_fun-facts__Km8u4"> <h4>Fun Facts</h4> <p> A quiz is an activity where participants answer questions to test and expand their knowledge. It covers various topics and offers points or rewards for correct answers. Quizzes can be played online anytime, solo or with others, and often include prizes or incentives. </p> </div> </div> </div> <div class="mx-2"> <?php if (getAdById("3", 'status') == 0) { ?> <div style="display: grid; place-items: center; margin-top:35px;"> <?= getAdById("3", 'code') ?> </div> <?php } ?> </div> <?php if (getAdById("4", 'status') == 0) { ?> <div class="mx-2"> <!-- 顶部锚定广告 --> <div class="top-anchor-ad" id="topAnchorAd" style="display: flex; align-items: center; justify-content: center;"> <div class="top-drawer-handle" onclick="this.parentElement.classList.toggle('ad-hidden'); document.body.style.paddingTop = this.parentElement.classList.contains('ad-hidden') ? '0px' : '120px';">▼</div> <?= getAdById("4", 'code') ?> </div> </div> <?php } ?> <?php if (getAdById("5", 'status') == 0) { ?> <div class="mx-2"> <!-- 底部锚定广告 --> <div class="anchor-ad" id="anchorAd" style="display: flex; align-items: center; justify-content: center;"> <div class="drawer-handle" onclick="this.parentElement.classList.toggle('ad-hidden'); document.body.style.paddingBottom = this.parentElement.classList.contains('ad-hidden') ? '0px' : '120px';">▲</div> <?= getAdById("5", 'code') ?> </div> </div> <?php } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.0.26 | Генераци� �траницы: 0 |
proxy
|
phpinfo
|
�а�тройка