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.

            
              <!--DOCTYPE html>
<html>
    <head>
        <title>moT</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" type="text/css" href="portfolio.css">
    </head>

    <body-->
        <div class="nav">
            <div class="logo">&lt;Tom&gt;</div>
            <div class="nav-btn-wrap">
                <a href="#about" class="nav-btn">About</a><!--
                --><a href="#projects" class="nav-btn">Projects</a><!--
                --><a href="#algorithms" class="nav-btn">Algorithms</a><!--
                --><a href="#contact" class="nav-btn">Contact</a>
            </div>
        </div>
        
        <div class="contentwrap">
            
            <div class="section-title" id="about">About</div>
            <div class="about">
                <img src="IMG_0712.JPG" alt="Picture of me here">
                <p>Nunc nec lectus sagittis, vulputate risus ut, sodales urna. Nam vitae elit et massa ultricies feugiat id vel lectus. Integer ut diam a massa hendrerit dapibus et sed arcu. Sed sit amet libero pretium, egestas urna in, dapibus ligula. Integer pretium ac sem eu iaculis. Etiam lobortis ex eu neque venenatis fringilla. Maecenas eu suscipit mauris, vitae convallis enim. Etiam vehicula, mi non hendrerit pretium, nisi mi eleifend quam, ac gravida enim nunc eget risus. Duis quis turpis egestas, dignissim ligula ac, fermentum quam. Nunc quis lacus ornare, porta ligula in, sagittis tellus.</p>
                <p>Sed tristique elit quis risus sollicitudin vehicula. Vivamus tempus ex enim, sit amet faucibus augue feugiat mollis. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum vel est in mi vestibulum sodales. Nulla in purus quis erat sagittis gravida ac a nibh. Integer viverra iaculis leo in euismod. Aenean ultricies convallis tincidunt. Donec quis dapibus purus. Sed nec fringilla erat. Mauris a sollicitudin dolor, in aliquam ipsum. Nulla facilisi. Aenean egestas ligula et mauris dictum, quis feugiat risus scelerisque. Cras ac pellentesque dui. Nam maximus velit eget tellus iaculis luctus. Sed bibendum ornare consectetur. Donec sit amet viverra nulla.</p>
            </div>
            
            <div class="section-title" id="projects">Projects</div>
            <div class="projects">
                <p>This is a showcase of some of my most recent projects, they were created by me and pasted to <a href="https://www.codepen.io" target="_blank">codepen.io</a> according to the guidelines described by <a href="https://www.freecodecamp.com/" target="_blank">FreeCodeCamp.com</a>. These projects are necessary to complete in order to earn their front end certification, which includes an estimated 300 hours of coding. See more on <a href="https://www.codepen.io/mot01" target="_blank">my codepen page</a>.</p>
                
                <div class="projects-row">
                    <div class="project" id="Wikipedia_Viewer">
                        <embed src="https://codepen.io/moT01/embed/jyqrNr?preview=false&title=FCC%20Simon&embed-version=1&default-tab=result&slug-hash=jyqrNr&theme-id=0&height=500">
                        <p>Classic Game of Simon</p>
                    </div>
                    <div class="project" id="Tic-Tac-Toe">
                        <button class="project-btn" value="Tic-Tac-Toe" id="https://codepen.io/moT01/embed/egOKqO?preview=false&title=FCC%20Tic-Tac-Toe&embed-version=1&default-tab=result&slug-hash=egOKqO&theme-id=0&height=500" name="Simple game of Tic-Tac-Toe.">Load Tic-Tac-Toe...</button>
                        <p>Simple game of Tic-Tac-Toe.</p>
                    </div>
                </div>
                
                <div class="projects-row">
                    <div class="project" id="Pomodoro_Timer">
                        <button class="project-btn" value="Pomodoro_Timer" id="https://codepen.io/moT01/embed/PbrzQo?preview=false&title=FCC%20Pomodoro%20Clock&embed-version=1&default-tab=result&slug-hash=PbrzQo&theme-id=0&height=500" name="Pomodoro Timer.">Load Pomodoro Timer...</button>
                        <p>Pomodoro Timer.</p>
                    </div>
                    <div class="project" id="Local_Weather">
                        <button class="project-btn" value="Local_Weather" id="https://codepen.io/moT01/embed/ZpVOXo?preview=false&title=FCC%20Local%20Weather&embed-version=1&default-tab=result&slug-hash=ZpVOXo&theme-id=0&height=500" name="Local weather from the <a href=&quot;https://www.openweathermap.org/&quot; target=&quot;_blank&quot;>openweathermap.org</a> API.">Load Local Weather...</button>
                        <p>Local weather from the <a href="https://www.openweathermap.org/" target="_blank">openweathermap.org</a> API.</p>
                    </div>
                </div>
                
                <div class="projects-row">
                    <div class="project" id="Calculator">
                        <button class="project-btn" value="Calculator" id="https://codepen.io/moT01/embed/rWxJoa?preview=false&title=FCC%20Calculator&embed-version=1&default-tab=result&slug-hash=rWxJoa&theme-id=0&height=500" name="Calculator.">Load Calculator...</button>
                        <p>Calculator.</p>
                    </div>
                    <div class="project" id="Random_Quote">
                        <button class="project-btn" value="Random_Quote" id="https://codepen.io/moT01/embed/ZpVYLN?preview=false&title=FCC%20Random%20Quote&embed-version=1&default-tab=result&slug-hash=ZpVYLN&theme-id=0&height=500" name="Random quote machine using the API at <a href=&quot;https://www.quotesondesign.com/&quot; target=&quot;_blank&quot;>quotesondesign.com</a>.">Load Quote Machine...</button>
                        <p>Random quote machine using the API at <a href="https://www.quotesondesign.com/" target="_blank">quotesondesign.com</a>.</p>
                    </div>
                </div>
            </div>
            
            <div class="section-title" id="algorithms">Algorithms</div>
            <div class="algorithms">
                <p>These algorithms were created on <a href="https://www.codepen.io" target="_blank">codepen.io</a> according to the guidelines described by <a href="https://www.freecodecamp.com/" target="_blank">FreeCodeCamp.com</a>.  This is a small collection of some of the more complex algorithms needed to earn their front end certification, which includes an estimated 150 hours worth of coding. There is a small description at the top of each JS section to explain its purpose, or you can see full descriptions and my solutions on <a href="https://www.freecodecamp.com/mot01" target="_blank">my freecodecamp.com page</a>.</p>
                <div class="algorithms-row">
                    <div class="algorithm" id="Smallest_Common_Multiple">
                        <embed src="https://codepen.io/moT01/embed/dOgZjm?preview=false&title=FCC%20Smallest%20Common%20Multiple&embed-version=1&default-tab=js&slug-hash=dOgZjm&theme-id=0&height=500">
                        <p>Smallest Common Multiple</p>
                    </div>
                    <div class="algorithm" id="Validate_Phone_Numbers">
                        <button class="algorithm-btn" value="Validate_Phone_Numbers" id="https://codepen.io/moT01/embed/MbLbdX?preview=false&title=FCC%20Validate%20US%20Phone%20Numbers&embed-version=1&default-tab=js&slug-hash=MbLbdX&theme-id=0&height=500" name="Validate Phone Numbers">Load Validate Phone Numbers...</button>
                        <p>Validate Phone Numbers</p>
                    </div>
                    <div class="algorithm" id="No_Repeats_Please">
                        <button class="algorithm-btn" value="No_Repeats_Please" id="https://codepen.io/moT01/embed/jVdexB?preview=false&title=FCC%20No%20Repeats%20Please&embed-version=1&default-tab=js&slug-hash=jVdexB&theme-id=0&height=500" name="No Repeats Please">Load No Repeats Please...</button>
                        <p>No Repeats Please</p>
                    </div>
                </div>
                <div class="algorithms-row">
                    <div class="algorithm" id="Pairwise">
                        <button class="algorithm-btn" value="Pairwise" id="https://codepen.io/moT01/embed/yVQRoj?preview=false&title=FCC%20Pairwise&embed-version=1&default-tab=js&slug-hash=yVQRoj&theme-id=0&height=500" name="Pairwise">Load Pairwise...</button>
                        <p>Pairwise</p>
                    </div>
                    <div class="algorithm" id="Symmetric_Difference">
                        <button class="algorithm-btn" value="Symmetric_Difference" id="https://codepen.io/moT01/embed/ZBmNNw?preview=false&title=FCC%20Symmetric%20Difference&embed-version=1&default-tab=js&slug-hash=ZBmNNw&theme-id=0&height=500" name="Symmetric Difference">Load Symmetric Difference...</button>
                        <p>Symmetric Difference</p>
                    </div>
                    <div class="algorithm" id="Sum_Odd_Fibonacci">
                        <button class="algorithm-btn" value="Sum_Odd_Fibonacci" id="https://codepen.io/moT01/embed/zKXmKQ?preview=false&title=FCC%20Sum%20odd%20Fibonacci&embed-version=1&default-tab=js&slug-hash=zKXmKQ&theme-id=0&height=500" name="Sum Odd Fibonacci">Load Sum Odd Fibonacci...</button>
                        <p>Sum Odd Fibonacci</p>
                    </div>
                </div>
            </div>
            
            <div class="section-title" id="contact">Contact</div>
            <div class="contact">
                <div class="linkswrap">
                    <a href="#"><img class="link" src="https://tse3.mm.bing.net/th?id=OIP.M482ab536e4385bf60e51e72dedbd50c3o0&pid=15.1&P=0&w=300&h=300" alt="logo" title="E-mail"></a>
                    <a href="https://www.freecodecamp.com/mot01"><img class="link" src="https://thomas-ko.github.io/freecodecamp-redesign/assets/img/logo-footer.svg" alt="logo" title="FreeCodeCamp"></a>
                    <a href="https://www.codepen.io/mot01"><img class="link" src="https://cdn1.iconfinder.com/data/icons/simple-icons/128/codepen-128-black.png" alt="logo" title="Codepen"></a>
                    <a href="https://github.com/moT01"><img class="link" src="http://www.cunninglemon.com/img/logo/github.svg" alt="logo" title="Github"></a>
                </div>
                <div class="logo">&lt;Tom&#92;&gt;</div>
            </div>
        </div>
        
        <!--script src="jquery-3.1.0.js"></script>
        <script src="portfolio.js"></script>
    </body> 
</html-->
            
          
!
            
              body {
    margin: 0px; 
    font-family: Gill Sans, sans-serif; 
    cursor: default; }

.nav {
    width: 100%;
    height: 80px;
    background-color: #e6e6e6; 
    box-shadow: 0 0 20px 0 rgba(0,0,0,0.5);
    position: fixed;
    top: 0px;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center; 
    justify-content: space-between; }

.logo {
    font-size: 40px; 
    font-weight: 900;
    color: #cc6600;
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg); 
    margin: 0 0 0 20px; }

.nav-btn {
    margin: 0 20px 0 0;
    align-self: flex-end;
    font-size: 20px;
    font-weight: 100;
    color: #cc6600;
    padding: 10px 15px;
    text-decoration: none;
    border: 1px solid;
    border-color: rgba(0,0,0,0.2);
    -webkit-transition: background 0.3s linear 0s, color 0.3s linear 0s;
    -moz-transition: background 0.3s linear 0s, color 0.3s linear 0s;
    -ms-transition: background 0.3s linear 0s, color 0.3s linear 0s;
    -o-transition: background 0.3s linear 0s, color 0.3s linear 0s;
    transition: background 0.3s linear 0s, color 0.3s linear 0s; }

.nav-btn:hover { 
    background-color: #ccc; }

.contentwrap {
    margin: 150px 50px 100px 50px; }

.section-title {
    background-color: #e6e6e6;
    border: 1px solid #ccc;
    margin: 50px 0 50px 0;
    color: #cc6600; }

.about img {
    margin: 25px; 
    width: 200px; 
    float: right; }

.about p {
    font-weight: 300;
    font-size: 18px;
    text-indent: 4em; }

.about-row{}

p a {
    text-decoration: none;
    color: #cc6600; }

.projects-row {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex; }

.projects-row div {
    flex: 1 100%; }

.projects-row div embed {
    box-shadow: 2px 2px 6px 0 rgba(0,0,0,0.5);
    width: 90%; 
    margin-top: 50px;
    border-radius: 10px;
    height: 300px; }

.project-btn {
    color: #cc6600;
    box-shadow: 2px 2px 6px 0 rgba(0,0,0,0.5);
    border-radius: 10px;
    border: 1px solid;
    font-weight: 100;
    font-size: 20px;
    margin-top: 50px;
    width: 90%;
    height: 303px;
    background-color: #e6e6e6;
    -webkit-transition: background 0.3s linear 0s, color 0.3s linear 0s;
    -moz-transition: background 0.3s linear 0s, color 0.3s linear 0s;
    -ms-transition: background 0.3s linear 0s, color 0.3s linear 0s;
    -o-transition: background 0.3s linear 0s, color 0.3s linear 0s;
    transition: background 0.3s linear 0s, color 0.3s linear 0s; }

.project-btn:hover {
    cursor: pointer;
    box-shadow: 2px 2px 8px 0 rgba(0,0,0,0.5);
    background-color: #ccc; }

.project-btn:active {
    box-shadow: 2px 2px 6px 0 rgba(0,0,0,0.5); }

.algorithms-row {
    margin-top: 40px;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center; 
    justify-content: space-around; }

.algorithm embed {
    box-shadow: 2px 2px 6px 0 rgba(0,0,0,0.5); }

.algorithm-btn {
    width: 300px; 
    color: #cc6600;
    box-shadow: 2px 2px 6px 0 rgba(0,0,0,0.5);
    border-radius: 10px;
    border: 1px solid;
    font-weight: 100;
    font-size: 20px;
    margin-top: -4px;
    height: 151px;
    background-color: #e6e6e6;
    -webkit-transition: background 0.3s linear 0s, color 0.3s linear 0s;
    -moz-transition: background 0.3s linear 0s, color 0.3s linear 0s;
    -ms-transition: background 0.3s linear 0s, color 0.3s linear 0s;
    -o-transition: background 0.3s linear 0s, color 0.3s linear 0s;
    transition: background 0.3s linear 0s, color 0.3s linear 0s; }

.algorithm-btn:hover {
    cursor: pointer;
    box-shadow: 2px 2px 8px 0 rgba(0,0,0,0.5);
    background-color: #ccc; }

.algorithm-btn:active {
    box-shadow: 2px 2px 6px 0 rgba(0,0,0,0.5); }

.contact {
    height: 80px; 
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center; 
    justify-content: space-between; }

.linkswrap {
    height: 80px; 
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center; }

.linkswrap a {
    margin: 0 20px 0 0; }

.link {
    width: 50px; }
            
          
!
            
              $(document).ready(function () {
    'use strict';
   
    //this is for loading my codepens
    $("button").click(function () {
        var name = $(this).attr("name"), id = $(this).attr("id"), value = $(this).attr("value");

        $("#" + value + "").empty();
        $("#" + value + "").append("<embed src=\"" + id + "\">");
        $("#" + value + "").append("<p>" + name + "</p>");
    });
    
    //smooth scroll effect
    $(".nav-btn").click(function (event) {
        $('html, body').animate({
            scrollTop: $($.attr(this, 'href')).offset().top - 100
        }, 500);
        event.preventDefault();
    });
    
});
            
          
!
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