Commit f6ee2f16 authored by Porter Libby's avatar Porter Libby
Browse files

fix bugs, add email button

parent b7650177
......@@ -213,6 +213,8 @@
<div class='block' id="block5">
<span class='section-prompt'>5. Done!</span>
<br>
<a href="mailto:no-one@snai1mai1.com?subject=look at this website&body=Hi,I found this website and thought you might like it http://www.geocities.com/wowhtml/">Send Email</a>
<div class='inner-nav'> <!-- Nav options for this block -->
<button type="button" class="btn btn-labeled btn-dark btn-finish">
......
......@@ -70,7 +70,7 @@ body{
overflow: hidden;
}
.block{
height: 200px;
height: 400px;
width: 100%;
border: 1px solid black;
text-align: left;
......
......@@ -7,6 +7,24 @@ function section_two(val){ // load info for section two based on value
set_modal_text(url,desc,title,video)
}
function section_three(val){ // load info for section three based on value
var url = dictionary["access_opportunities"][val][0];
var desc = dictionary["access_opportunities"][val][1];
var title = dictionary["access_opportunities"][val][2];
var video = dictionary["access_opportunities"][val][3];
open_modal()
set_modal_text(url,desc,title,video)
}
function section_four(val){ // load info for section two based on value
var url = dictionary["ways_forward"][val][0];
var desc = dictionary["ways_forward"][val][1];
var title = dictionary["ways_forward"][val][2];
var video = dictionary["ways_forward"][val][3];
open_modal()
set_modal_text(url,desc,title,video)
}
......
......@@ -19,7 +19,7 @@ $(document).ready(function() { // populate when document is loaded
for (property in dictionary["access_opportunities"]) {
// for each item in passion project section, create a form element
count++;
form.innerHTML += '<input type="radio" id="' + count + '" name="access_opportunities" value="' + property + '" onchange="section_two(this.value)">';
form.innerHTML += '<input type="radio" id="' + count + '" name="access_opportunities" value="' + property + '" onchange="section_three(this.value)">';
form.innerHTML += '<label for="' + count + '">' + dictionary["access_opportunities"][property][2] + '</label><br>';
}
......@@ -29,7 +29,7 @@ $(document).ready(function() { // populate when document is loaded
for (property in dictionary["ways_forward"]) {
// for each item in passion project section, create a form element
count++;
form.innerHTML += '<input type="radio" id="' + count + '" name="ways_forward" value="' + property + '" onchange="section_two(this.value)">';
form.innerHTML += '<input type="radio" id="' + count + '" name="ways_forward" value="' + property + '" onchange="section_four(this.value)">';
form.innerHTML += '<label for="' + count + '">' + dictionary["ways_forward"][property][2] + '</label><br>';
}
});
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment