Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Customizing 5e OGL Sheet

Got an odd issue going on now. I am wanting to use the OGL version but modify it to include some "handouts" for my players using the radio button input. Unfortunately, it is not working as expected. Created a 2nd line of radio buttons labeled "Movement", "Combat", "Spellcasting", and "Conditions". You must first click "Handouts" (on original line) to get the 2nd line to show up. Then click an option in 2nd line to get the specific handouts. Problem is when you click on the 2nd line, everything disappears even though I added <div> to create the page. Maybe someone could guide me in the right direction.
Theodore S. said: Got an odd issue going on now. I am wanting to use the OGL version but modify it to include some "handouts" for my players using the radio button input. Unfortunately, it is not working as expected. Created a 2nd line of radio buttons labeled "Movement", "Combat", "Spellcasting", and "Conditions". You must first click "Handouts" (on original line) to get the 2nd line to show up. Then click an option in 2nd line to get the specific handouts. Problem is when you click on the 2nd line, everything disappears even though I added <div> to create the page. Maybe someone could guide me in the right direction. Sad that no one is able to assist
1501759369
Ziechael
Forum Champion
Sheet Author
API Scripter
Often the best way to get help with sheet code is to supply the existing section of code giving you trouble, there are some very helpful people out there who will be able to help you with that information.
As the code is super long, I have included the link to my Github: <a href="https://github.com/tstory30/5e-OGL-Custom" rel="nofollow">https://github.com/tstory30/5e-OGL-Custom</a> I did find out that I broke the whole sheet currently but will be updating it as I find issues.
1501790176
Kirsty
Pro
Sheet Author
I'm not exactly sure what you're trying to do, but here's a code snippet showing how to make tabs: html &lt;div class="tabs"&gt; &lt;input type="radio" class="sheet-tab sheet-tab1" name="attr_core-tab" value="1" title="Movement" checked="checked"/&gt;&nbsp; &lt;span class="sheet-tab sheet-tab1" style='line-height: 20px;'&gt;Movement&lt;/span&gt; &lt;input type="radio" class="sheet-tab sheet-tab2" name="attr_core-tab" value="2" title="Combat" /&gt;&nbsp; &lt;span class="sheet-tab sheet-tab2" style='line-height: 20px;'&gt;Combat&lt;/span&gt; &lt;input type="radio" class="sheet-tab sheet-tab3" name="attr_core-tab" value="3" title="Spellcasting" /&gt;&nbsp; &lt;span class="sheet-tab sheet-tab3" style='line-height: 20px;'&gt;Spellcasting&lt;/span&gt; &lt;input type="radio" class="sheet-tab sheet-tab3" name="attr_core-tab" value="4" title="Conditions" /&gt;&nbsp; &lt;span class="sheet-tab sheet-tab4" style='line-height: 20px;'&gt;Conditions&lt;/span&gt; &lt;div class="sheet-section sheet-section-1"&gt; ...stuff &lt;/div&gt; &lt;div class="sheet-section sheet-section-2"&gt; ...stuff &lt;/div&gt; &lt;div class="sheet-section sheet-section-3"&gt; ...stuff &lt;/div&gt; &lt;div class="sheet-section sheet-section-4"&gt; ...stuff &lt;/div&gt; &lt;/div&gt; CSS .charsheet div[class^="sheet-section"] { &nbsp; &nbsp; display: none; &nbsp; &nbsp; padding: 10px; } .charsheet input.sheet-tab1:checked ~ div.sheet-section-1, .charsheet input.sheet-tab2:checked ~ div.sheet-section-2, .charsheet input.sheet-tab3:checked ~ div.sheet-section-3, .charsheet input.sheet-tab4:checked ~ div.sheet-section-4 { &nbsp; &nbsp; display: block; } .charsheet input.sheet-tab99:checked ~ div[class^="sheet-section"] { &nbsp; &nbsp; display: block; }
That worked Kristy.
1501931451
Kirsty
Pro
Sheet Author
Glad to hear it!