JavaScript preprocessors can help make authoring JavaScript easier and more convenient. For instance, CoffeeScript can help prevent easy-to-make mistakes and offer a cleaner syntax and Babel can bring ECMAScript 6 features to browsers that only support ECMAScript 5.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
<div class='container'>
<div class='inner-wrap'>
<div class='item-1' id='header'>
<div class='toggle'>
<div class='toggle-content' class='item-1'>
<p>But for some special effects we might use a data attribute for repeating the link text in the pseudo-element</p>
<span class='author'>Biyan Pasau</span>
</div>
<div class='toggle-button'/>
</div>
<div class='item-3'>
<h1>Point Of View</h1>
</div>
<div class='item-3' id='list'>
<h4>Links</h4>
<ul>
<li><a href='#'>Home</a></li>
<li><a href='#'>About Us</a></li>
<li><a href='#'>Contact</a></li>
<li><a href='#'>Hall Of Famee</a></li>
</ul>
</div>
<div class='item-3' id='list'>
<h4>Categories</h4>
<ul>
<li><a href='#'>Animal</a></li>
<li><a href='#'>Landscape</a></li>
<li><a href='#'>Nature</a></li>
<li><a href='#'>Portrait</a></li>
</ul>
</div>
</div>
<div class='content item-1'>
<div class='item-3'>
</div>
<div class='item-3'>
</div>
</div>
</div>
</div>
<link href='https://fonts.googleapis.com/css?family=Seaweed+Script|Lora:400,400italic' rel='stylesheet' type='text/css'>
/* PaperPlane Framework v3.0
* Twitter: /DavidHosanna
* Prefix-free required
* https://leaverou.github.com/prefixfree/
*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
position: relative;
}
.container {
margin: 0 auto;
max-width: 960px;
}
/* Only adjust the font-family in this selector, if you adjust it in body selector it will break the grid. Font-size work well in body selector*/
.container > * {
font-family: '';
}
[class*="item-"] {
display: inline-block;
vertical-align: top;
margin-left: -4px;
transform: translate(4px,0);
/* IE */
*display: inline;
*zoom: 1;
}
.item-1 {
width: 100%;
}
.item-2 {
width: 50%;
}
.item-3 {
width: 33.334%;
}
.item-4 {
width: 25%;
}
.item-5 {
width: 20%;
}
.item-6 {
width: 16.667%;
}
.item-7 {
width: 66.667%;
}
.justify {
text-align: justify;
}
@media screen and (max-width: 650px) {
[class*="item-"] {
display: block;
width: 100%;
margin: 0;
transform: none;
};
}
/**** PAPERPLANE END ****/
body {
font-family: 'Lora';
background: #777777;
color: #333;
font-size: 14px;
}
a {
color: #333;
}
.container {
background: #fff;
max-width: 1000px;
}
.inner-wrap {
width: 80%;
margin: 0 auto;
}
#header {
padding: 0 0 30px 0;
}
h1 {
font-family: 'Seaweed Script';
color: #444;
font-size: 40px;
}
#list {
text-align: right;
}
#list h4 {
font-weight: normal;
font-size: 18px;
font-style: italic;
margin-bottom: 15px;
}
#list h4:before {
content: '— ';
}
#list ul li {
list-style: none;
padding: 3px 0;
}
#list ul li a {
text-decoration: none;
}
#list ul li a:hover {
border-bottom: 1px solid #d7d7d7;
}
/* Toggle */
.toggle-content {
display: none;
padding: 20px 20px 40px 20px;
background: #555555;
color: #ccc;
font-style: italic;
font-size: 18px;
width: 100%;
border-bottom: 10px solid #424242;
}
.toggle-content > p {
margin-bottom: 20px;
}
.toggle-content > .author {
color: #fff;
}
.toggle-content > .author:before {
content: '— ';
}
.toggle-button {
height: 40px;
width: 32px;
background: url('https://3.bp.blogspot.com/-84u1vQJQJOI/UHfe9W0I0TI/AAAAAAAACFk/4c2wQxaO6V4/s1600/toggle.png');
margin: 0 auto 35px auto;
cursor: pointer;
}
/* Responsive */
@media screen and (max-width: 650px) {
#list {
width: 50%;
display: inline-block!important;
margin: -2px;
text-align: center;
}
#list h4 {
margin-top: 20px;
margin-bottom: 10px;
}
h1,h2,h3,h4,h5,h6 {
text-align: center;
}
}
::-webkit-scrollbar { display:none}
$('.toggle-button').click(function(){
$('.toggle-content').slideToggle();
});
Also see: Tab Triggers