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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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

<nav id="navbar">
  <header id="nav-header">Belief System Theory</header>
  <ul style="list-style-type:none">
    <li><a class="nav-link" href = #Introduction> Introduction</a></li> 
    <li><a class="nav-link" href = #Belief_System_Theory> Belief System Theory</a></li>
    <li><a class="nav-link" href = #Factors:_Masses>Factors: Masses </a></li>
    <li><a class="nav-link" href = #factors:_influencers> Factors: Influencers</a></li>
    <li><a class="nav-link" href = #factors:_time> Factors: Time</a></li>
    <li><a class="nav-link" href = #conclusion> Conclusion</a></li>
  </ul>  
</nav> 
<main id="main-doc">
  <section class="main-section" id="Introduction">
    <header>Introduction</header>
    <article>
      <p class="comments">
      This is a fictional web report about a fictional world by a fictional professor Dr.Melissa Pinehead, a specialist in the field of Belief System Theory and a graduate of Schlub University of General Research. 
      </p> 
      <p>
      To my fellow Researchers
      </p>
      <p>
        It has come to my attention, that the common folk are not aware of the Belief System Theory, which is understandable. If they were to realize the potential power they have, then surely chaos would erupt among our current order. Tis why the "gods" themselves do their best to limit the mouths that spread this, but despite that, i believe it is wrong to limit the knowledge of the people!
     </p>
     <p>  
I believe it is people's right to know about the power that is rightfully theirs. For it wasn't the "gods" who created this world but their own belief in the "gods that created this world" that started everything. No doubt, i too will be chased down by death if i continue with this path but I do not fear death. No i have no fear but one! To continue lying and hiding the truth and to be revealed as a hypocrite when the time comes. All truth is eventually revealed my fellow associates, and I fear to be on the losing side when that time comes. May my soul be resurrected. 
      </p>  
    </article>  
  </section>  
  <section class="main-section" id="Belief_System_Theory">
    <header>Belief System Theory</header>
    <article>
      <p class="comments">
        Belief System Theory(n): What ever is believed by the masses will become true
      </p>
      <p>
       To begin, i'll do a bit of a sparksnote for those of us who are not as well verse in Belief System Theory(BST). It is thought that BST is the law that structures the entirety of the Universe we live in. 
      </p> 
      <p>
        It created the rivers, the mountains, the heavens. It created certain species, foods, and even the seasons.
      </p>  
      <p>
        All that we know of our world has been created through BST. 
      </p>
      <p>
       There are several main factors involved with BST:
      </p> 
      <code>
        <ol class="list">
          <li>Masses</li>
          <li>Influencers</li>
          <li>Time</li>
        </ol> 
      </code>    
    </article>  
  </section>
  <section class="main-section" id="Factors:_Masses">
    <header>Factors: Masses</header>
    <article>
      <p class="comments">
        Masses(n): The groups of people involved in the belief
      </p>  
      <p>
        The people play a major role in the powers of BST. It is their own belief that can change the very structure and manifestations of this world. For instance, in the story of Cupo Dupo:
      </p>
      <div class="transcription">
        <code>
          <p>
          There once was a clown named Cupo Dupo who liked to make people laugh by crossing his eyes. However others tried imitating him, and he grew afraid that a more famous clown would steal his act, so he told a lie. "Becareful, because if you do it for too long,you could become permanently cross eyed." The word was spread far and wide, and everyone began to believe it and Cupo Dupo continued to do his trick alone, till one day during the middle of his act, he couldn't uncross them no matter how hard he tried.
          </p>
        </code>
      </div>  
      <p>
There has never been a side effect from crossing ones eyes before this time, but now we do. It's called <strong>Dupo Syndrome</strong> and it is thanks to Cupo Dupo that it even happened. Mothers became frightened as their children would imitate the clown and spread the warning around till the whole village believed it. It also didn't help that it ultimately became true for Cupo Dupo who had done this craft for more than 3 years.
      </p>           
      <p>
        Along with the creation of beliefs, people can also determine the strength of a belief. The more people that belive it, the more frequent that event will happen. Though the amount of people needed for a belief to stregthen varies and is a very elusive and pain-in-the-butt field of study.
      </p>  
    </article>  
  </section>  
  <section class="main-section" id="factors:_influencers">
    <header>Factors: Influencers</header>
    <article>
      <p class="comments">
        Influencers (n): An entity that can influence the strength and direction of a belief.
      </p>  
      <p>
        An influencer can come in many different sizes, shapes, and forms. Here are a list of the most frequent kinds of influencers:
      </p>
      <code>
        <ul class="list">
          <li>Environment</li>
          <li>Parents</li>
          <li>Culture</li>
          <li>Current beliefs</li>
          <li>"gods"</li>
        </ul> 
     </code>  
     <p>
      One famous case of how already established cultural beliefs can alter BST is the case of the common black spider.   
     </p>
      <div>
        <code>
          <p class="transcription">
          There are differing stories about what happens if one gets bitten by a spider. For instance, in the southern country of Koralina, it is thought that spiders lay parisitic eggs through their bites and that the only way of purging them out is by washing the area with salt and lemon water. In the valley country of Dian however, it is thought that a spiders bite is perfectly harmless with no sideffects
          </p>          
        </code>
      </div>  
      <p>
These two different stories have two different effects to the native common black spider found in the surrounding area. The common black spider found in Koralina are one to be feared for their parisitic eggs injected through their teeth, while the common spiders in Dian are as harmless as a fruit fly.
      </p>  
      <p>
One thing to throw away is that indeed these two spider species are exactly the same. The only thing different about them are the surrounding cultural beliefs about them and that influences their potency.
      </p>  
    </article>
  </section> 
  <section class="main-section" id="factors:_time">
    <header>Factors: Time</header>
    <article>
      <p class="comments">
      Time(n):The time it takes for the belief to take root and grow.
      </p>  
      <p>
        Beliefs change over time. What was once believed to be true will be proven false, and what was once false will become true. The "gods" themselves know this to be true, and though they try to disturb this natural flow, eventually beliefs will change.       
      </p>
      <p>
        In fact, such a thing is happening now:
      </p>  
      <div>
        <code>
          <p class=transcription>
            Every child knows this one. Bad smells can get you sick so make sure you're clean and smell nice. Belief theory can actually be seen in action with this one, for there is a more popular belief starting to arise called "Germ Theory" which states that it isn't bad smells but actually these tiny things called germs that actually get us sick. The bad smell is just an attribute of these tiny things. 
          </p>  
        </code>  
      </div> 
      <p>
        At the moment, Miasma theory is much more popular than Germ Theory, but no doubt as time passes, it will grow more in popularity and overthrow Miasma Theory.
      </p>  
    </article>  
  </section>
  <section class="main-section" id="conclusion">
    <header>Conclusion</header>
    <article>
      <p>
        Now that you have caught up, here is my conclusion to this...
      </p>  
    </article>  
  </section>  
</main>
<!-- 

Hello Camper!

For now, the test suite only works in Chrome! Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding! 

- The freeCodeCamp Team 

-->

              
            
!

CSS

              
                body{
  font-family: "Open Sans", Arial, sans-serif;
}

#navbar {
  border-right:solid;
  border-color:hsl(0,0%,30%);
  width:280px;
  height:100%;
  position:fixed;
  top:0px;
  left:0px;
}
#nav-header {
  text-align:center;
  font-size:25px;
  height:50px;
  padding-top:10px;
  background-color:hsl(100,30%,70%);
}

#main-doc {
  position:absolute;
  margin-left:290px;
  padding:2%;
}

section > header{
  font-size:28px;
  font-weight:500;
}

article p{
  padding-left:4%;
}

.comments {
  background-color:hsl(100,30%,90%);
  border-radius:5px;
  font-size:13px;
  padding:10px;
  font-style:italic;
}

article .comments {
  margin:6%;
  margin-top:2%;
  margin-bottom:1%;
}

.list {
  margin-left:5%;
}

.transcription {
  margin:10%;
  margin-top:3%;
  margin-bottom:3%;
}
#navbar ul {
  height: 88%;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

#navbar li {
  border-bottom: 1px solid;
  list-style: none;
  position: fix;
  width: 100%;
}

#navbar a {
  display: block;
  padding: 10px;
  color: #4d4e53;
  text-decoration: none;
  cursor: pointer;
}

@media only screen and (max-width:550px){
    #navbar ul {
      margin-top:0;
      border: 1px solid;
      height: 50%;
    }
  
  #navbar li {
      margin-top:0%;
      height: 50%;
    }
     #navbar {
      background-color: white;
      position: absolute;
      top: 0;
      padding: 0;
      margin: 0;
      width: 100%;
      max-height: 275px;
      border: none;
      z-index: 1;
      
  }
  
    #main-doc {
    position:relative;
    margin-left:0px;
    top:260px;  
    padding:2%;
    

  }
}  
  
              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console