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.
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" media="screen" href="css/main.css" />
<link href="main.css" rel="stylesheet" type="text/css">
<title>Beauty & Style Quotes</title>
</head>
<body>
<h1>Simple Quote Generator</h1>
<div id="quoteDisplay">
<!--Quotes will display here-->
</div>
<button onclick="newQuote()">New Quote</button>
<script src="main.js"></script>
</body>
</html>
h1{
text-transform: lowercase;
color:#ff0000;
}
var quotes = [
"To me, beauty and makeup and color is like the finishing touch on everything. - Marc Jacobs",
"Whether I\'m wearing lots of makeup or no makeup, I\'m always the same person. - Lady Gaga",
"Whether you are sixteen or over 60, remember, understatement is the rule of a fine makeup artist. - Helena Rubinstein",
"Fashion is about dressing according to what\'s fashionable. Style is more about being yourself. - Oscar de la Renta",
"Fashion is all about happiness. It\'s all fun. It\'s important. But it\'s not medicine. - Donatella Versace",
"Today I see beauty everywhere I go, in every face I see, in every single soul. - Kevyn Aucoin",
"I don\'t design clothes, I design dreams. - Ralph Lauren",
"When in doubt, wear red. - Bill Blass",
"Attitude is everything. - Diane von Furstenberg",
"I don\'t do fashion, I am fashion. - Coco Chanel",
];
function newQuote() {
var randomNumber = Math.floor(Math.random() * (quotes.length));
document.getElementById('quoteDisplay').innerHTML = quotes[randomNumber];
}
Also see: Tab Triggers