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.
<header>
<div class="container">
<div id="branding">
<h1><span class="highlight">Maple Grove</span> Kid Connection</h1>
</div>
<div id="email-section">
<p><a href="">samplemail@gmail.com</a></p>
</div>
<div id="phone-section">
<p>Phone: (555) 555-555</p>
<small>Mon-Fri, 9am-3pm</small>
</div>
</div>
</header>
<section id="showcase">
<div class="container">
</div>
</section>
<section>
<div class="container">
<div id="site-description">
<h1>Licensed In-Home Daycare</h1>
<p>There's no need to call dozens of providers as you look for an opening.</p>
<p>We will help connect you.</p>
<a href="#referral-form"><button>Get a Referall</button></a>
</div>
</div>
</section>
<main>
<form id="referral-form" method="post">
<p id="description">Referall Form</p>
<div id="input-form" class="container">
<div class="label-side">
<label>Name: </label>
</div>
<div class="input-side">
<input id="name" type="text" name="name" placeholder="Enter your name" required>
</div>
<div class="label-side">
<label>Email: </label>
</div>
<div class="input-side">
<input id="email" type="email" name="email" placeholder="Enter your email" required>
</div>
<div class="label-side">
<label>Phone Number: </label>
</div>
<div class="input-side">
<input id="phone" type="text" name="number" placeholder="(xxx) xxx-xxxx" required>
</div>
<div class="label-side">
<label>Address: </label>
</div>
<div class="input-side">
<input id="address" type="text" name="address" placeholder="Enter your address" required>
</div>
<div class="label-side">
<label>Ages of Your Children (at the time you wish to start care): </label>
</div>
<div class="input-side">
<input id="age" type="text" name="age" placeholder="Newborn, 9 months, 5 years old, etc." required>
</div>
<div class="label-side">
<label>Begin Care Date: </label>
</div>
<div class="input-side">
<input id="begin-care" type="text" name="begin-care" placeholder="mm/dd/yyyy" required>
</div>
<div class="label-side">
<label>Days and Hours You Need Care: </label>
</div>
<div class="input-side">
<input id="days-hours" type="text" name="days-hours" placeholder="M-F, 7:30 - 5:00" required>
</div>
<div class="label-side">
<label>Primary location desired in Maple Grove (could be route you drive by or elementary school you are closest to): </label>
</div>
<div class="input-side">
<input id="location" type="text" name="location" placeholder="Near Bass Lake and 494" required>
</div>
<div class="label-side">
<label>Message: </label>
</div>
<div class="input-side">
<textarea id="message" placeholder="Additional Details"></textarea>
</div>
</div>
<div id="button">
<button id="submit">Submit</button>
</div>
</form>
</main>
<footer>
<div class="container">
<p>Kid Connection</p>
</div>
</footer>
@import url('https://fonts.googleapis.com/css?family=Dosis');
/* GLOBAL */
body {
font-family: 'Dosis', sans-serif;
padding: 0;
margin: 0;
background-color: #79D2CC;
}
ul, h1, small, p {
padding: 0;
margin: 0;
}
.container {
width: 80%;
margin: auto;
overflow: hidden;
}
/* HEADER */
header {
color: #fff;
border-bottom: 3px solid #ee59ba;
height: 5em;
}
header h1 {
margin-top: 20px;
}
header #branding {
float: left;
margin-top: 0px;
}
#email-section {
float: left;
margin-left: 275px;
margin-top: 30px;
}
#phone-section {
float: left;
margin-left: 75px;
margin-top: 20px;
}
#phone-section p {
font-size: 1.2rem;
}
header nav {
float: right;
margin-top: 25px;
}
header li {
display: inline;
float: left;
padding: 0 30px;
}
header a {
color: #fff;
text-decoration: none;
/* text-transform: uppercase;*/
font-size: 1.2rem;
}
header a:hover {
color: #ee59ba;
}
.highlight {
color: #ee59ba;
}
/* SHOWCASE */
#showcase {
min-height: 495px;
width: 100%;
background-color: #f4f4f4;
background-image: url(http://www.nataliemartinphoto.com/wp/wp-content/uploads/2017/05/Babies-for-instagram_0013.jpg);
background-repeat: no-repeat;
background-attachment: fixed;
background-position:
center -200px;
background-size: cover;
border-bottom: 3px solid #ee59ba;
}
/* SITE DESCRIPTION */
#site-description {
text-align: center;
}
#site-description > h1 {
margin-top: 15px;
}
#site-description p {
margin: 15px 0;
}
#site-description > a > button {
height: 3em;
width: 15em;
border-style: none;
border-radius: 2%;
color: white;
background-color: #B03B4C;
letter-spacing: 0.2em;
font-weight: bold;
font-size: 1em;
text-transform: uppercase;
border: 2px solid black;
margin-bottom: 25px;
}
#site-description > a > button:hover {
color: black;
}
/* Referrall Form */
main {
background-color: #F9F6EC;
margin: 0 auto;
width: 50%;
border-radius: 2%;
}
#description {
text-align: center;
padding-top: 30px;
padding-bottom: 20px;
font-size: 1.7em;
}
#input-form {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 1.7em 1em;
}
.label-side {
justify-self: end;
text-align: right;
padding-left: 4em;
}
.input-side {
justify-self: start;
}
#name, #email, #phone, #address, #age, #begin-care, #days-hours, #location {
height: 2em;
width: 20em;
}
#message {
height: 15em;
width: 20em;
}
#button {
text-align: center;
padding: 1.7em 0px;
}
#submit:hover {
color: black;
}
#submit {
height: 3em;
width: 10em;
border-style: none;
border-radius: 2%;
color: white;
background-color: #B03B4C;
letter-spacing: 0.4em;
font-weight: bold;
font-size: 1em;
text-transform: uppercase;
border: 2px solid black;
}
/* FOOTER */
footer {
text-align: center;
margin: 25px;
}
/*
MEDIA QUERIES:
Smartphones: max-width: 480px;
iPads: min-width 768px ---- max-width: 1200px;
*/
@media (max-width: 576px){
main {
width: 85vw;
}
#input-form {
grid-template-columns: 1fr;
}
.label-side {
justify-self: start;
text-align: left;
}
.input-side {
justify-self: start;
padding-left: 4em;
}
#name, #email, #phone, #address, #age, #begin-care, #days-hours, #location {
width: 18em;
}
}
@media (max-width: 1000px){
#showcase {
background-image: url(http://www.nataliemartinphoto.com/wp/wp-content/uploads/2017/05/Babies-for-instagram_0013.jpg);
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center -250px;
background-size: cover;
min-height: 305px;
}
}
Also see: Tab Triggers