Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

Save Automatically?

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

              
                <div class="hero-image">
  <div class="hero-text" id="home">
    <h1>I'm Jeremiah Rodriguez</h1>
    <p>And I'm a computer science student</p>
  </div>
</div>

<div id="navbar">
  <a href="#home">Home</a>
  <a href="#projects">My Projects</a>
  <a href="#aboutMe">About Me</a>
</div>
<div class="content">

  <button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>

  <div class="container">

    <!-- Full-width images with number text -->
    <div class="mySlides">
      <div class="numbertext" id="projects">1 / 4</div>
      <img src="http://res.cloudinary.com/sktjeremiah/image/upload/c_scale,h_400,w_600/v1516999343/Screen_Shot_2018-01-26_at_12.25.28_PM_p7lziv.png" class ="image" >
    </div>

    <div class="mySlides">
      <div class="numbertext">2 / 4</div>
      <img src="http://res.cloudinary.com/sktjeremiah/image/upload/c_scale,h_400,w_600/v1516999349/Screen_Shot_2018-01-26_at_12.24.16_PM_aicdqv.png" class ="image" >
    </div>

    <div class="mySlides">
      <div class="numbertext">3 / 4</div>
      <img src="http://res.cloudinary.com/sktjeremiah/image/upload/c_scale,h_400,w_600/v1526066223/Screen_Shot_2018-05-11_at_12.16.17_PM_iz8ffs.png" class ="image">
    </div>

    <div class="mySlides">
      <div class="numbertext">4 / 4</div>
      <img src="http://res.cloudinary.com/sktjeremiah/image/upload/c_scale,h_400,w_600/v1526066554/Screen_Shot_2018-05-11_at_12.22.16_PM_bnjhrz.png" class="image">
    </div>

    <!-- Next and previous buttons -->
    <a class="prev" onclick="plusSlides(-1)">&#10094;</a>
    <a class="next" onclick="plusSlides(1)">&#10095;</a>

    <!-- Image text -->
    <div class="caption-container">
      <p id="caption"></p>
    </div>

    <!-- Thumbnail images -->
    <div class="row">
      <div class="column">
        <img class="demo cursor" src="http://res.cloudinary.com/sktjeremiah/image/upload/c_scale,h_400,w_600/v1516999343/Screen_Shot_2018-01-26_at_12.25.28_PM_p7lziv.png" style="width:100%" onclick="currentSlide(1)" alt="Newspage App">
      </div>
      <div class="column">
        <img class="demo cursor" src="http://res.cloudinary.com/sktjeremiah/image/upload/c_scale,h_400,w_600/v1516999349/Screen_Shot_2018-01-26_at_12.24.16_PM_aicdqv.png" style="width:100%" onclick="currentSlide(2)" alt="NBA Mvp app">
      </div>
      <div class="column">
        <img class="demo cursor" src="http://res.cloudinary.com/sktjeremiah/image/upload/c_scale,h_400,w_600/v1526066223/Screen_Shot_2018-05-11_at_12.16.17_PM_iz8ffs.png" style="width:100%" onclick="currentSlide(3)" alt="Random League Champ Generator">
      </div>
      <div class="column">
        <img class="demo cursor" src="http://res.cloudinary.com/sktjeremiah/image/upload/c_scale,h_400,w_600/v1526066554/Screen_Shot_2018-05-11_at_12.22.16_PM_bnjhrz.png" style="width:100%" onclick="currentSlide(4)" alt="Winter Recap Webpage">
      </div>

    </div>
  </div>
  <div class ="webpages" id ="news">
    <h2>Newspage App: https://codepen.io/SKT_Jeremiah/full/vWPaJV/
    
    </h2>
    <p class ="detail">This newspage app provides 3 videos that have been embedded onto the page about recent news stories from groups like CNN and Washington Post. There are also two twitter feeds that are on the page that are always up to date and you can scroll through them.</p>
    
  </div>
  <div class ="webpages" id = "nba">
    <h2>NBA MVP App: https://codepen.io/SKT_Jeremiah/full/KyXzem/</h2>
    <p class = "detail">This next app lets you enter a year from 1955 to 2016 and tells you who the MVP was in the NBA for any year that you put. This app takes in the user input which is the number you choose in the bar and then prints it out in the HTML</p>
  </div>
  <div class="webpages" id ="random">
    <h2>Random League Champ Generator App: https://codepen.io/SKT_Jeremiah/pen/vRdEJx </h2>
    <p class ="detail">This app gives the user a random champion from the game League of Legends. The way that this app works is that there is a random number generator function in the javascript in which we have a minimum and maximum number. We have a champion assigned to the numbers between the minimum and maximum numbers and whenever one of those numbers gets chosen, the picture and name of the champion will be output and go on the HTML.</p>
    <div>
      <div class="webpages" id="winter">
        <h2>Highlights of Winter Webpage: https://codepen.io/SKT_Jeremiah/full/KZZbzO/</h2>
        <p class="detail">This webpage shows highlights of my winter for 2017 and includes html elements like ids, classes, borders, and images. The activities that i talked about on this webpage can give you an idea of what I like to do for fun so please check it out</p>
      
    
       
</div>
      <div id="aboutMe">
        <h1>About Me:</h1>
          <h3>I am a Junior at San Leandro High School and I'm currently in Keithley's intro to computer science class. I plan on taking either his AP Comp Sci A class or his AP Comp Sci Principles class next year. This is my first year coding but I hope to major in Computer Science in College at San Jose State University.</h3>
        <h1>Email: RodriguezJeremiah7@gmail.com</h1>
        <h1>Phone Number: (510)766-5475</h1> 
      </div>
      
  <button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>

  
      
              
            
!

CSS

              
                body,
html {
  height: 100%;
  background:radial-gradient(brown,black);
  color:white;
}

/* The hero image */
.hero-image {
  /* The image used */
  background-image: url(https://res.cloudinary.com/sktjeremiah/image/upload/v1527098601/32913008_2012308065467425_34430077047406592_n_kyuejf.jpg);

  /* Set a specific height */
  height: 90%;

  /* Position and center the image to scale nicely on all screens */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

/* Place text in the middle of the image */
.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

#navbar {
  overflow: hidden;
  background-color: #333;
}
#navbar a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px;
  text-decoration: none;
  
}
#navbar a.active {
  background-color: #4caf50;
  color: white;
}

.sticky {
  position: fixed;
  top: 0;
  width: 100%;
}

.content {
  padding: 14px;
}

.sticky + .content {
  padding-top: 60px;
}

* {
  box-sizing: border-box;
}

/* Position the image container (needed to position the left and right arrows) */
.container {
  position: relative;
}

/* Hide the images by default */
.mySlides {
  display: none;
  background:;
}

/* Add a pointer when hovering over the thumbnail images */
.cursor {
  cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 40%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: black;
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Container for image text */
.caption-container {
  text-align: center;
  background-color: #222;
  padding: 2px 16px;
  color: white;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Six columns side by side */
.column {
  float: left;
  width: 25%;
}

/* Add a transparency effect for thumnbail images */
.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}

/* Style the header: fixed position (always stay at the top) */
.header {
  position: fixed;
  top: 0;
  z-index: 1;
  width: 100%;
  background-color: #f1f1f1;
}

#myBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: red; /* Set a background color */
  color: white; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Some padding */
  border-radius: 10px; /* Rounded corners */
  font-size: 18px; /* Increase font size */
}

#myBtn:hover {
  background-color: #555; /* Add a dark-grey background on hover */
}


.image{
  padding-left:375px;
}
.detail{
  border:5px outset #FFA17F
}
a:hover{
  background:grey;
  
  
}
#aboutMe{
  padding:30px;
  margin:0 auto;
  
}
              
            
!

JS

              
                window.onscroll = function() {
  myFunction();
};
var navbar = document.getElementById("navbar");
var sticky = navbar.offsetTop;

function myFunction() {
  if (window.pageYOffset >= sticky) {
    navbar.classList.add("sticky");
  } else {
    navbar.classList.remove("sticky");
  }
}

var slideIndex = 1;
showSlides(slideIndex);

// Next/previous controls
function plusSlides(n) {
  showSlides((slideIndex += n));
}

// Thumbnail image controls
function currentSlide(n) {
  showSlides((slideIndex = n));
}

function showSlides(n) {
  var i;
  var slides = document.getElementsByClassName("mySlides");
  var dots = document.getElementsByClassName("demo");
  var captionText = document.getElementById("caption");
  if (n > slides.length) {
    slideIndex = 1;
  }
  if (n < 1) {
    slideIndex = slides.length;
  }
  for (i = 0; i < slides.length; i++) {
    slides[i].style.display = "none";
  }
  for (i = 0; i < dots.length; i++) {
    dots[i].className = dots[i].className.replace(" active", "");
  }
  slides[slideIndex - 1].style.display = "block";
  dots[slideIndex - 1].className += " active";
  captionText.innerHTML = dots[slideIndex - 1].alt;
}

window.onscroll = function() {
  myFunction();
};

function myFunction() {
  var winScroll = document.body.scrollTop || document.documentElement.scrollTop;
  var height =
    document.documentElement.scrollHeight -
    document.documentElement.clientHeight;
  var scrolled = winScroll / height * 100;
  document.getElementById("myBar").style.width = scrolled + "%";
}

window.onscroll = function() {
  scrollFunction();
};

function scrollFunction() {
  if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
    document.getElementById("myBtn").style.display = "block";
  } else {
    document.getElementById("myBtn").style.display = "none";
  }
}

// When the user clicks on the button, scroll to the top of the document

function topFunction() {
    document.body.scrollTop = 0; 
    document.documentElement.scrollTop = 0; 
}
              
            
!
999px

Console