• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Hide Advanced Details

Status
Not open for further replies.
Currently once you click on the button, you can only refresh to hide the advanced details of a model. I suggest there be a button to hide it once it is shown.
 

Attachments

  • Screenshot_2014-09-05-00-21-06-11801412417.png
    Screenshot_2014-09-05-00-21-06-11801412417.png
    66.9 KB · Views: 82
  • Screenshot_2014-09-05-00-16-32-11871173093.png
    Screenshot_2014-09-05-00-16-32-11871173093.png
    85.9 KB · Views: 74

Deleted member 219079

D

Deleted member 219079

HTML:
<td class="alt1">
		<a href="http://www.hiveworkshop.com/forums/models-530/templar-plague-doctor-256875/#" style="cursor: pointer; font-weight: bold; font-size: 14px; text-align: center" onclick="this.style.display='none'; document.getElementById('extrad').style.display=''; return false">Click here to display advanced details.</a>
		<div style="display: none" id="extrad">
		<dl>
			...
		</dl>
		</div>
	</td>

into

HTML:
<td class="alt1">
                  <input type="checkbox" id="toggle">
                  <label for="toggle" class="link hideontoggle">Click here to display advanced details.</label><label for="toggle" class="link toggled">Click here to hide advanced details.</label>
                  <div class="toggled">
                     <span class="toggled" style="display:block; margin-top:10px"></span>
                     <div style="display: none" id="extrad">
		          ...
                  </div>
               </td>

in css
HTML:
input[type=checkbox]:checked ~ .toggled {
	display: none;
}
input[type=checkbox]:checked ~ .hideontoggle { 
	display: block;
}
.hideontoggle{
	display: none;
}

that's a method i used in a school work. but dont take it for granted, i believe it needs some fixing, but the mechanic works i guarantee it.
 
Last edited by a moderator:
Status
Not open for further replies.
Top