Difference between revisions of "TestPage"

From WikiCorporates
Jump to navigation Jump to search
m
m
Line 4: Line 4:
 
<!--
 
<!--
 
https://www.w3schools.com/howto/howto_js_vertical_tabs.asp
 
https://www.w3schools.com/howto/howto_js_vertical_tabs.asp
 +
https://bobcravens.com/demos/vertical_tabs/script.html
 +
.tab button {
 +
  display: block;
 +
  background-color: inherit;
 +
  color: black;
 +
  padding: 22px 16px;
 +
  width: 100%;
 +
  border: none;
 +
  outline: none;
 +
  text-align: left;
 +
  cursor: pointer;
 +
  transition: 0.3s;
 
-->
 
-->
−
<div class="tab">
+
<div id="content">
−
  <button class="tablinks" onclick="openCity(event, 'London')">London</button>
+
  <div id="tab-container">
−
  <button class="tablinks" onclick="openCity(event, 'Paris')">Paris</button>
+
      <ul>
−
  <button class="tablinks" onclick="openCity(event, 'Tokyo')">Tokyo</button>
+
        <li>[http://bobcravens.com/demos/vertical_tabs/index.html Introduction]</li>
 +
        <li>[http://bobcravens.com/demos/vertical_tabs/html.html Html]</li>
 +
        <li>[http://bobcravens.com/demos/vertical_tabs/style.html CSS]</li>
 +
        <li>[http://bobcravens.com/demos/vertical_tabs/script.html JavaScript]</li>
 +
      </ul>
 +
  </div>
 +
  <div id="main-container">
 +
      <h1>Put your content here...</h1>
 +
  </div>
 
</div>
 
</div>
−
 
−
<div id="London" class="tabcontent">
 
−
  <h3>London</h3>
 
−
  <p>London is the capital city of England.</p>
 
−
</div>
 
−
 
−
<div id="Paris" class="tabcontent">
 
−
  <h3>Paris</h3>
 
−
  <p>Paris is the capital of France.</p>
 
−
</div>
 
−
 
−
<div id="Tokyo" class="tabcontent">
 
−
  <h3>Tokyo</h3>
 
−
  <p>Tokyo is the capital of Japan.</p>
 
−
</div>
 
−
 
  
 
[[Category:WikiPolitiks:Testing]]
 
[[Category:WikiPolitiks:Testing]]

Revision as of 01:37, 2 April 2019

  • This is a blank page used for testing stuff. It should be empty, unless there is a test in progress.
  • Bugs: expand/collapse is really slow in comparison to the original, but is prolly 'cos I'm using pure css, not JQuery.

Put your content here...