Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!doctype html>
<html>
 <head>
  <title>Happy Pages</title>
  <link rel="stylesheet" href="style.css">
 </head>
 <body>
  <meta name="viewport"
   content="width=device-width, initial-scale=1">
  <style>
   .mySlides {
	display: none;
   }
  </style>
  <body>
   <center>
	<div class="w3-container">
	 <h2><b><font color="white">The Happy Pages!</font></b></h2>
	 <p><font color="white">Here you'll only find positivity!</font></p>
	 <p><i><font color="white">This page is still a work in progress...</font></i>
	 </p>
	 <img src="https://000687376.codepen.website/857409950_944096.gif">
	</div>
   </center>
   <center>
   <div class="w3-content w3-display-container">
	<div class="w3-display-container mySlides">
	 <img
	  src="https://triciascodes.neocities.org/92953098_245947089789009_9061450537139961856_n.jpg"
	  style="width:100%">
	 <div
	  class="w3-display-bottomcenter w3-large w3-container w3-padding-16 w3-purple">
	  Earth Angel - Slide 1 of 5
	 </div>
	</div>
	
	<div class="w3-display-container mySlides">
	 <img src="https://triciascodes.neocities.org/barelyvisiblemoon.png" style="width:100%">
	 <div
	  class="w3-display-bottomright w3-large w3-container w3-padding-16 w3-purple">
	  Poem - Slide 2 of 5
	 </div>
	</div>
	
	<div class="w3-display-container mySlides">
	 <img src="https://triciascodes.neocities.org/106261778_1341209569411882_2373478270571015021_o.jpg" style="width:100%">
	 <div
	  class="w3-display-topleft w3-large w3-container w3-padding-16 w3-purple">
	  Another Quote - Slide 3 of 5
	 </div>
	</div>
	
	<div class="w3-display-container mySlides">
	 <img src="https://triciascodes.neocities.org/happinessninja-welcome.gif" style="width:100%">
	 <div
	  class="w3-display-topright w3-large w3-container w3-padding-16 w3-purple">
	  The Happiness Ninja! - Slide 4 of 5
	 </div>
	</div>
	
	<div class="w3-display-container mySlides">
	 <img src="https://triciascodes.neocities.org/92721022_214786286466023_4268257942358196224_n.jpg" style="width:100%">
	 <div
	  class="w3-display-middle w3-large w3-container w3-padding-16 w3-blue">
	  What makes you happy? - Slide 5 of 5
	 </div>
	</div>
	</center>
	<center>
	<button class="w3-button w3-display-left w3-black"
	 onclick="plusDivs(-1)">❮ Previous</button>
	<button class="w3-button w3-display-right w3-black"
	 onclick="plusDivs(1)">Next ❯</button>
	</center>
   </div>
   
   <script>
	var slideIndex = 1;
	showDivs(slideIndex);
	
	function plusDivs(n) {
	 showDivs(slideIndex += n);
	}
	
	function showDivs(n) {
	 var i;
	 var x = document.getElementsByClassName(
	 "mySlides");
	 if (n > x.length) {
	  slideIndex = 1
	 }
	 if (n < 1) {
	  slideIndex = x.length
	 }
	 for (i = 0; i < x.length; i++) {
	  x[i].style.display = "none";
	 }
	 x[slideIndex - 1].style.display = "block";
	}
   </script>
   <br><br>
   <script>
	function show(shown, hidden) {
	 document.getElementById(shown).style.display =
	  'block';
	 document.getElementById(hidden).style.display =
	  'none';
	 return false;
	}
   </script>
   <center>
	<div id="Page1">
	 <h1><font color="purple">You're doing fine! Remember that you are loved.</font>
	 </h1>
	 <a href="#"
	  onclick="return show('Page2','Page1');"><button>A
	   Hidden Message For You!</button></a>
	</div>
	<br>
	<div id="Page2" style="display:none">
	 <h3>Hello I'm the happiness ninja!</h3>
	 <img
	  src="https://triciascodes.neocities.org/happinessninja-welcome.gif">
	 <a href="#"
	  onclick="return show('Page1','Page2');"><button>Go
	   back to previous message</button></a>
	</div>
   </center>
   <br><br><br><br>
   <h6><a href="http://bit.ly/triciascoding" target="_blank">Tricias Coding Portfolio</a></h6>
   <script src="script.js"></script>
  </body>
</html>
              
            
!

CSS

              
                body {
  background-image: url ("https://triciascodes.neocities.org/857409950_944096.gif");
  background-color: rgb(199, 155, 155);
font-family: Courier New;
font-size: 14;
  }

  button {
background-color: #cacaca;
color: purple;
border: solid;
font-family: monospace;
font-size: 16px;
}

img {
border: solid;
}

a {
color: black;
}
              
            
!

JS

              
                
              
            
!
999px

Console