Widget:DivineDecision: Difference between revisions
imported>Pillowkeeper Undo revision 47164 by Pillowkeeper (talk) |
imported>Pillowkeeper No edit summary |
||
| Line 108: | Line 108: | ||
$("#seasonFilter-s3").change(function() { | $("#seasonFilter-s3").change(function() { | ||
$(".campBox").hide(); | $(".campBox").hide(); | ||
if($(this).val() == "The Grand Paladin Order"){ | if($(this).val() == "The Grand Paladin Order"){ | ||
| Line 131: | Line 129: | ||
var loc = location.href; | var loc = location.href; | ||
loc = loc.substring(loc.indexOf("#") + 1); | loc = loc.substring(loc.indexOf("#") + 1); | ||
if(loc == "s3c1"){ | if(loc == "s3c1"){ | ||
$('#seasonFilter-s3').val("The Grand Paladin Order").change(); | $('#seasonFilter-s3').val("The Grand Paladin Order").change(); | ||
onChange(); | onChange(); | ||
} | } | ||
if(loc == "s3c2"){ | if(loc == "s3c2"){ | ||
$('#seasonFilter-s3').val("The Senate of Deadlantis").change(); | $('#seasonFilter-s3').val("The Senate of Deadlantis").change(); | ||
onChange(); | onChange(); | ||
} | } | ||
if(loc == "s3c3"){ | if(loc == "s3c3"){ | ||
$('#seasonFilter-s3').val("Azveltara Z").change(); | $('#seasonFilter-s3').val("Azveltara Z").change(); | ||
onChange(); | onChange(); | ||
} | } | ||
}); | }); | ||
Revision as of 21:59, 29 September 2017
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.2.0.min.js"></script>
<style> div.charFilter select{ border: 1px solid #000;
color: #fff; background: #444; position: relative; width: 150px; float: left; height: 25px; margin-right: 5px;
} div.charFilter{ display: inline-block;
padding-left: 15px;
padding-right: 15px;
width: 100%;
} div.filterLeft{ float: left; } div.filterRight{ float: right; }
div#decPanel {
text-align: center; background: rgba(68,68,68,0.2); border-radius: 15px; border: 2px solid #8b4513; padding: 10px;
display: inline-block;
min-width: 100%;
}
.blur {
filter:blur(6px); transition: filter 0.3s; -webkit-transition: filter 0.3s;
}
.blur:hover {
filter:blur(0px);
}
div.campTitle{
text-align: center; font-weight: bold; padding: 3px; font-family: "Cinzel Decorative"; font-size: 35px;
}
div.divDesc{ text-align: center; }
.dicChosen {
width: 600px; margin: 0 auto;
} .dicChoices{
display:inline; margin-bottom:30px;
width: 300px; } .dicImage{
display:block; width:inherit; margin-bottom:inherit; border-radius: 15px; border: 3px solid #F9E4CA;
}
.dicChoices table tbody, tr, td{ width: inherit; } </style>
<script>
$("div#decPanel").prepend("
");
$("div.filterLeft").append("<select id='mainFilter'><option>Season 3</option></select>"); $("div.filterRight").append("<select id='seasonFilter-s3'><option>The Grand Paladin Order</option><option>The Senate of Deadlantis</option><option>Azveltara Z</option></select>");
$("#mainFilter").change(function() { });
var path = "";
var GPO = '
| <img class="dicImage" style="float:left;" src="/images/a/a0/Gwyneth_GPO.png"> |
| You believe Gwyneth Sunsword, daughter to Virgo Sunsword, should be the next Grand Paladin. Choosing this path will push Gwyneth down her darkest storyline as she she hunts down Bopen the Skeleton King. |
| <img class="dicImage" style="float:right;" src="/images/c/c6/Lance_GPO.png"> |
| You believe Lance Willakers, leader of the Lightbeard Clan, should be the next Grand Paladin. Choosing this path will create the most aggressive Grand Paladin there will ever be. |
'; var SOD = '
| <img class="dicImage" style="float:left;" src="/images/b/b9/Bopen_SOD.jpg"> |
| You believe the Ageless of Deadlantis should go to war with the living. |
| <img class="dicImage" style="float:right;" src="/images/f/f3/Daedrik_SOD.jpg"> |
| You believe war would only bring ruin to Deadlantis and keep the relative peace. |
'; var AVZ = '
| <img class="dicImage" style="float:left;" src="/images/c/c0/Lyn_Pregnant.png"> |
| You do want Lyn Azveltara to become pregnant from one of the Characters created by the Players this campaign. |
| <img class="dicImage" style="float:right;" src="/images/8/8f/Lyn_Infertile.png"> |
| You do not want Lyn Azveltara to have a children ever causing her to become infertile. |
';
$("#contHolder").append(GPO); $("#contHolder").append(SOD); $("#contHolder").append(AVZ);
$("#seasonFilter-s3").change(function() { $(".campBox").hide();
if($(this).val() == "The Grand Paladin Order"){ $("#GPO").show(); path = "#s3c1"; } if($(this).val() == "The Senate of Deadlantis"){ $("#SOD").show(); path = "#s3c2"; } if($(this).val() == "Azveltara Z"){ $("#AVZ").show(); path = "#s3c3"; } var url = location.href; url = url.substring(0, url.indexOf("#")); window.history.replaceState( {} , , url + path); });
$(window).on("load", function() { var loc = location.href; loc = loc.substring(loc.indexOf("#") + 1); if(loc == "s3c1"){ $('#seasonFilter-s3').val("The Grand Paladin Order").change(); onChange(); } if(loc == "s3c2"){ $('#seasonFilter-s3').val("The Senate of Deadlantis").change(); onChange(); } if(loc == "s3c3"){ $('#seasonFilter-s3').val("Azveltara Z").change(); onChange(); } });
function onChange() {
$(".campBox").hide();
if($('#seasonFilter-s3').val() == "The Grand Paladin Order"){ $("#GPO").show(); path = "#s3c1"; } if($('#seasonFilter-s3').val() == "The Senate of Deadlantis"){ $("#SOD").show(); path = "#s3c2"; } if($('#seasonFilter-s3').val() == "Azveltara Z"){ $("#AVZ").show(); path = "#s3c3"; } var url = location.href; url = url.substring(0, url.indexOf("#")); window.history.replaceState( {} , , url + path); }
//Default $(".campBox").hide(); $("#GPO").show(); if(location.href.indexOf("#") < 0) { window.history.replaceState( {} , , location.pathname + "#s3c1");
}
</script>


