123

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<!-- Navbar Section -->

<nav id="navbar"><img id="metru_nui_map" src="https://img00.deviantart.net/f268/i/2017/139/d/4/metru_nui_map_24x36_by_josephkarins-db9sh98.png"><header>Order of Mata Nui</header>
  <ul>
    <a class="nav-link" href="#introduction"><li>Introduction</li></a>
    <a class="nav-link" href="#nuhvok_history"><li>Nuhvok History</li></a>
    <a class="nav-link" href="#nuhvok's_capabilities"><li>Nuhvok's Capabilities</li></a>
    <a class="nav-link" href="#programming"><li>Programming</li></a>
    <a class="nav-link" href="#strategies"><li>Strategies</li></a>
    <a class="nav-link" href="#references"><li>References</li></a>
  </ul>
    
</nav>

<!-- Navbar Section End -->

<div><main id="main-doc">
  
  <!-- Sectonions zone -->
  
  <section class="main-section" id="introduction">
    
    <header class="header">Introduction</header>
    
    <p class="intro-paragraph">This document was created by the Order of Mata Nui, to be a part of a series of documents to inform new Toa teams of the Bohrok threat, and their capabilities. In this document, we will cover the Nuhvok: The earth-type Bohrok.</p>
    
    <p class="intro-paragraph"></p>
    
  </section>
  
  <section class="main-section" id="nuhvok_history">
    
    <header class="header">Nuhvok History</header>
    
    <p class="history_paragraph">Nuhvok were created by the Great Beings, basing them off of the Baterra. They were created out of destined Av-Matoran whose life span had ended.

A Nuvohk was later exposed to a mutagenic substance used by the Bahrag, transforming it into Nuhvok-Kal.

Teridax, after his defeat by the Toa Mata, awakened the Bohrok early. After their awakening, a swarm of Nuhvok, along with a swarm of Lehvak, attacked Le-Koro, where they enslaved all its inhabitants. They were later freed.

The Nuhvok were put to sleep after the Toa Mata combined their powers to imprison the Bahrag.

The Nuhvok were later awakened by the Toa Nuva when they were doing a list of tasks Axonn gave them to do. upon their awakening, they cleansed the island of Mata Nui, after which the Nuhvok then returned to the Bohrok Nest, where they remain until needed.</p>
    
    <p class="history_paragraph">
      
      There are six Bohrok in total:
     <!-- Bohrak List --> 
      <ul>
        <li style="color:red;">Tahnok: Fire Bohrok</li>
        <li style="color:dodgerblue;">Gahlok: Water Bohrok</li>
        <li style="color:green;">Lehvak: Acid Bohrok</li>
        <li style="color:brown;">Pahrak: Stone Bohrok</li>
        <li style="color:black;">Nuhvok: Earth Bohrok</li>
        <li style="color:grey;">Kohrak: Ice Bohrok</li></ul>
          <!-- Bohrak List End -->
      Here, we will be discussing the Nuhvok.
    </p>
    
  
  </section>
  
  <section class="main-section" id="nuhvok's_capabilities">
    
    <header class="header">Nuhvok's Capabilities</header>
    
    <p class="stats">The most solitary of the swarms, Nuhvok wouldn't immediately defend themselves, but when they determined a threat, they would strike out with their shields. If backed into a corner, they would strike out tenaciously until help arrived. Nuhvok were at their most vulnerable in open spaces. Therefore, the best strategy for catching a Nuhvok was to lure it above ground away from its swarm.

They were skilled tunnelers, and were active all over Mata Nui. They had excellent night vision, but didn't see well in bright light.</p>
    <p class="stats"></p>
    
  </section>
  
  <section class="main-section" id="programming">
    
    <header class="header">Programming</header>
    
    <p class="nuhvok_code"> Nuhvok are solitary Bohrok, and are often on the more assertive side. Essentially being massive insectoid drones, they behave as such. Their defensive behavior can be best represented as, <code id="defense"> if (entity_hostile) {
      attack (entity_hostile);
      goto (hive);
      } patrol (radius, hive); </code></p>
    <p class="nuhvok_code">All Nuhvok have a mask-shaped "brain" that they share with other kinds of Bohrok, called <code>Krana</code>. These acted as both guidance systems and as a sort of wireless network that connected all other Nuhvok together to form a hive-mind. When a Bohrok of anykind loses their <code>Krana</code>, they enter a semi-comatose state, and have no independent function.</p>
    
  </section>
  
  <section class="main-section" id="strategies">
    
    <header class="header">Strategies</header>
    
    <p class="tactics"> One of the best strategies for defeating <code>Nuhvok</code> is to lure one-to-three of them out into an open space, and coax them out of the ground, if already burrowed. This is because Nuhvok are often fairly solitary, and not much of group fighters.</p>
    <p class="tactics"> Because of their tendency to burrow underground, predicting where they may come out can be tricky, and often leads to a surprise attack. To help with that, use a Nui Radar device. It works like so: <code id="radar">item=radar(nuhvok);
      if (item != null) {
      ping (5);
      display (ui);
      }</code></p>
    
  </section>
  
   <section class="main-section" id="references">
    
    <header class="header">References</header>
     
     <p class="archives">https://www.deviantart.com/josephkarins/art/Metru-Nui-Map-24x36-681573212 Metru Nui Map 24x36 by josephkarins</p>
     <p class="archives">https://bionicle.fandom.com/wiki/Nuhvok</p>
     <p class="archives">https://bionicle.fandom.com/wiki/Bohrok</p>
    
  </section>
  
  <!-- Sections zone ends -->
  
</div></main>
            
          
!
            
              main { font-family: 'Roboto', sans-serif;
    
}

nav {
  font-family: 'Roboto', sans-serif;
}

code {
  background-color: #e6e6e6;
  border-radius: 25px;
}

#radar {
  display: block;
  padding: 25px;
}

#defense {
  display: block;
  padding: 15px;
  margin: 10px;
  text-align: left;
  word-break: normal;
  word-wrap: normal;
  line-height: 2;
}

.header {
  font-size: 30px;
}

#navbar ul{
  height:88%;
  overflow-y:hidden;
  overflow-x:hidden;
}

#navbar li{
  border-bottom: solid;
  border-color: black;
  font-size: 20px;
}

@media(max-height: 630px) {
  #navbar li{
   float:none;
    padding:0;
    margin:0;
    border-bottom: solid;
    border-color: black;
    font-size: 15px;
  }
}

@media(max-height: 630px) {
  #navbar ul{
    margin:0;
    padding:0;
    overflow-y: none;
  }
}

#navbar a{
    text-decoration:none;
    cursor:pointer;
} 

.nav-link {
  color: black;
  font-size: 25px;
  list-style: none;
  padding: 20px;
}

#navbar {
  position: fixed;
  border-right: solid;
  border-color: grey;
  width: 300px;
  min-width: 290px;
  min-height: 1000px;
  background-color: grey;
  font-size: 30px;
  margin-top: -15px;
  margin-left: -8px;
}

#main-doc{
  flex-wrap: wrap;
  position: absolute;
  margin-left:310px;
  padding:20px;
  margin-bottom:110px;
  line-height: 1.6;
}

@media(max-width: 400px) {
  #main-doc{
    margin-left:-10px;
    position: relative;
    text-align: center;
  }
} 
  
#navbar img{
  width:150px;
  height:auto;
  display: block;
}

@media(max-height: 630px) {
  
  #navbar img{
    display: none;
  }
}

@media(max-height: 630px) {
  
  #navbar {
    padding-top: 20px;
    width: 200px;
  min-width: 200px;
  }
}
            
          
!
            
              /* This is almost finished.
I just have to make sure the main-doc
text does not flow past the nav-bar
when in mobile sized view.

Making it prettier also wouldn't hurt.*/
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console