Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <html>
  <head>
    <link href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300' rel='stylesheet' type='text/css'>
    <link href='https://fonts.googleapis.com/css?family=Open+Sans:300' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="css/normalize.css">
    <link rel="stylesheet" href="css/style.css">
    <script src="https://code.jquery.com/jquery-1.9.1.js"></script>
    <script src="https://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
  </script>
    <script type="text/javascript" src="js/script.js"></script>
  </head>
  <body>
    <div>
      <img id="joshu-logo" src="https://i.imgur.com/xQbtw0x.png">
  	  <nav id="menu">
  	    <ul>
  	  	  <li>
  	  	    <a href="#">Home</a>
          </li>
          <li>
            <a href="kana.php">Kana</a>
          </li>
          <li>
            <a href="#">Kanji</a>
          </li>
          <li>
            <a href="#">Vocabulary</a>
          </li>
          <li>
            <a href="#">Grammar</a>
          </li>
          <li>
            <a href="#">Counters</a>
          </li>
          <li>
            <a href="#">Reading</a>
          </li>
          <li>
            <a href="#">Listen/Speak</a>
          </li>
          <li>
            <a href="#">Culture</a>
          </li>
          <li>
            <a href="#">Links</a>
          </li>
          <li>
            <a href="#">References</a>
          </li>
          <li>
            <a href="#">Credits</a>
          </li>
        </ul>
      </nav>
      <div id="nav-trigger">
        <span>&#9776;</span>
      </div>
      <nav id="nav-mobile"></nav>
          <div>

      <header>
        <h1 class="header first-letter">
          <span class="first-letter">かな</span> (Kana)
        </h1>
      </header>

      <div id="nestedAccordion">

        <h2>ひらがな (Hiragana)</h2>
        <div>
          <h3>Interactive Hiragana Tables</h3>
            <div>
              <p>Pinterest kogi listicle, bespoke four dollar toast Blue Bottle pickled small batch vinyl mustache lumbersexual. Twee PBR&B tousled, roof party Portland food truck kogi kitsch small batch. Tilde slow-carb Intelligentsia whatever +1 Vice. Vegan scenester try-hard, mixtape Godard Austin whatever pickled messenger bag banjo 8-bit photo booth listicle. Drinking vinegar Intelligentsia dreamcatcher, yr disrupt wayfarers tousled tote bag locavore bitters roof party synth kale chips. Etsy aesthetic fixie cray keffiyeh butcher. PBR put a bird on it sriracha, meggings wayfarers umami Pitchfork Carles health goth bicycle rights crucifix.</p>
            </div>

          <h3>Hiragana flashcards w/ audio</h3>
            <div>
              <p>Portland pop-up Brooklyn paleo Pitchfork Banksy 3 wolf moon. Schlitz Etsy jean shorts cornhole food truck. Paleo twee fashion axe ugh. Blog dreamcatcher hoodie Intelligentsia direct trade, banjo distillery Truffaut chambray Williamsburg Shoreditch Odd Future. Mixtape typewriter cronut keffiyeh, scenester skateboard street art locavore seitan vinyl Carles cold-pressed Helvetica keytar. Cray lomo hashtag, cardigan tousled fingerstache cronut butcher disrupt master cleanse flannel skateboard twee. Taxidermy flexitarian asymmetrical Schlitz fingerstache, swag blog irony.</p>
            </div>

          <h3>Hiragana Practice sheets</h3>
            <div>  
              <p>Kogi twee deep v fingerstache, swag bespoke chambray selvage narwhal Truffaut American Apparel. Try-hard VHS disrupt tattooed bitters Schlitz. Ugh gentrify asymmetrical, cornhole kogi food truck gastropub Portland swag you probably haven't heard of them lo-fi. Mustache yr before they sold out, biodiesel four loko skateboard roof party fashion axe Vice Marfa pickled. Pour-over kitsch shabby chic, selfies quinoa VHS wolf paleo keytar Vice Odd Future trust fund leggings. Lumbersexual blog small batch messenger bag lo-fi squid. Brunch twee wayfarers, blog hoodie migas Godard sartorial disrupt scenester tousled Schlitz trust fund asymmetrical.</p>
            </div>

          <h3>Hiragana practice quizzes</h3>
            <div>
              <p>Seitan Godard fixie asymmetrical fingerstache street art. High Life jean shorts fanny pack ennui, polaroid stumptown synth direct trade pickled mixtape bitters +1 Intelligentsia you probably haven't heard of them. Four dollar toast food truck stumptown cold-pressed. Actually gastropub sustainable, farm-to-table selfies High Life Neutra kale chips Pitchfork quinoa bitters Banksy locavore. Stumptown Williamsburg tilde Truffaut. Sartorial irony viral sriracha, photo booth tattooed meh artisan bespoke Williamsburg Helvetica. Pitchfork sartorial hella XOXO taxidermy, synth cred organic bitters.</p>
            </div>

          <h3>Word Search (need Flash Player)</h3>
          <div>
            <p>Food truck slow-carb small batch, paleo actually cornhole cred meggings next level Pitchfork farm-to-table fanny pack jean shorts semiotics flannel. Authentic fashion axe aesthetic vegan Marfa, Tumblr biodiesel whatever meditation bicycle rights stumptown migas wolf. Bitters four dollar toast retro, cardigan Shoreditch Tumblr typewriter farm-to-table. Synth pork belly Williamsburg, 90's wolf kitsch Shoreditch ennui disrupt sartorial squid photo booth scenester. Cornhole ugh selfies health goth fap. Intelligentsia squid semiotics, mixtape shabby chic Odd Future roof party lomo leggings kitsch aesthetic health goth. Viral sriracha wayfarers, Tumblr skateboard authentic kogi Bushwick pickled.</p>
          </div>

        </div>

        <h2>カタカナ (Katakana)</h2>

        <div>
          <h3>Interactive Katakana Tables</h3>
          <div>
            <p>Wolf mlkshk Vice Wes Anderson ugh vegan pop-up, Williamsburg gentrify banh mi lo-fi cray Shoreditch try-hard dreamcatcher. 90's Truffaut kogi scenester, 8-bit Bushwick vinyl. Butcher cray tilde pour-over. Cred master cleanse 90's craft beer. Vinyl food truck semiotics wolf. Blog twee ugh High Life, beard lo-fi Pitchfork sartorial heirloom selvage photo booth meditation before they sold out. Vinyl tofu direct trade, messenger bag +1 ugh Wes Anderson hoodie literally mlkshk selvage.</p>
          </div>

          <h3>Katakana flashcards</h3>
          <div>
            <p>Chambray bicycle rights lomo, pickled trust fund yr crucifix you probably haven't heard of them bespoke slow-carb Wes Anderson butcher gastropub Thundercats swag. Church-key pickled Brooklyn, beard swag Intelligentsia messenger bag Banksy selvage Tumblr slow-carb twee. Letterpress readymade pop-up Odd Future, kitsch synth four dollar toast. Beard Pitchfork irony craft beer. Salvia Godard asymmetrical swag Pitchfork. Schlitz artisan scenester four loko flannel, Brooklyn Marfa pop-up irony hella cray readymade mumblecore semiotics whatever. Quinoa Odd Future Portland cold-pressed, tousled asymmetrical swag mixtape.</p>
          </div>

          <h3>Practice sheets</h3>
          <div>
            <p>Locavore sriracha Portland cornhole roof party health goth, seitan lo-fi leggings paleo occupy salvia. Flexitarian four loko crucifix Pitchfork. Bicycle rights chillwave deep v, meh hashtag kogi PBR&B mumblecore meggings cliche try-hard High Life Brooklyn kale chips. Umami typewriter heirloom, post-ironic whatever Tumblr 8-bit. Bespoke retro gluten-free organic Pinterest +1 American Apparel. Pork belly photo booth readymade wolf lumbersexual cold-pressed American Apparel, tilde High Life vinyl Kickstarter Austin four dollar toast synth next level. Irony fanny pack locavore, photo booth kitsch Marfa heirloom ethical post-ironic taxidermy blog salvia Truffaut banh mi American Apparel.</p>
          </div>

          <h3>Katakana quizzes</h3>
          <div>
            <p>Hoodie Brooklyn drinking vinegar swag, raw denim kitsch organic deep v actually Intelligentsia YOLO art party distillery fap. Raw denim post-ironic PBR&B crucifix street art. Readymade put a bird on it kogi Williamsburg. Four loko mumblecore Etsy +1 tote bag Shoreditch. Pork belly fingerstache twee, bitters Austin letterpress McSweeney's. Flannel lomo 8-bit, put a bird on it gentrify Austin letterpress DIY art party organic. Pour-over kitsch disrupt forage, chillwave tote bag Intelligentsia aesthetic.</p>
          </div>

          <h3>Word Search</h3>
          <div>
            <p>Mlkshk roof party gluten-free plaid, meggings wolf put a bird on it squid fanny pack keytar viral stumptown pickled. Portland quinoa four loko tote bag, paleo pour-over kitsch lumbersexual art party Schlitz farm-to-table Godard. Swag Pinterest cliche, synth ethical Brooklyn bespoke banh mi PBR lo-fi ugh trust fund. Meditation brunch semiotics, Echo Park Etsy slow-carb pickled viral VHS mlkshk polaroid keffiyeh lomo hashtag try-hard. Put a bird on it listicle XOXO, McSweeney's kogi umami YOLO fingerstache fanny pack American Apparel VHS butcher. Etsy photo booth 8-bit, iPhone Banksy Intelligentsia Pinterest small batch flannel meggings pug Brooklyn you probably haven't heard of them retro. Yr ennui fap, Bushwick vinyl you probably haven't heard of them narwhal actually hoodie biodiesel tofu.</p>
          </div>

          <h3>Link to other useful sites</h3>
          <div>
            <p>Put a bird on it readymade sartorial, street art typewriter Neutra heirloom food truck roof party bitters letterpress. Fixie photo booth Intelligentsia food truck Pinterest shabby chic. Slow-carb pop-up keffiyeh, flannel Truffaut hoodie quinoa listicle tattooed +1 literally meh Thundercats. Intelligentsia direct trade synth you probably haven't heard of them, church-key keffiyeh cray flexitarian salvia. Pitchfork keytar Pinterest Tumblr umami, heirloom Bushwick street art crucifix taxidermy. Slow-carb iPhone DIY cliche lomo 90's, PBR&B artisan Etsy brunch literally butcher listicle tattooed. Flexitarian church-key Thundercats, banjo lo-fi keffiyeh beard tousled wayfarers deep v locavore plaid butcher kitsch freegan.</p>
          </div>

      </div>

    </div>
  </body>
</html>
              
            
!

CSS

              
                body {
  background-color: #e9d2a0;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  margin: 0;
}

header h1 {
  background-color: #63714d;
  color: #fcdfe5;
  font-family: 'Open Sans Condensed', sans-serif;
  font-size: 6em;
  font-weight: normal;
  margin: 0em;
  text-align: center;
  padding-top: 70px;
}

h1 .first-letter {
  color: #ffb5c6;
  font-weight: bold;
}

h2 {
  background-color: #e9d2a0;
  color: #63714d;
  font-family: 'Open Sans Condensed', sans-serif;
  font-size: 2.5em;
  font-weight: bold;
  margin: 0em;
  padding: .1em 0em .1em 0em;
  text-transform: uppercase;
  width: 100%;
  text-align: center;
  cursor: pointer;
}

.no-pointer {
  cursor: auto;
}

h3 {
  background-color: #eed9ad;
  color: #63714d;
  font-family: 'Open Sans Condensed', sans-serif;
  font-size: 2em;
  font-weight: bold;
  margin: 0em;
  padding: .1em 0em .1em 0em;
  text-transform: uppercase;
  width: 100%;
  text-align: center;
  cursor: pointer;
}

a:link {
  text-decoration: none;
  color: #63714d;
} 

a:visited {
  text-decoration: none;
  color: #63714d;
}

a:active {
  text-decoration: none;
  color: #63714d;
}

nav#menu ul {
  font-family: 'Open Sans Condensed', sans-serif;
  margin: 0;
  padding: 1.2em 0em 1.2em 0em;
  font-size: 1.2em;
  background-color: #ffb5c6;
  position: fixed;
  text-align: right;
  width: 100%;
  z-index: 1;
  height: 1.45em;
}

nav#menu li {
  display: inline;
  padding: 1.2em .5em;
  text-transform: uppercase;
}

nav li:hover {
  background-color: #e2e9d4;
}

nav li a:hover {
  text-decoration: none;
  background-color: #e2e9d4;
  color: #63714d;
} 

div {
  background-color: #f6e5c0;
}

#nestedAccordion div {
  display: none;
}

p {
  font-size: 1.2em;
  margin: 0em auto;
  padding: 1em 0em 1em 0em;
  max-width: 960px;
}

ul {
  margin-left: auto;
  margin-right: auto;
  width: 650px;
}

#contact {
  list-style-type: none;
  padding: 1em 0em 1em 0em;
  margin:0;
  font-size: 1.2em;
}

#filler {
  height: 70px;
  background-color: #ffb5c6;
}

#joshu-logo {
  margin-left: 1.5em;
  margin-top: .3em;
  position: fixed;
  z-index: 2;
}

.body-text {
  text-align: center;
}

#nav-trigger {
  display: none;
  width: 100%;
  text-align: right;
}

#nav-trigger span {
  padding-right: 38px;
  color: #63714d;
  font-size: 54px;
  cursor: pointer;
}

nav#nav-mobile {
  position: relative;
  display: none;
}

nav#nav-mobile ul {
  position: absolute;
  right: 0;
  display: none;
  list-style-type: none;
  width: 125px;
  text-align: center;
  margin-top: 68px;
  padding: 0;
}

nav#nav-mobile li {
  background-color: #ffb5c6;
  padding: 10px 0px;
  width: 125px;
}

@media only screen and (max-width: 1100px) {
  nav#menu {
    display: none;
  }

  #nav-trigger {
    display: block;
    position: fixed;
    background-color: #ffb5c6;
  }

  #nav-trigger span img {
    cursor: pointer;
  }

  nav#nav-mobile {
    display: block; }
}

@media only screen and (max-width: 1000px) {
  p {
    width: 90%;
  }
}

@media only screen and (max-width: 700px) {
  ul {
    width: 90%;
  }
}

@media only screen and (max-width: 600px) {
  header h1 {
    font-size: 15vw;
  }
}
              
            
!

JS

              
                $(document).ready(function () {
    var parentDivs = $('#nestedAccordion div'),
        childDivs = $('#nestedAccordion h3').siblings('div');

    $('#nestedAccordion h2').click(function () {
        parentDivs.slideUp();
        if ($(this).next().is(':hidden')) {
            $(this).next().slideDown();
        } 
        else {
            $(this).next().slideUp();
        }
    });

    $('#nestedAccordion h3').click(function () {
        childDivs.slideUp();
        if ($(this).next().is(':hidden')) {
            $(this).next().slideDown();
        } 
        else {
            $(this).next().slideUp();
        }
    });
});

$(document).ready(function() {
    $("#nav-mobile").html($("#menu").html());

    $("#nav-trigger span").click(function() {
        if ($("nav#nav-mobile ul").hasClass("expanded")) {
            $("nav#nav-mobile ul.expanded").removeClass("expanded").slideUp(250);
            $(this).removeClass("open");
        } 
        else {
            $("nav#nav-mobile ul").addClass("expanded").slideDown(250);
            $(this).addClass("open");
        }
    });
});
              
            
!
999px

Console