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.
.modal
.side
.skew
h3 Google OnHub Shell
img(src="https://cbwconline.com/IMG/Codepen//OnHub%20Skin.png")
.btn Total Price: $37.98
.header
h1 Enter Payment Details
.form
form
fieldset.number
label(for='number') Card Number
input#number(type='num' maxlength='4')
input(type='num' maxlength='4')
input(type='num' maxlength='4')
input(type='num' maxlength='4')
fieldset.name
label(for='name') Cardholder Name
input#name(type='text')
fieldset.exp
label(for='exp') Expiration
select#exp
option ...
option Jan
option Feb
option Mar
option Apr
option May
option Jun
option Jul
option Aug
option Sep
option Oct
option Nov
option Dec
select
option ...
option 2016
option 2017
option 2018
option 2019
option 2020
option 2021
option 2022
option 2023
option 2024
option 2025
fieldset.ccv
label(for='ccv') CCV
input#ccv(type='num' maxlength='3')
button(type='button') Confirm And Pay
*, :before,:after {
box-sizing: border-box;
margin: 0;
}
html {
background: url('https://cbwconline.com/IMG/Codepen/Dark-Grey-Repeating-Background.png');
}
body {
background: radial-gradient(ellipse at center, rgba(#000, .02) 0%, rgba(#000, .6) 100%);
height: 100vh;
overflow: hidden;
color: #FFF;
font-family: Roboto;
}
.modal {
height: 400px;
width: 650px;
margin: auto;
box-shadow: 0 15px 35px rgba(#000, .5);
position: absolute;
top: 0; bottom: 0;
left: 0; right: 0;
font-size: 0;
}
.side {
background: linear-gradient(-45deg, #001F60, #009DE0);
height: 100%;
width: 100%;
position: relative;
.skew {
background: #F6F6F6;
height: 110%;
width: 45%;
padding: 20px;
box-shadow: 0 8px 16px rgba(#000, .25);
position: absolute;
top: -5%;
z-index: 5;
transform: skew(8deg);
* {
transform: skew(-8deg);
}
h3 {
color: #474747;
font: 25px Roboto;
text-align: center;
}
img {
width: 100%;
margin: 25px 0;
}
.btn {
background: #474747;
width: 180px;
margin: 10px auto;
padding: 10px 18px;
font-size: 16px;
text-align: center;
border-radius: 3px;
box-shadow: 0px 3px 10px rgba(#000, .25);
cursor: default;
}
}
}
.header {
width: 60%;
position: absolute;
top: 0;
right: 0;
h1 {
background: linear-gradient(-45deg, #2ed6bc, #01BCE6);
padding: 10px 25px;
font: 25px Roboto;
}
}
.form {
width: 350px;
height: 100%;
position: absolute;
top: 56px;
right: 0;
}
input, select, fieldset, button {
border: none;
outline: none;
font: 16px Roboto;
}
fieldset {
display: block;
}
label {
display: block;
color: #01BCE6;
font: 500 13px Roboto;
}
input, select {
background: rgba(#FFF, .18);
padding: 8px 12px;
margin: 5px 5px 5px 0;
border-radius: 3px;
color: #FFF;
&:nth-last-of-type(1) {
margin-right: 0;
}
}
option {
background: #474747;
}
.number input {
width: calc(25% - 7px);
}
.name input {
width: 100%;
}
.exp, .ccv {
display: inline-block;
}
.exp {
width: 60%;
select {
width: calc(50% - 5px);
}
}
.ccv {
width: 40%;
input {
width: 100%;
}
}
button {
display: block;
background: linear-gradient(-45deg, #2ed6bc, #01BCE6);
width: 200px;
color: white;
padding: 10px 18px;
margin: 40px auto;
font-size: 18px;
border-radius: 22px;
box-shadow: 0 5px 10px rgba(#000, .2);
cursor: pointer;
}
//Daily UI #001 here: https://codepen.io/koenigsegg1/pen/wGoRRR
Also see: Tab Triggers