added first scripts and expanded skeleton

This commit is contained in:
James 2022-09-23 10:06:17 +02:00
parent ab1cc58edd
commit 6f98294ea0
3 changed files with 215 additions and 26 deletions

View File

@ -26,14 +26,15 @@ body::-webkit-scrollbar-thumb {
}
.card {
border-top-right-radius: 42px;
/* border-top-right-radius: 42px; */
opacity: 0.9;
margin-bottom: 0px !important;
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FRpuPHvbeQaKxFAEB6EN+cYN6xD7RYGpXpNndMmZgM5Dcs3YSNFDHUo2LGfZuukSWyUYirJAdYbF3MfqEKmjM+I2EfhA94iG3L7uKrR+GdWD73ydlIB+6hgref1QTlmgmbM3/LeX5GI1Ux1RWpgxpLuZ2+I+IjzZ8wqE4nilvQdk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Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==") repeat center center;
}
.blurry {
border-top-right-radius: 42px;
backdrop-filter: blur(7px) !important;
/* border-top-right-radius: 42px; */
backdrop-filter: blur(17px) !important;
}
.sidenav-overlay {

BIN
img/error.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 955 KiB

View File

@ -29,6 +29,7 @@
<div class "container">
<div class="row">
<div class="col s12 m10 l8 offset-m1 offset-l2">
<div class="blurry">
<div class="card white">
<div class="card-content white-text"> <span class="card-title black-text">James' CR Calculator... or Crculator... whatever</span>
<form action="#">
@ -37,51 +38,135 @@
<div class="card green">
<div class="card-content white-text"> <span class="card-title">Party Setup</span>
<div class="row">
<div class="col s6">
<div class="col s12 m6">
<div class="card green darken-4">
<div class="card-content white-text"> <span class="card-title">About the Players...</span>
<div class="card black">
<div class="card-content white-text"> <span>
<span>
How many Meelee Fighters are in the Party?
</span>
<div class="input-field s3">
<label for="party_meelee">How many meelee fighters?</label>
<input placeholder="Insert Smash Bros. refference..." id="hp_dice_ammount" min="1" type="number" class="white-text validate"> </div>
<input placeholder="Insert Smash Bros. refference..." id="party_meelee" min="1" type="number" class="white-text validate">
</div>
</div>
</div>
<div class="input-field s3">
<label for="party_long_range">How many Ranged fighters?</label>
<input placeholder="The ones, that DON'T track ammo..." id="party_long_range" min="1" type="number" class="white-text validate"> </div>
<div class="card black">
<div class="card-content white-text"> <span>
<span>
How many Ranged fighters are in the Party?
</span>
<input placeholder="The ones, that DON'T track ammo..." id="party_long_range" min="1" type="number" class="white-text validate">
</div>
</div>
</div>
<div class="input-field s3">
<label for="party_magic">How many Spell fighters?</label>
<input placeholder="The ones, who are forced to track ammo..." id="party_magic" min="1" type="number" class="white-text validate"> </div>
<div class="card black">
<div class="card-content white-text"> <span>
<span>
How many Spell Fighters are in the Party?
</span>
<input placeholder="The ones, who are forced to track ammo..." id="party_magic" min="1" type="number" class="white-text validate">
</div>
</div>
</div>
<div class="input-field s3">
<label for="party_support">How many squishy Supports?</label>
<input placeholder="The dicestackers." id="party_support" min="1" type="number" class="white-text validate"> </div>
<div class="card black">
<div class="card-content white-text"> <span>
<span>
How many squishy Supports?
</span>
<input placeholder="The dicestackers." id="party_support" min="1" type="number" class="white-text validate">
</div>
</div>
</div>
<div class="input-field s3">
<div class="card black">
<div class="card-content white-text"> <span>
<span>
What average level is your party?
</span>
<input placeholder="Insert Smash Bros. refference..." id="party_level" min="1" type="number" class="white-text validate">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col s6">
<div class="col s12 m6">
<div class="card green darken-4">
<div class="card-content white-text"> <span class="card-title">Skill calculator</span>
<div class="card black">
<div class="card-content white-text"> <span>
<div class="card-content white-text">
<span>
Have your players played DND before?
</span>
<br>
<label>
<input name="group1" type="radio" checked /> <span>Yes</span> </label>
<input name="group1" type="radio" checked /> <span>Yes</span> </label><br>
<label>
<input name="group1" type="radio" /> <span>No</span> </label>
</div>
</div>
<div class="card red darken-4">
<div class="card-content white-text"> <span>
Do you intend to wipe the party?
</span>
<br>
<label>
<input name="danger" type="radio" checked /> <span>Yes</span> </label>
<label>
<input name="danger" type="radio" /> <span>No</span> </label>
<div class="card black">
<div class="card-content white-text"> <span>
Do your players use the enviroment for attacks?
</span>
<br>
<label>
<input name="group5" type="radio" checked /> <span>Yes, but there is nothing around</span> </label><br>
<label>
<input name="group5" type="radio" /> <span>Yes, I plan on adding additional weaponry.</span> </label><br>
<label>
<input name="group5" type="radio" /> <span>No, my players are mindless robots.</span> </label>
</div>
</div>
</div>
<div class="card black">
<div class="card-content white-text"> <span>
Do your players play any strategy games? (Chess counts)
</span>
<br>
<label>
<input name="group3" type="radio" checked /> <span>Yes</span> </label><br>
<label>
<input name="group3" type="radio" /> <span>No</span> </label>
</div>
</div>
<div class="card black">
<div class="card-content white-text"> <span>
Do you use rules, which assist in adding damage/advantage? (Flanking, Limb rule , Lingering Injuries)
</span>
<br>
<label>
<input name="group4" type="radio" checked /> <span>Yes</span><br>
</label>
<label>
<input name="group4" type="radio" /> <span>Multiple</span><br>
</label>
<label>
<input name="group4" type="radio" /> <span>No</span>
</label>
<ul class="collapsible">
<li>
<div class="collapsible-header indigo"><i class="material-icons">info_outline</i>Explanation Flanking</div>
<div class="collapsible-body indigo darken-4"><span>Flanking is an optional rule in DnD 5E, intended to add more tactical depth to combat. The rule itself is straightforward: When a creature and at least one ally are within 5ft of the same enemy on opposite sides, that enemy is flanked. Each of the creatures flanking has advantage on melee attacks against it.</span></div>
</li>
<li>
<div class="collapsible-header indigo"><i class="material-icons">info_outline</i>Explanation Limb Rule</div>
<div class="collapsible-body indigo darken-4"><span>Basically like flanking, but instead of standing opposed to the enemy, it's about outnumbering the usable limbs. Basically if there is a normal human, using two swords/shields, they can block 2 People. If there is a third person, they gain advantage, since they cannot block the third attack.</span></div>
</li>
<li>
<div class="collapsible-header indigo"><i class="material-icons">info_outline</i>Explanation Lingering Injuries</div>
<div class="collapsible-body indigo darken-4"><span>When a creature takes damage from a single source equal to or greater than half its hit point maximum, it must succeed on a Constitution saving throw with DC 15 or half the damage receive (whichever is higher) or suffer a random effect determined by a roll on the System Shock table.<br> (Table not included)</span></div>
</li>
</ul>
</div>
</div>
</div>
</div>
@ -259,15 +344,118 @@
</div>
</div>
</div>
<div class="row">
<div class="col s12">
<div class="card black">
<div class="card-content white-text"> <span class="card-title">Results</span>
<div class="row">
<div class="col s12">
<div class="card horizontal grey darken-4">
<div class="card-image">
<a href="https://www.deviantart.com/velger96/art/Marisa-level-chart-208761786"> <img id="diff_image" src="img/error.png" height="206"> </a>
</div>
<div class="card-stacked">
<div class="card-content">
<p id="diff_description">I was unable to calculate the difficulty.</p>
</div>
<div class="card-action">
<p id="diff_summary">Too drunk to calculate</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col s12">
<div class="card black">
<div class="card-content white-text"> <span class="card-title">[DEBUG] Set the current status! [DEBUG]</span>
<br>
<label>
<input name="debug_diff" type="radio" checked onchange="calcDiff()"/> <span>Calculation</span>
</label>
<label>
<input name="debug_diff" type="radio" onchange="setDiff('easy')"/> <span>Easy</span>
</label>
<label>
<input name="debug_diff" type="radio" onchange="setDiff('medium')"/> <span>Medium</span>
</label>
<label>
<input name="debug_diff" type="radio" onchange="setDiff('hard')"/> <span>Hard</span>
</label>
<label>
<input name="debug_diff" type="radio" onchange="setDiff('lunatic')"/> <span>Deadly</span>
</label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col s12">
<div class="card black">
<div class="card-content white-text"> <span class="card-title"> Do you intend to wipe the party?</span>
<label>
<input name="danger" type="radio" checked /> <span>Yes</span>
</label><br>
<label>
<input name="danger" type="radio" /> <span class="red-text"><b>Yes, but in red</b></span>
</label>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<a href="https://www.deviantart.com/velger96/art/Marisa-level-chart-208761786"> <img src="img/diff_eas.jpg"> </a>
</div>
<!--JavaScript at end of body for optimized loading-->
<script type="text/javascript" src="js/materialize.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.collapsible').collapsible();
});
</script>
<script type="text/javascript">
function calcDiff() {
$("#diff_description").html("The calculation is currently not programmed.");
$("#diff_summary").html("Good one, bro.");
}
function setDiff(difficulty) {
$("#diff_image").attr("src", "img/diff_"+difficulty.substring(3,0)+".jpg")
switch (difficulty) {
case "easy":
$("#diff_description").html("This fight should be an easy pick for your players. Maybe a scratch wound or two are the most, they take out of this.");
$("#diff_summary").html("A simple fight");
break;
case "medium":
$("#diff_description").html("Noone <i>should</i> die, but if your party willingly positions themselves in front of the raging barbarian, that's on them.");
$("#diff_summary").html("A slightly challenging fight.");
break;
case "hard":
$("#diff_description").html("Quite a fight. Could lead to a death. If you want, that your party uses items, go ahead and throw this fight at them.");
$("#diff_summary").html("Item usage to prevent death is advised.");
break;
case "lunatic":
$("#diff_description").html("This is the real deal. You will suffer losses. Maybe your party will die... or enslaved.. or enslaved and then killed... However, there is hope! <br>Okay no, I lied. your Party is dead.");
$("#diff_summary").html("");
}
}
</script>
</body>