Difference between revisions of "Team:Groningen/test"

Line 6: Line 6:
 
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
 
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
 
      
 
      
<div class="main-col">
+
<button onclick="myFunction('Demo1')" class="w3-button w3-block w3-left-align">
 
+
Open Section 1</button>
<button onclick="myFunc('Demo2')" class="w3-button w3-block w3-left-align w3-green">
+
Left aligned and full-width</button>
+
 
+
<div id="Demo2" class="w3-hide">
+
  <p>Lorem ipsum...</p>
+
</div>
+
  
 +
<div id="Demo1" class="w3-container w3-hide">
 +
  <p>Some text..</p>
 
</div>
 
</div>
  
Line 22: Line 18:
 
     if (x.className.indexOf("w3-show") == -1) {
 
     if (x.className.indexOf("w3-show") == -1) {
 
         x.className += " w3-show";
 
         x.className += " w3-show";
     } else {  
+
     } else {
 
         x.className = x.className.replace(" w3-show", "");
 
         x.className = x.className.replace(" w3-show", "");
 
     }
 
     }
 
}
 
}
</script>
+
</script>  
  
 
</body>
 
</body>
  
 
</html>
 
</html>

Revision as of 16:21, 14 October 2017


Some text..