Note that there are some explanatory texts on larger screens.

plurals
  1. POJavascript show/hide links not working
    primarykey
    data
    text
    <p><a href="http://zadias.me/SVG/SVG2/Eisenhower/PresParkEisenhower.html" rel="nofollow">Click on Ike's</a> and you'll notice a div appear below the map. Try to click on the link. It's not working.</p> <p>I'm using this to show/hide the div's on click</p> <pre><code>function ikesClick() { filler.style.display='none'; FrontDeskDesc.style.display='none'; LoungeDesc.style.display='none'; StudyDesc.style.display='none'; IkesDesc.style.display='inline'; }; </code></pre> <p>If you view the page source, you can see the entirety of the Javascript there.</p> <p><strong>My question is, what do I do to make the link clickable?</strong> </p> <p>I'm almost certain this is happening because of the way it's displaying none/inline.</p> <p>You can observe the HTML here:</p> <pre><code>&lt;section id="roomInfo"&gt; &lt;section id="filler" style="display:inline"&gt; Hover over or select a colored area for details about individual rooms and locations in the library. &lt;/section&gt; &lt;section id="IkesDesc" style="display:none;"&gt; &lt;h1&gt;Ike's - Late Night Diner&lt;/h1&gt; &lt;p&gt; In the hub of President’s Park, Ike’s provides a late night dining option. Visit &lt;a href="dining.gmu.edu"&gt;dining.gmu.edu&lt;/a&gt; for hours of operation. &lt;/p&gt; &lt;img src="Ikes.JPG" style="max-width:500px; width:100%;" alt="Ike's Facade" /&gt; &lt;/section&gt; &lt;section id = "FrontDeskDesc" style="display:none;"&gt; Get your temporary keys and stuff here! &lt;/section&gt; &lt;section id ="LoungeDesc" style="display:none;"&gt; loungin' &lt;/section&gt; &lt;section id ="StudyDesc" style="display:none;"&gt; Studying for finals yo &lt;/section&gt; &lt;/section&gt;&lt;!--end room info--&gt; </code></pre> <p>The problem persists under the section "IkesDesc" where the link to dining.gmu.edu is.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload