Last active
December 5, 2016 21:17
-
-
Save benlipp/09f9d1761a72dcd98eb00743ac7504d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<div id="container"> | |
<div id="inner"> | |
<div class="RWBBorderLeft"> | |
<img src="images/RWBBorder.png" width="650" height="650" alt=""/> | |
</div> | |
<div class="questionText"></div> | |
<a class="answerBtn"></a> | |
<div class="anchor0"><img src="images/Anchor0.png" width="600" height="600" alt=""/></div> | |
<div class="anchor1"><img src="images/Anchor1.png" width="600" height="600" alt=""/></div> | |
<div class="anchor2"><img src="images/Anchor2.png" width="600" height="600" alt=""/></div> | |
<div class="anchor3"><img src="images/Anchor3.png" width="600" height="600" alt=""/></div> | |
<div class="RWBBorderRight"> | |
<img src="images/RWBBorderLogo.png" width="609" height="705" alt=""/> | |
</div> | |
</div> | |
</div> | |
<script> | |
var questions = DEFINE QUESTIONS HERE | |
var currentQuestion = 0; | |
$(document).ready(function(){ | |
$(".questionText").text(questions[currentQuestion].question); | |
$(".answerBtn").each(function(index){ | |
var keyNum = index+1; | |
var answerNum = 'answer' + keyNum; | |
$(this).text(questons[currentQuestion].answerNum; | |
$(this).data("answer",keyNum); | |
}); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment