HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
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.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
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.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<div id="body">
<button onclick="generateWord(144)">Genius</button>
<!-- <h2>Twits</h2> -->
<div id="list">
</div>
</div>
#body{
/* text-align: center; */
width: 460px;
margin: 0 auto;
}
#list{
/* width: 400px; */
}
button{
display: inline-block;
margin: 0 5px;
padding: 2px 15px;
font-size: 18px;
font-family: "Bitter",serif;
line-height: 1.6;
appearance: none;
box-shadow: none;
border-radius: 4px;
background: #346392;
border: none;
color: #fff;
}
blockquote.twitter-tweet {
width: 100%;
display: inline-block;
font-family: "Helvetica Neue", Roboto, "Segoe UI", Calibri, sans-serif;
font-size: 15px;
font-weight: bold;
line-height: 16px;
border-color: #eee #ddd #bbb;
border-radius: 5px;
border-style: solid;
border-width: 1px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
margin: 10px 5px;
padding: 0 16px 16px 16px;
max-width: 468px;
}
blockquote.twitter-tweet p {
font-size: 16px;
font-weight: normal;
line-height: 20px;
margin-left: 80px;
}
blockquote.twitter-tweet a {
color: inherit;
font-weight: normal;
text-decoration: none;
outline: 0 none;
}
blockquote.twitter-tweet a:hover,
blockquote.twitter-tweet a:focus {
text-decoration: underline;
}
.img {
float: left;
margin: 12px 0 0 0;
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR42nV7dXxc9/GtmsQgZmatWFoxMzNZzMzMksVokWVL5pgCjgN2yE3TNk3apm3aJE3TJI4pjtmWmSk/eu+8873rpu/98f6Yz/fC7t47Z2bOnNm9q2Qjs4WNzA4yOwfY2jvAzskRjs7Oc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j40yROaGobS6KvGKVFDVQPm+vrQ52t0aRo8rsvXVaQm49MDe7Dy9ee49ve/4vaXf5TY/+nKGXIBnT/9Ga4f+xLnVu7gxMlzOH30B+zf+xa8PBMRTBUnREuW+Poqp12Sv3mFfeSBBonxw0Q0wwtY915wJOG5UOKamjgxU42oAusIUh3JroogiBbIETipAZFxFdQIpYiKL0NkbClBqaDK7EZr1xg6ekaQl1eO/wMqgu6TsKIiCgAAAABJRU5ErkJggg==')
no-repeat
left center;
width: 64px;
height: 64px;
}
var table = {}
var beginings = {}
var s = 8
$.ajax({
url: "https://cdn.rawgit.com/dasDaniel/e5409cae91998fb8b463643ed4cc7563/raw/8afc345516844c64c61ffb4f578b98c33f192479/donald_tweets.txt",
dataType: "text",
success : function(data) {
processTweets(data.split('\n'));
}
});
// processTweets(`Today we honored our true American heroes on the first-ever National Vietnam War Veterans Day.#ThankAVeteran… https://t.co/deOHapcV4J
// .@FLOTUS Melania and I were honored to stop by the Women's Empowerment Panel this afternoon at the @WhiteHouse.… https://t.co/phLPw8lgTu
// Today's EO established a commission on combating drug addiction and the opioid crisis. Watch listening session➡️… https://t.co/ooF2ediqSt
// If the people of our great country could only see how viciously and inaccurately my administration is covered by certain media!
// Remember when the failing @nytimes apologized to its subscribers, right after the election, because their coverage was so wrong. Now worse!
// Why doesn't Fake News talk about Podesta ties to Russia as covered by @FoxNews or money from Russia to Clinton - sale of Uranium?
// A NEW ERA IN AMERICAN ENERGY! #MadeInTheUSA🇺🇸Watch here: https://t.co/EG02Fdlkba https://t.co/XT12jqoIqj
// It was an honor to welcome @GLFOP to the @WhiteHouse today with @VP Pence & Attorney General Sessions. THANK YOU fo… https://t.co/VHzTB4c69h
// The failing @NYTimes would do much better if they were honest! https://t.co/ATy8R3knS2
// Watch @foxandfriends now on Podesta and Russia!
// Big announcement by Ford today. Major investment to be made in three Michigan plants. Car companies coming back to U.S. JOBS! JOBS! JOBS!
// The Democrats will make a deal with me on healthcare as soon as ObamaCare folds - not long. Do not worry, we are in very good shape!
// The Republican House Freedom Caucus was able to snatch defeat from the jaws of victory. After so many bad years they were ready for a win!
// money to Bill, the Hillary Russian "reset," praise of Russia by Hillary, or Podesta Russian Company. Trump Russia story is a hoax. #MAGA!
// Why isn't the House Intelligence Committee looking into the Bill & Hillary deal that allowed big Uranium to go to Russia, Russian speech....
// General Kelly is doing a great job at the border. Numbers are way down. Many are not even trying to come in anymore.
// Democrats are smiling in D.C. that the Freedom Caucus, with the help of Club For Growth and Heritage, have saved Planned Parenthood & Ocare!
// Thanks you for all of the Trump Rallies today. Amazing support. We will all MAKE AMERICA GREAT AGAIN!
// Watch @JudgeJeanine on @FoxNews tonight at 9:00 P.M.
// ObamaCare will explode and we will all get together and piece together a great healthcare plan for THE PEOPLE. Do not worry!
// Happy #MedalOfHonorDay to our heroes! ➡️https://t.co/juAB1RmMh0 https://t.co/Sw5ea1OwUf
// Today, I was thrilled to announce a commitment of $25 BILLION & 20K AMERICAN JOBS over the next 4 years. THANK YOU… https://t.co/nWJ1hNmzoR
// Today, I was pleased to announce the official approval of the presidential permit for the #KeystonePipeline. A grea… https://t.co/GWNo2XAueg
// The irony is that the Freedom Caucus, which is very pro-life and against Planned Parenthood, allows P.P. to continue if they stop this plan!
// After seven horrible years of ObamaCare (skyrocketing premiums & deductibles, bad healthcare), this is finally your chance for a great plan!
// It was an honor to welcome so many truckers and trucking industry leaders to the @WhiteHouse today! https://t.co/M1veooVBNE
// We are taking action to #RepealANDReplace #Obamacare! Contact your Rep & tell them you support #AHCA. #PassTheBill… https://t.co/5lsrDJXfzb
// A great American, Kurt Cochran, was killed in the London terror attack. My prayers and condolences are with his family and friends.
// Just watched the totally biased and fake news reports of the so-called Russia story on NBC and ABC. Such dishonesty!
// Spoke to U.K. Prime Minister Theresa May today to offer condolences on the terrorist attack in London. She is strong and doing very well.
// Big day for healthcare. Working hard!
// Today on #NationalAgDay, we honor our great American farmers & ranchers. Their hard work & dedication are ingrained… https://t.co/IpGRhly2zj
// Honored to sign S.442 today. With this legislation, we support @NASA's scientists, engineers, and astronauts in the… https://t.co/Z5VwluvJQx
// Joined the @HouseGOP Conference this morning at the U.S. Capitol. https://t.co/03e4YBIWr0 #PassTheBill #MAGA🇺🇸… https://t.co/3swdFWGQtP
// Thank you Louisville, Kentucky. Together, we will MAKE AMERICA SAFE AND GREAT AGAIN! https://t.co/qGgWEWUvek
// Thank you Louisville, Kentucky- on my way! #MAGA🇺🇸 https://t.co/3QsBsib6kt
// Congratulations Eric & Lara. Very proud and happy for the two of you! https://t.co/s0T3cTQc40
// What about all of the contact with the Clinton campaign and the Russians? Also, is it true that the DNC would not let the FBI in to look?
// Just heard Fake News CNN is doing polls again despite the fact that their election polls were a WAY OFF disaster. Much higher ratings at Fox
// The Democrats made up and pushed the Russian story as an excuse for running a terrible campaign. Big advantage in Electoral College & lost!
// James Clapper and others stated that there is no evidence Potus colluded with Russia. This story is FAKE NEWS and everyone knows it!
// #ICYMI: Weekly Address ➡️https://t.co/ckVx2zgA1x https://t.co/dTGZLvlsGv`.split("\n"))
function processTweets (tweets) {
// console.log(tweets.length)
table = {}
beginings = {}
tweets.forEach(function(t){processTweet(t)})
generateWord(140)
}
function processTweet (tweet) {
// console.log(tweet)
var key, next
for (var i = 0; i < tweet.length - s - 1; i ++) {
key = tweet.slice(i, i + s)
next = tweet.slice(i + s, i + s + 1)
if(table[key] === undefined) table[key] = []
table[key].push(next)
if(i === 0){
if(beginings[key] === undefined) beginings[key] = []
beginings[key].push(next)
}
}
}
function generateWord (len) {
var k = Object.keys(beginings), n, l
var msg = k[Math.round(Math.random() * k.length)]
console.log(msg)
var node = document.createElement("blockquote");
node.className = 'twitter-tweet'
k = Object.keys(table)
for (var i = 0; i < len; i ++) {
l = msg.substr(-s)
n = table[l]
if (n === undefined) {
break;
// node.innerHTML = msg;
// document.getElementById("list").appendChild(node);
// return msg
}
msg += n[Math.floor(Math.random() * n.length)]
}
// return(msg)
node.innerHTML = '<div class="img"/></div><p>' + msg + "</p>";
var list = document.getElementById("list")
list.insertBefore(node, list.firstChild);
// document.getElementById("list").appendChild(node);
}
Also see: Tab Triggers