Line 55: | Line 55: | ||
} | } | ||
/* Style the tab */ | /* Style the tab */ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
/* Style the buttons inside the tab */ | /* Style the buttons inside the tab */ | ||
Line 88: | Line 83: | ||
padding: 6px 12px; | padding: 6px 12px; | ||
border: 1px solid #ccc; | border: 1px solid #ccc; | ||
− | border- | + | text-align: left; |
+ | } | ||
+ | .sponsor-pic{ | ||
+ | display: inline-block; | ||
+ | border: 1px solid #ccc; | ||
+ | width: 235px; | ||
+ | height: auto; | ||
+ | } | ||
+ | .sponsor-description{ | ||
+ | display: inline-block; | ||
+ | margin-right: 7.5%; | ||
+ | margin-left: 6px | ||
} | } | ||
Line 98: | Line 104: | ||
<div class="inner-border" style="border-top: none;"> | <div class="inner-border" style="border-top: none;"> | ||
− | <img src="https://static.igem.org/mediawiki/2018/7/7e/T--NUS_Singapore-A--Sponsor_header.jpg" class="sponsorship-header" | + | <img src="https://static.igem.org/mediawiki/2018/7/7e/T--NUS_Singapore-A--Sponsor_header.jpg" class="sponsorship-header"> |
Line 105: | Line 111: | ||
<span class="sponsors-overview-title" style="font-size: 30px">Gold sponsors</span> | <span class="sponsors-overview-title" style="font-size: 30px">Gold sponsors</span> | ||
<div class="sponsors-overview-rows"> | <div class="sponsors-overview-rows"> | ||
− | < | + | <button class="sponsor-boxes tablinks" onclick="openSponsor(event, 'Matlab1')"> Matlab 1</button> |
− | < | + | <button class="sponsor-boxes tablinks" onclick="openSponsor(event, 'Matlab2')"> Matlab 2</button> |
− | < | + | <button class="sponsor-boxes tablinks" onclick="openSponsor(event, 'Matlab3')"> Matlab 3</button> |
− | < | + | <button class="sponsor-boxes tablinks" onclick="openSponsor(event, 'Matlab4')"> Matlab 4</button> |
− | < | + | <button class="sponsor-boxes tablinks" onclick="openSponsor(event, 'Matlab5')"> Matlab 5</button> |
− | < | + | <button class="sponsor-boxes tablinks" onclick="openSponsor(event, 'Matlab6')"> Matlab 6</button> |
</div> | </div> | ||
− | + | <div> | |
− | <div | + | <div id="Matlab1" class="tabcontent"> |
− | + | <img src="https://static.igem.org/mediawiki/2018/7/7e/T--NUS_Singapore-A--Sponsor_header.jpg" class="sponsor-pic" alt="placeholder"> | |
− | < | + | <p class="sponsor-description">This is a placeholder.</p> |
− | < | + | |
</div> | </div> | ||
− | + | <div id="Matlab2" class="tabcontent"> | |
− | <div id=" | + | <h3>Matlab 2</h3> |
− | <h3> | + | <p>This is Matlab 2.</p> |
− | <p> | + | |
</div> | </div> | ||
− | + | <div id="Matlab3" class="tabcontent"> | |
− | <div id=" | + | <h3>Matlab 3</h3> |
− | <h3> | + | <p>This is Matlab 3.</p> |
− | <p> | + | </div> |
+ | <div id="Matlab4" class="tabcontent"> | ||
+ | <h3>Matlab 4</h3> | ||
+ | <p>This is Matlab 4.</p> | ||
+ | </div> | ||
+ | <div id="Matlab5" class="tabcontent"> | ||
+ | <h3>Matlab 5</h3> | ||
+ | <p>This is Matlab 5.</p> | ||
+ | </div> | ||
+ | <div id="Matlab6" class="tabcontent"> | ||
+ | <h3>Matlab 6</h3> | ||
+ | <p>This is Matlab 6.</p> | ||
</div> | </div> | ||
− | |||
− | |||
− | |||
− | |||
</div> | </div> | ||
Line 171: | Line 182: | ||
<script> | <script> | ||
− | function | + | function openSponsor(evt, sponsorName) { |
var i, tabcontent, tablinks; | var i, tabcontent, tablinks; | ||
tabcontent = document.getElementsByClassName("tabcontent"); | tabcontent = document.getElementsByClassName("tabcontent"); | ||
Line 181: | Line 192: | ||
tablinks[i].className = tablinks[i].className.replace(" active", ""); | tablinks[i].className = tablinks[i].className.replace(" active", ""); | ||
} | } | ||
− | document.getElementById( | + | document.getElementById(sponsorName).style.display = "block"; |
evt.currentTarget.className += " active"; | evt.currentTarget.className += " active"; | ||
} | } |
Revision as of 12:26, 12 August 2018
CONNECT WITH US