Advertisement
Strider64

Trivia Game - PHP, JQuery and JSON

Sep 25th, 2016
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.44 KB | None | 0 0
  1. <?php
  2. require_once __DIR__ . '/vendor/autoload.php';
  3. require_once 'lib/includes/utilities.inc.php';
  4.  
  5. require_once 'lib/includes/header.inc.php';
  6. ?>
  7. <div class="container mainContent">
  8.  
  9.  
  10.     <div class="mainGame">
  11.         <!-- The Question that is pulled in from PHP and jQuery -->
  12.         <div class="questStyle">
  13.             <h3 class="displayQuest">&nbsp;</h3>
  14.         </div>
  15.         <!-- The Possible Answers that is also pulled in from PHP and jQuery -->
  16.         <ol class="possibleAnswers">
  17.             <li><a id="answer1" class="answer1 row span12 clicked" href="" data-answer="1"></a></li>
  18.             <li><a id="answer2" class="answer2 row span12 clicked" href="" data-answer="2"></a></li>
  19.             <li><a id="answer3" class="answer3 row span12 clicked" href="" data-answer="3"></a></li>
  20.             <li><a id="answer4" class="answer4 row span12 clicked" href="" data-answer="4"></a></li>
  21.         </ol>
  22.  
  23.         <div class="scoreboard">
  24.             <!-- The Countdown Counter done in jQuery -->
  25.             <div class="span6 stopwatch">
  26.                 <p class="countdownClock">Timer: <span class="timer"></span></p>
  27.             </div>
  28.             <!-- The Score done in jQuery -->
  29.             <div class="span6 scoreBox">
  30.                 <p class="score">Score: <span class="totalPoints"></span> </p>
  31.             </div>  
  32.  
  33.         </div> 
  34.  
  35.     </div>
  36.  
  37.  
  38.  
  39.     <button class="nextBtn">Next Question</button>
  40.  
  41. </div>
  42. <?php
  43. require_once 'lib/includes/footer.inc.php';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement