Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Optional Rules from DMG #43

Open
wants to merge 57 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
107747f
Added optional rules
mfriik Jan 22, 2024
06aa5e5
fixed typos and wrong desc
mfriik Jan 22, 2024
491062c
Create CNAME
mfriik Jan 23, 2024
bfeb7ce
Delete CNAME
mfriik Jan 23, 2024
432c0f2
added info to invisibility and jump
mfriik Jan 23, 2024
d266f54
Merge branch 'master' of https://github.com/mfriik/dnd5e-quickref
mfriik Jan 23, 2024
1fbc947
Create CNAME
mfriik Jan 23, 2024
5a2d732
File Rename and readme modification
mfriik Jan 23, 2024
324ebda
Merge pull request #2 from mfriik/IndexForWebDeployment
mfriik Jan 23, 2024
e1c4a61
Update README.md
mfriik Jan 23, 2024
a7a6083
Update README.md
mfriik Jan 23, 2024
5597836
Update README.md
mfriik Jan 23, 2024
9fd023a
Update README.md
mfriik Jan 23, 2024
406c1c3
Update README.md
mfriik Jan 23, 2024
35b00e0
Delete CNAME
mfriik Jan 23, 2024
e2ffc06
Create CNAME
mfriik Jan 23, 2024
872a1bb
content fixes
mfriik Jan 23, 2024
c4008b8
Merge pull request #3 from mfriik/ContentFixes
mfriik Jan 23, 2024
2643da2
Delete CNAME
mfriik Jan 23, 2024
2d0c372
Create CNAME
mfriik Jan 23, 2024
c5b6273
Delete CNAME
mfriik Jan 24, 2024
8d671a5
Create CNAME
mfriik Jan 24, 2024
9365ab8
fixed modal behaviour on click
mfriik Jan 24, 2024
ad6d01f
Delete CNAME
mfriik Jan 24, 2024
2ed6b39
Create CNAME
mfriik Jan 24, 2024
79c4f2e
Merge pull request #4 from mfriik/ModalFix-CloseIfClickedOutside
mfriik Jan 24, 2024
fcfd86d
Removed Jquery files and converted functions to vanilla JS
mfriik Jan 24, 2024
ffd64cf
Delete CNAME
mfriik Jan 24, 2024
2a9a214
Create CNAME
mfriik Jan 24, 2024
1c3cd42
Merge pull request #5 from mfriik/jQueryRemoval
mfriik Jan 24, 2024
ed02879
Fixed Content wording
mfriik Jan 24, 2024
10a44be
shorten disarm subtitle
mfriik Jan 24, 2024
3ac2349
Minor content fixes and prep for toggle
mfriik Jan 24, 2024
da997cb
content splif and color modification
mfriik Jan 25, 2024
211f403
Added Settings and option to toggle optional rules visibility
mfriik Jan 28, 2024
502d358
Merge pull request #6 from mfriik/ContentFixes&OptionalRulesToggle
mfriik Jan 28, 2024
e98bfbe
Update README.md
mfriik Jan 28, 2024
b0e9b98
Added favicon to repo
mfriik Jan 29, 2024
5ed1a42
Update README.md
mfriik Jan 29, 2024
ae4b896
Merge pull request #7 from mfriik/Favicon
mfriik Jan 29, 2024
30079f6
Darkmode, content fixes, css fixes
mfriik Jan 29, 2024
aa50713
Added handling and styles for darkmode
mfriik Jan 30, 2024
5c8f0a9
formated all files
mfriik Jan 30, 2024
971e1f8
Merge pull request #8 from mfriik/DarkModeToggle
mfriik Jan 30, 2024
bdb3fdb
modified colors for less harsh variants
mfriik Feb 4, 2024
a970dbc
Merge pull request #9 from mfriik/ColorModifications
mfriik Feb 4, 2024
7bde862
Update quickref.css
mfriik Feb 5, 2024
7fba97f
Darkmode color tweaks
mfriik Feb 5, 2024
e0f2285
formatted the css
mfriik Feb 5, 2024
505458b
Merge pull request #10 from mfriik/DarkModeColorTweaks
mfriik Feb 5, 2024
b90040d
changed indigo color to muted one
mfriik Feb 9, 2024
d4dc6cb
Fix for toggles to work with labels
mfriik Feb 9, 2024
4beab05
Event Listener on item for settings and collor tweaks
mfriik Feb 9, 2024
d157e94
Merge pull request #11 from mfriik/ToggleFix
mfriik Feb 9, 2024
898d1ba
cookies notice implementation
mfriik Jul 25, 2024
15dc5ba
Merge pull request #13 from mfriik/cookies-notice
mfriik Jul 25, 2024
4987236
Added Homebrew Rule items and created toggle for Homebrew
mfriik Sep 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
formated all files
mfriik committed Jan 30, 2024
commit 5c8f0a98b00f1d802deeddc9b3051e9f6629e11b
9 changes: 8 additions & 1 deletion css/quickref.css
Original file line number Diff line number Diff line change
@@ -524,7 +524,8 @@ input:checked+.slider:before {
background-color: #333;
color: #fff;
}
.dark-mode-active .section-row,

.dark-mode-active .section-row,
.dark-mode-active .section-subtitle,
.dark-mode-active #modal-reference {
color: #fff;
@@ -559,21 +560,27 @@ input:checked+.slider:before {
.dark-mode-active #section-movement .text {
color: #fff;
}

.dark-mode-active #section-action .text {
color: #fff;
}

.dark-mode-active #section-bonus-action .text {
color: #fff;
}

.dark-mode-active #section-reaction .text {
color: #fff;
}

.dark-mode-active #section-environment .text {
color: #fff;
}

.dark-mode-active #section-condition .text {
color: #fff;
}

.dark-mode-active #section-settings .text {
color: #fff;
}
242 changes: 121 additions & 121 deletions index.html
Original file line number Diff line number Diff line change
@@ -18,159 +18,159 @@

<body class="page-background">
<div class="dark-mode">
<div class="page fontsize" data-size="fullscreen">
<div class="page fontsize" data-size="fullscreen">

<!-- Movement section -->
<div id="section-movement" class="section-container">
<div class="section-title">
Movement
<span class="float-right">limited by movement speed</span>
</div>
<div class="section-content">
<div class="section-row section-subtitle text fontsize">
You can move at any time during your turn (before, after, or during actions).
<!-- Movement section -->
<div id="section-movement" class="section-container">
<div class="section-title">
Movement
<span class="float-right">limited by movement speed</span>
</div>
<div class="section-row" id="basic-movement">
<div class="section-content">
<div class="section-row section-subtitle text fontsize">
You can move at any time during your turn (before, after, or during actions).
</div>
<div class="section-row" id="basic-movement">
</div>
</div>
</div>
</div>

<!-- Action section -->
<div id="section-action" class="section-container">
<div class="section-title">
Action
<span class="float-right">1/turn</span>
</div>
<div class="section-content">
<div class="section-row section-subtitle text fontsize">
You can also interact with one object or feature of the
environment for free.
<!-- Action section -->
<div id="section-action" class="section-container">
<div class="section-title">
Action
<span class="float-right">1/turn</span>
</div>
<div class="section-row" id="basic-actions"></div>
</div>
</div>

<!-- Bonus action section -->
<div id="section-bonus-action" class="section-container">
<div class="section-title">
Bonus action
<span class="float-right">max. 1/turn</span>
</div>
<div class="section-content">
<div class="section-row section-subtitle text fontsize">
You can take a bonus action only when a special ability, spell, or feature
states that you can do something as a bonus action.
<div class="section-content">
<div class="section-row section-subtitle text fontsize">
You can also interact with one object or feature of the
environment for free.
</div>
<div class="section-row" id="basic-actions"></div>
</div>
<div class="section-row" id="basic-bonus-actions"></div>
</div>
</div>

<!-- Reaction section -->
<div id="section-reaction" class="section-container">
<div class="section-title">
Reaction
<span class="float-right">max. 1/round</span>
</div>
<div class="section-content">
<div class="section-row section-subtitle text fontsize">
A reaction is an instant response to a trigger of some kind, which
can occur on your turn or on someone else's.
<!-- Bonus action section -->
<div id="section-bonus-action" class="section-container">
<div class="section-title">
Bonus action
<span class="float-right">max. 1/turn</span>
</div>
<div class="section-row" id="basic-reactions"></div>
</div>
</div>

<!-- Condition section -->
<div id="section-condition" class="section-container">
<div class="section-title">
Condition
</div>
<div class="section-content">
<div class="section-row section-subtitle text fontsize">
Conditions alter your capabilities in a variety of ways, and can arise as a result of a spell, a
class feature, a monster's attack, or other effect.
<div class="section-content">
<div class="section-row section-subtitle text fontsize">
You can take a bonus action only when a special ability, spell, or feature
states that you can do something as a bonus action.
</div>
<div class="section-row" id="basic-bonus-actions"></div>
</div>
<div class="section-row" id="basic-conditions"></div>
</div>
</div>

<!-- Environmental section -->
<div id="section-environment" class="section-container">
<div class="section-title">
Environmental Effects
</div>
<div class="section-content">
<div class="section-row section-subtitle text fontsize">
Effects that obscure vision can prove a significant hindrance to most adventuring tasks.
<!-- Reaction section -->
<div id="section-reaction" class="section-container">
<div class="section-title">
Reaction
<span class="float-right">max. 1/round</span>
</div>
<div class="section-row" id="environment-obscurance"></div>
<div class="section-row section-subtitle text fontsize">
The presence or absence of light in an environment creates three categories of illumination.
<div class="section-content">
<div class="section-row section-subtitle text fontsize">
A reaction is an instant response to a trigger of some kind, which
can occur on your turn or on someone else's.
</div>
<div class="section-row" id="basic-reactions"></div>
</div>
<div class="section-row" id="environment-light"></div>
<div class="section-row section-subtitle text fontsize">
Some creatures have extraordinary senses that allow them to perceive their environment.
</div>

<!-- Condition section -->
<div id="section-condition" class="section-container">
<div class="section-title">
Condition
</div>
<div class="section-row" id="environment-vision"></div>
<div class="section-row section-subtitle text fontsize">
Obstacles can provide cover during combat, making a target more difficult to harm.
<div class="section-content">
<div class="section-row section-subtitle text fontsize">
Conditions alter your capabilities in a variety of ways, and can arise as a result of a spell, a
class feature, a monster's attack, or other effect.
</div>
<div class="section-row" id="basic-conditions"></div>
</div>
<div class="section-row" id="environment-cover"></div>
</div>
</div>
<!-- Settings section -->
<div id="section-settings" class="section-container">
<div class="section-title">Settings</div>
<div class="section-content">
<div class="section-row section-subtitle text fontsize">
You can change below toggle for settings on this page.

<!-- Environmental section -->
<div id="section-environment" class="section-container">
<div class="section-title">
Environmental Effects
</div>
<div class="item itemsize" title="Include Optional Rules">
<div class="item-icon"><label class="switch">
<input type="checkbox" id="optional-switch">
<span class="slider round"></span>
</label></div>
<div class="item-text-container text">
<div class="item-title">Include Optional Rules</div>
<div class="item-desc">Show/hide optional rules from DMG.</div>
<div class="section-content">
<div class="section-row section-subtitle text fontsize">
Effects that obscure vision can prove a significant hindrance to most adventuring tasks.
</div>
</div>
<div class="item itemsize" title="Darkmode" hidden>
<div class="item-icon"><label class="switch">
<input type="checkbox" id="darkmode-switch">
<span class="slider round"></span>
</label></div>
<div class="item-text-container text">
<div class="item-title">Darkmode</div>
<div class="item-desc">Enable Darkmode</div>
<div class="section-row" id="environment-obscurance"></div>
<div class="section-row section-subtitle text fontsize">
The presence or absence of light in an environment creates three categories of illumination.
</div>
<div class="section-row" id="environment-light"></div>
<div class="section-row section-subtitle text fontsize">
Some creatures have extraordinary senses that allow them to perceive their environment.
</div>
<div class="section-row" id="environment-vision"></div>
<div class="section-row section-subtitle text fontsize">
Obstacles can provide cover during combat, making a target more difficult to harm.
</div>
<div class="section-row" id="environment-cover"></div>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal" id="modal" tabindex="-1">
<div class="modal-backdrop" id="modal-backdrop"></div>
<div class="modal-dialog modalsize">
<div class="section-container modal-container" id="modal-container">
<div class="section-title" id="modal-title">
Modal title<span class="float-right">Action</span>
</div>
<!-- Settings section -->
<div id="section-settings" class="section-container">
<div class="section-title">Settings</div>
<div class="section-content">
<div class="section-row section-subtitle text" id="modal-subtitle">
Subtitle
<div class="section-row section-subtitle text fontsize">
You can change below toggle for settings on this page.
</div>
<div class="item itemsize" title="Include Optional Rules">
<div class="item-icon"><label class="switch">
<input type="checkbox" id="optional-switch">
<span class="slider round"></span>
</label></div>
<div class="item-text-container text">
<div class="item-title">Include Optional Rules</div>
<div class="item-desc">Show/hide optional rules from DMG.</div>
</div>
</div>
<div class="section-row text">
<div id="modal-bullets">
<div class="item itemsize" title="Darkmode" hidden>
<div class="item-icon"><label class="switch">
<input type="checkbox" id="darkmode-switch">
<span class="slider round"></span>
</label></div>
<div class="item-text-container text">
<div class="item-title">Darkmode</div>
<div class="item-desc">Enable Darkmode</div>
</div>
</div>
<div class="section-row text" id="modal-reference">
</div>
</div>
</div>
<!-- Modal -->
<div class="modal" id="modal" tabindex="-1">
<div class="modal-backdrop" id="modal-backdrop"></div>
<div class="modal-dialog modalsize">
<div class="section-container modal-container" id="modal-container">
<div class="section-title" id="modal-title">
Modal title<span class="float-right">Action</span>
</div>
<div class="section-content">
<div class="section-row section-subtitle text" id="modal-subtitle">
Subtitle
</div>
<div class="section-row text">
<div id="modal-bullets">
</div>
</div>
<div class="section-row text" id="modal-reference">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Data -->
<script type="text/javascript" src="js/data_movement.js" charset="utf-8"></script>
<script type="text/javascript" src="js/data_action.js" charset="utf-8"></script>
8 changes: 4 additions & 4 deletions js/data_action.js
Original file line number Diff line number Diff line change
@@ -226,7 +226,7 @@ data_action = [
bullets: [
"When you describe an action not detailed elsewhere in the rules, the DM tells you whether that action is possible and what kind of roll you need to make, if any, to determine success or failure."
]
},
},
{
title: "Disarm*",
optional: "Optional rule",
@@ -238,7 +238,7 @@ data_action = [
"(Optional Rule):",
"The attacker makes an attack roll contested by the target's Strength (Athletics) check or Dexterity (Acrobatics) check.",
"If the attacker wins the contest, the attack causes no damage or other ill effect, but the defender drops the item.",
"The attacker has disadvantage on its attack roll if the target is holding the item with two or more hands.",
"The attacker has disadvantage on its attack roll if the target is holding the item with two or more hands.",
"The target has advantage on its ability check if it is larger than the attacking creature, or disadvantage if it is smaller."

]
@@ -256,7 +256,7 @@ data_action = [
"The creature attempting the overrun has advantage on this check if it is larger than the hostile creature, or disadvantage if it is smaller.",
"If the mover wins the contest, it can move through the hostile creature's space once this turn."
]
},
},
{
title: "Tumble*",
optional: "Optional rule",
@@ -299,5 +299,5 @@ data_action = [
"If it wins the contest, the smaller creature successfully moves into the target creature's space.",
"The smaller creature moves with the target and has advantage on attack rolls against it.",
]
}
}
]
8 changes: 4 additions & 4 deletions js/data_bonusaction.js
Original file line number Diff line number Diff line change
@@ -70,9 +70,9 @@ data_bonusaction = [
subtitle: "Roll for the effect",
description: "Roll the dice as per the description of the potion",
bullets: [
"(Optional Rule):",
"Normally Drinking potion counts as an <i>Action</i>.",
"Roll the dice as per the description of the potion."
"(Optional Rule):",
"Normally Drinking potion counts as an <i>Action</i>.",
"Roll the dice as per the description of the potion."
],
},
},
]