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

              
                <center>


<div class="tab">
<b><p style="color: white; text-shadow: 0 0 30px #FF0000, 0 0 15px #0000FF;"
><u id="firsttab" class="pagecolor pointer"> Ⅰ </u><u class="pointer" style="margin-left: 100px;" id="secondtab"> Ⅰ Ⅰ  </u><u class="pointer" style="margin-left: 90px;" id="thirdtab"> Ⅰ Ⅰ Ⅰ  </u></p></b>
</div>


<div class="firstmain" style="background-image: url('');" id="firstpage"></div>


<div class="secondmain hide" id="secondpage">
  <div style="display: grid; grid-template-columns: repeat(3, 1fr); grid-column-gap: 200px;">
    
    <div style="innerbox">
      <div style="float: left;">
        <div style="float:left;"><a><h2>Media</h2></a></div>
        <br>
        <div style="float:left;"><a href="https://www.youtube.com/"><p>Youtube</a><u class="pointer" id="youtubeboardlink"> ۞</u></p></div>
        <br>
        <div style="float:left;"><a href="https://4chan.org/"><p>4chan</a><u class="pointer" id="4chanboardlink"> ۞</u></p></div>
        <br>
        <div style="float:left;"><a href="https://www.reddit.com/"><p>Reddit</p></a></div>
        <br>
        <div style="float:left;"><a href="https://www.tumblr.com/dashboard"><p>Tumblr</p></a></div>
        <br>
        <div style="float:left;"><a href="https://twitter.com/twitter"><p>Twitter</p></a></div>
        <br>
        <div style="float:left;"><a href="https://neocities.org/dashboard"><p>Neocities</p></a></div>
      </div>
    </div>
    
    <div style="innerbox">
      <div style="float: left;">
        <div style="float:left;"><a><h2>Tools</h2></a></div>
        <br>
        <div style="float:left;"><a href="https://translate.google.com/"><p>Translate</p></a></div>
        <br>
        <div style="float:left;"><a href="https://www.google.com/maps"><p>Google maps</p></a></div>
        <br>
        <div style="float:left;"><a href="https://same.energy/"><p>Same.energy</p></a></div>
        <br>
        <div style="float:left;"><a href="https://photomosh.com/"><p>Photomosh</p></a></div>
        <br>
        <div style="float:left;"><a href="https://www.mathpapa.com/algebra-calculator.html"><p>Kalkulator</p></a></div>
        <br>
        <div style="float:left;"><a href="#"><p>Kinesisk</a><u class="pointer" id="kinalink"> ۞</u></p></div>
      </div>
    </div>
        
    <div style="innerbox">
      <div style="float: left;">
        <div style="float:left;"><a><h2>Coding</h2></a></div>
        <br>
        <div style="float:left;"><a href="https://htmlcolorcodes.com/"><p>HTML colors</p></a></div>
        <br>
        <div style="float:left;"><a href="https://medium.com/analytics-vidhya/python-roadmap-to-follow-in-2021-1f49715468ca"><p>Python roadmap</p></a></div>
        <br>
        <div style="float:left;"><a href="https://www.udemy.com/course/java-se-programming/learn/lecture/20434445#overview"><p>Udemy</p></a></div>
        <br>
        <div style="float:left;"><a href="https://codepen.io/pen/"><p>Codepen</p></a></div>
        <br>
        <div style="float:left;"><a href="https://www.w3schools.com/"><p>w3schools</a><u class="pointer" id="w3schoolsboardlink"> ۞</u></p></div>
      </div>
    </div>
  </div>





  <div style="display: grid; grid-template-columns: repeat(3, 1fr); grid-column-gap: 200px;">
    
    <div style="innerbox">
      <div style="float: left;">
        <div style="float:left;"><a><h2>News</h2></a></div>
        <br>
        <div style="float:left;"><a href="https://www.aftenposten.no/"><p>Aftenposten</p></a></div>
        <br>
        <div style="float:left;"><a href="https://e24.no/"><p>E24</p></a></div>
        <br>
        <div style="float:left;"><a href="https://www.euronews.com/"><p>Euronews</p></a></div>
        <br>
        <div style="float:left;"><a href="https://edition.cnn.com/"><p>CNN</p></a></div>
      </div>
    </div>
    
    <div style="innerbox">
      <div style="float: left;">
        <div style="float:left;"><a><h2>Messages</h2></a></div>
        <br>
        <div style="float:left;"><a href="https://outlook.live.com"><p>Outlook</p></a></div>
        <br>
        <div style="float:left;"><a><p href="https://www.facebook.com/">Messanger</p></a></div>
      </div>
    </div>
        
    <div style="innerbox">
      <div style="float: left;">
      <div style="float:left;"><a><h2>Torrent</h2></a></div>
      <br>
      <div style="float:left;"><a href="https://boards.4chan.org/t/"><p>/t/</p></a></div>
      
      </div>
    </div>
  </div>



</div>

<div class="thirdmain hide" id="thirdpage">

  <div style="display: grid; grid-template-columns: repeat(3, 1fr)">

    <div style="background-color: transparent;">
    <h2>Python</h2>
    <div style="display: grid; grid-template-columns: repeat(2, 1fr);">
    <p>OOP concepts</p>
    <p style="color: red;">Classes</p>
    <p style="color: red;">Dunder</p>
    <p style="color: red;">Methods</p>
    <p>Generators</p>
    <p style="color: red;">Inheretance</p>
    <p style="color: red;">Functional programming</p>
    <p style="color: red;">Lambda functions</p>
    <p>Built-in functions</p>
    <p>Decorators</p>
    <p>Closures</p>
    <p>Regular expressions</p>
    </div>
    </div>
    

    <div style="background-color: transparent;" class="span3">
    <h2>Tegne</h2>
    <p>Følg bok</p>
    <p>Se Alfonso</p>
    <p>Lag karakterer</p>
    </div>

    <div style="background-color: transparent;">
    <h2>Trene</h2>
    <p>Følg program</p>
    <p>Spise</p>
    </div>
    
    <div style="background-color: transparent;">
    <h2>Annet</h2>
    <p>Melde opp til teoriprøve</p>
    <p>Skjekke email for fitness</p>
    <p>Spise</p>
    </div>
    
    <div style="background-color: transparent;">
    <h2>Muligens</h2>
    <p>Se Galaxy Express/Macross Plus</p>
    <p>MIW</p>
    <a href='#'><p>Youtube</a><u id="youtubeideerboardlink" class="pointer"> ۞</u></p>
    <p>Terraria/Victoria</p>


    
    </div>
  </div>
  </div>





<!-- BOARDS -->
<div class="board hide" id="4chanboard">
  <div style="display:grid; grid-template-columns: repeat(3, 1fr); grid-gap: 30px; font-size: 20px;">
    <a href="https://boards.4chan.org/int/"><p>/int/</p></a>
    <a href="https://boards.4chan.org/ic/"><p>/ic/</p></a>
    <a href="https://boards.4chan.org/fit/"><p>/fit/</p></a>
    <a href="https://boards.4chan.org/x/"><p>/x/</p></a>
    <a href="https://boards.4chan.org/g/"><p>/g/</p></a>
    <a href="https://boards.4chan.org/wsg/"><p>/wsg/</p></a>
    <a href="https://boards.4chan.org/wg/"><p>/wg/</p></a>
    <a href="https://boards.4chan.org/w/"><p>/w/</p></a>
    <a href="https://boards.4chan.org/c/"><p>/c/</p></a>
    <a href="https://boards.4chan.org/his/"><p>/his/</p></a>
    <a href="https://boards.4chan.org/r9k/"><p>/r9k/</p></a>
    <a href="https://boards.4chan.org/pol/"><p>/pol/</p></a>
  </div>
</div>

<div class="board hide" id="youtubeboard" style="font-size: 20px;">
  <a href="https://www.youtube.com/feed/subscriptions"><p>Feed</p></a>
    <br>
  <a href="https://www.youtube.com/playlist?list=LL0gdcIw764vWIUDeTTUvehQ"><p>Likes</p></a>
    <br>
  <a href="https://www.youtube.com/feed/channels"><p>Subscribers</p></a>
</div>




<div class="board hide" id="youtubeideerboard" style="font-size: 20px;">
<h2 style="color: #CFCFCF;">Ideer:</h2>
<p>Stemme fra youtuberen: StoryRetell</p>
</div>

<div class="board hide" id="w3schoolsboard" style="font-size: 20px;">
  <a href="https://www.w3schools.com/html/default.asp"><p>HTML</p></a>
    <br>
  <a href="https://www.w3schools.com/css/default.asp"><p>CSS</p></a>
    <br>
  <a href="https://www.w3schools.com/js/default.asp"><p>JavaScript</p></a>
  <br>
  <a href="https://www.w3schools.com/python/default.asp"><p>Python</p></a>
</div>

<div class="board hide" id="kinaboard" style="font-size: 20px; padding: 10px;">
<h3 style="color: white;">Media</h3>
<div style="display:grid; grid-template-columns: repeat(2, 1fr); grid-gap: 50px;">
<a href="https://youku.com/"><p>Youku</p></a>
  
  <a href="https://weibo.com/overseas"><p>Weibo</p></a>
</div>

<br>
<h3 style="color: white;">Ressurser</h3>
<div style="display:grid; grid-template-columns: repeat(2, 1fr); grid-gap: 5px;">


</div>
</div>




<!-- Buttons -->
<div style="margin-top: 10px;">

  <div name="searching">
    <div style="display: grid; grid-template-columns: repeat(6, 1fr); grid-gap: 2px; width: 450px; height: 60px;">
    <h1 id="googlechain" class="pointer" style="background-color: black; border: 3px solid red; height: 25px; width: 30px; font-size: 20px; color: #F64002; 
    box-shadow: 0 0 15px #FF0000, 0 0 15px #0000FF; text-shadow: 0 0 15px #FF0000, 0 0 15px #0000FF;">G</h1>
    
    <h1 id="mapsearch" class="pointer" style="background-color: black; border: 3px solid red; height: 25px; width: 30px; font-size: 20px; color: #F64002; box-shadow: 0 0 15px #FF0000, 0 0 15px #0000FF;
    text-shadow: 0 0 15px #FF0000, 0 0 15px #0000FF;">Ⅿ</h1>
    
    <h1 id="imagesearch" class="pointer" style="background-color: black; border: 3px solid red; height: 25px; width: 30px; font-size: 20px; color: #F64002; box-shadow: 0 0 15px #FF0000, 0 0 15px #0000FF;
    text-shadow: 0 0 15px #FF0000, 0 0 15px #0000FF;">P</h1>
    
    <h1 id="translatesearch" class="pointer" style="background-color: black; border: 3px solid red; height: 25px; width: 30px; font-size: 20px; color: #F64002; box-shadow: 0 0 15px #FF0000, 0 0 15px #0000FF;
    text-shadow: 0 0 15px #FF0000, 0 0 15px #0000FF;">T</h1>
    
    <h1 id="youtubebar" class="pointer" style="background-color: black; border: 3px solid red; height: 25px; width: 30px; font-size: 20px; color: #F64002; box-shadow: 0 0 15px #FF0000, 0 0 15px #0000FF;
    text-shadow: 0 0 15px #FF0000, 0 0 15px #0000FF;">▶</h1>
    
    <h1 id="sameenergysearch" class="pointer" style="background-color: black; border: 3px solid red; height: 25px; width: 30px; font-size: 20px; color: #F64002; box-shadow: 0 0 15px #FF0000, 0 0 15px #0000FF;
    text-shadow: 0 0 15px #FF0000, 0 0 15px #0000FF;">ϟ</h1>

  </div>

</div>





  <form id="tfnewsearch" method="get" action="http://www.google.com/search" style="margin: 10px;">
    <input id="bar" type="text" class="tftextinput" name="q" size="40%" maxlength="120" 
    style="background-color: rgba(5,4,2,0.5); border: 3px solid #F64002; height: 40px; font-size: 20px; width: 50%; text-shadow: 2px 2px 8px black;box-shadow: 0 0 15px #FF0000, 0 0 15px #0000FF;
    color: #F64002;
 text-shadow: 0 0 30px #FF0000, 0 0 15px #0000FF;" 
    placeholder="Google">
  </form>


</center>




              
            
!

CSS

              
                body {background-color: black; color: white; font-family: "Times New Roman", sans-serif;
background-image: url(""); background-size: cover; background-repeat:no-repeat; background-attachment: fixed;}


.tab {
  width: 50%;
  background-color: transparent;

  }
  
.thirdmain {
 width: 50%;
 height: 500px;
 background-color: #030027;
 border: 3px solid #F64002;
 padding: 10px;
 box-shadow: 0 0 15px #FF0000, 0 0 15px #0000FF;
}

.secondmain {
 width: 50%;
 height: 500px;
 background-color: #030027;
 border: 3px solid #F64002;
 padding: 5px;
 box-shadow: 0 0 15px #FF0000, 0 0 15px #0000FF;
}

.firstmain {
 width: 50%;
 height: 500px;
 background-color: #302821;
 border: 3px solid #F64002;
 background-size: cover; 
 background-repeat:no-repeat;
 box-shadow: 0 0 15px #FF0000, 0 0 15px #0000FF; }

.firstmainbackgroundimage {
   background-image: url('https://c4.wallpaperflare.com/wallpaper/142/795/729/neon-genesis-evangelion-mech-eva-unit-01-ikari-shinji-blue-hd-wallpaper-preview.jpg');}




}

button {
  background-color: transparent;
  border: 3px solid blue;
  color: black;
  width: 130px;
  margin-right: 30px;
  height: 40px;
  background-color: rgba(5,4,2,0.5);
  font-size: 25px;
  text-shadow: 2px 2px 8px black;
  box-shadow: 2px 2px 8px black;
  }
  
  p {
   color: #CFCFCF; 
  margin-top: 0px;
  text-shadow: 2px 2px 8px black;
  }

  p:hover {
    color: #F64002; 
  margin-top: 0px;
  text-shadow: 2px 2px 8px black;
    
  }
  
  
  
u {
    text-decoration: none;  
}

.hide {display: none;}

h2 {
 color: #C50000; 
 margin-bottom: 10px;
 text-shadow: 2px 2px 8px black;
}

.innerbox {
  background-color: pink;
  border: 5px solid white;
  
  
  
  }

a {
  text-decoration: none;
  color: #CFCFCF;}
  
a:hover {
  color: #F64002; 
  margin-top: 0px;
  text-shadow: 2px 2px 8px black;
}


  
.span3 {
 grid-template-columns: 2/5
  
}

.board {
 background-color: rgba(5,4,2,0.5); 
 flex: left;
 position: absolute;
 top: 0;
 bottom: 0;
 left: 0;
 padding: 10px;
}

.color {
 color: red;
 text-shadow: 0 0 30px #FF0000, 0 0 15px #0000FF;
}

.underline {
 border-bottom: 1px solid white;
 width: 200px;
}

::placeholder {
  color: #F64002;
}

.pagecolor {
 color: #F64002;
 text-shadow: 0 0 30px #FF0000, 0 0 15px #0000FF;
}

.pointer:hover{
 cursor: pointer; 
}
              
            
!

JS

              
                  let YT = document.getElementById('youtubebar')
  let bar = document.getElementById('bar')
  let youtubechain = 'https://www.youtube.com/results'
  let form = document.getElementById('tfnewsearch')
  let googlechain = document.getElementById('googlechain')
  let samenergysearch = document.getElementById('sameenergysearcg')
  let imagesearch = document.getElementById('imagesearch')
  let mapsearch = document.getElementById('mapsearch')
  let translatesearch = document.getElementById('translatesearch')
  
  YT.addEventListener('click', function() {
   bar.placeholder = 'Youtube';
   form.action = 'https://www.youtube.com/results'})
 
  googlechain.addEventListener('click', function() { 
  bar.placeholder = 'Google';
  form.action = 'http://www.google.com/search'})
 
  sameenergysearch.addEventListener('click', function() {
    bar.placeholder = 'Same.Energy'
    form.action = 'https://same.energy/search?q='})
 
  imagesearch.addEventListener('click', function() {
   bar.placeholder ='Google Images'
   form.action = 'http://images.google.com/images'
  })
 
  mapsearch.addEventListener('click', function() {
   bar.placeholder ='Google Maps'
   form.action = 'https://www.google.com/maps?q='
  })
  
  translatesearch.addEventListener('click', function() {
   bar.placeholder = 'Google Translate'
   form.action = 'https://translate.google.com/?sl=en&tl=no&text='
  })
  
  
  let firstpage = document.getElementById('firstpage')

  let firsttab = document.getElementById('firsttab')

  firsttab.addEventListener('click', function() { 
    firstpage.classList.remove('hide')
    secondpage.classList.add('hide')
    thirdpage.classList.add('hide')
    
    firsttab.classList.add('pagecolor')
    secondtab.classList.remove('pagecolor')
    thirdtab.classList.remove('pagecolor')})
    
  let secondpage = document.getElementById('secondpage')

  let secondtab = document.getElementById('secondtab')

  secondtab.addEventListener('click', function() {
    firstpage.classList.add('hide')
    secondpage.classList.remove('hide')
    thirdpage.classList.add('hide')
    
    firsttab.classList.remove('pagecolor')
    secondtab.classList.add('pagecolor')
    thirdtab.classList.remove('pagecolor')})
  
  let thirdpage = document.getElementById('thirdpage')

  let thirdtab = document.getElementById('thirdtab')

  thirdtab.addEventListener('click', function() { 
    firstpage.classList.add('hide')
    secondpage.classList.add('hide')
    thirdpage.classList.remove('hide')
    
    firsttab.classList.remove('pagecolor')
    secondtab.classList.remove('pagecolor')
    thirdtab.classList.add('pagecolor')})
  

  
  
  
  
  
  
  
  let chanboard = document.getElementById('4chanboard')
  let chanlink = document.getElementById('4chanboardlink')
  chanlink.addEventListener('click', function() {
  
    
  chanlink.classList.toggle('color')
  chanboard.classList.toggle('hide')
  
  
    youtubeideerboard.classList.add('hide')
    youtubeideerboardlink.classList.remove('color')
    youtubeboard.classList.add('hide')
    youtubelink.classList.remove('color')
    youtubeboard.classList.add('hide')
    youtubelink.classList.remove('color')
    kinaboard.classList.add('hide')
    kinalink.classList.remove('color')
  })
  
  
  
  let youtubeboard = document.getElementById('youtubeboard')
  let youtubelink = document.getElementById('youtubeboardlink')
  youtubelink.addEventListener('click', function() {
  
    
  youtubelink.classList.toggle('color')
  youtubeboard.classList.toggle('hide')
  
    youtubeideerboard.classList.add('hide')
    youtubeideerboardlink.classList.remove('color')
    chanboard.classList.add('hide')
    chanlink.classList.remove('color')
    w3schoolsboard.classList.add('hide')
    w3schoolsboardlink.classList.remove('color')
    kinaboard.classList.add('hide')
    kinalink.classList.remove('color')
  })
  
  
  //youtubeideer
  let youtubeideerboard = document.getElementById('youtubeideerboard')
  let youtubeideerboardlink = document.getElementById('youtubeideerboardlink')
  console.log(youtubeideerboardlink)
  console.log(youtubeideerboard)
  
    
  
  
  youtubeideerboardlink.addEventListener('click', function() {
  youtubeideerboard.classList.toggle('hide')
  youtubeideerboardlink.classList.toggle('color')
  
  w3schoolsboard.classList.add('hide')
    w3schoolsboardlink.classList.remove('color')
    chanboard.classList.add('hide')
    chanlink.classList.remove('color')
    youtubeboard.classList.add('hide')
    youtubelink.classList.remove('color')
    kinaboard.classList.add('hide')
    kinalink.classList.remove('color')
  })
  
  //w3schools
  let w3schoolsboard = document.getElementById('w3schoolsboard')
  let w3schoolsboardlink = document.getElementById('w3schoolsboardlink')
  
  w3schoolsboardlink.addEventListener('click', function() {
    w3schoolsboard.classList.toggle('hide')
    w3schoolsboardlink.classList.toggle('color')
    
    youtubeideerboard.classList.add('hide')
    youtubeideerboardlink.classList.remove('color')
    chanboard.classList.add('hide')
    chanlink.classList.remove('color')
    youtubeboard.classList.add('hide')
    youtubelink.classList.remove('color')
    kinaboard.classList.add('hide')
    kinalink.classList.remove('color')
  })

  
  //kinaboard
  let kinialink = document.getElementById('kinalink')
  let kinaboard = document.getElementById('kinaboard')
  
  kinalink.addEventListener('click', function() {
    kinaboard.classList.toggle('hide')
    kinalink.classList.toggle('color')
    
    youtubeideerboard.classList.add('hide')
    youtubeideerboardlink.classList.remove('color')
    chanboard.classList.add('hide')
    chanlink.classList.remove('color')
    youtubeboard.classList.add('hide')
    youtubelink.classList.remove('color')
    w3schoolsboard.classList.add('hide')
    w3schoolsboardlink.classList.remove('color')
    })
    
    
    
    
    

    
    let listBG = 
    ['url(https://64.media.tumblr.com/13c0bc6550c848055a96d197a44a3c28/tumblr_o9b9ikePpT1rjxyrgo10_r1_400.gifv)',
    'url(https://24.media.tumblr.com/5eb1b3b97612fdff7b332591360ec0be/tumblr_n0ne57gTyN1rb06tgo1_500.gif)',
    'url(https://i.pinimg.com/originals/0a/51/2b/0a512be13bcdf6178e72b67e2e8225d1.gif)',
    'url(https://schism.org/wp-content/uploads/2018/07/tumblr_pcn8sdMP1L1sioxeco2_500.gif)']
    console.log(listBG)
    
    
    
    //let 
    
  

  window.addEventListener('load', (event) => {
  let number = Math.floor(Math.random() * 4);     // returns a random integer from 0 to 9
    console.log(number)  
      
      firstpage.style.backgroundImage = listBG[number] 
      console.log(firstpage.style.backgroundImage)
});
              
            
!
999px

Console