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.
<!-- Polyfill and TwitterStatus loaded in settigs -->
<div class="container">
<p>Embed tweets on your site with the <a href="https://github.com/abraham/twitter-status"><twitter-status></a> Web Component.</p>
<twitter-status></twitter-status>
<twitter-status status='{"created_at":"Tue Mar 21 20:50:14 +0000 2006","id":20,"id_str":"20","full_text":"just setting up my twttr","truncated":false,"display_text_range":[0,24],"entities":{"hashtags":[],"symbols":[],"user_mentions":[],"urls":[]},"source":"<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>","in_reply_to_status_id":null,"in_reply_to_status_id_str":null,"in_reply_to_user_id":null,"in_reply_to_user_id_str":null,"in_reply_to_screen_name":null,"user":{"id":12,"id_str":"12","name":"jack","screen_name":"jack","location":"","description":"","url":null,"entities":{"description":{"urls":[]}},"protected":false,"followers_count":4133490,"friends_count":3196,"listed_count":27270,"created_at":"Tue Mar 21 20:50:14 +0000 2006","favourites_count":19728,"utc_offset":-28800,"time_zone":"Pacific Time (US & Canada)","geo_enabled":true,"verified":true,"statuses_count":22897,"lang":"en","contributors_enabled":false,"is_translator":false,"is_translation_enabled":false,"profile_background_color":"EBEBEB","profile_background_image_url":"http://abs.twimg.com/images/themes/theme7/bg.gif","profile_background_image_url_https":"https://abs.twimg.com/images/themes/theme7/bg.gif","profile_background_tile":false,"profile_image_url":"http://pbs.twimg.com/profile_images/839863609345794048/mkpdB9Tf_normal.jpg","profile_image_url_https":"https://pbs.twimg.com/profile_images/839863609345794048/mkpdB9Tf_normal.jpg","profile_banner_url":"https://pbs.twimg.com/profile_banners/12/1483046077","profile_link_color":"990000","profile_sidebar_border_color":"DFDFDF","profile_sidebar_fill_color":"F3F3F3","profile_text_color":"333333","profile_use_background_image":true,"has_extended_profile":true,"default_profile":false,"default_profile_image":false,"following":false,"follow_request_sent":false,"notifications":false,"translator_type":"regular"},"geo":null,"coordinates":null,"place":null,"contributors":null,"is_quote_status":false,"retweet_count":106177,"favorite_count":79867,"favorited":false,"retweeted":false,"lang":"en"}'></twitter-status>
</div>
body {
background-color: #fff;
}
.container {
margin: 0 auto;
max-width: 640px;
}
twitter-status {
margin: 8px 0;
}
document.querySelector('twitter-status').status = {
"created_at": "Mon May 05 22:09:42 +0000 2014",
"id": 463440424141459456,
"id_str": "463440424141459456",
"full_text": "Sunsets don't get much better than this one over @GrandTetonNPS. #nature #sunset http://t.co/YuKy2rcjyU",
"truncated": false,
"display_text_range": [
0,
103
],
"entities": {
"hashtags": [
{
"text": "nature",
"indices": [
65,
72
]
},
{
"text": "sunset",
"indices": [
73,
80
]
}
],
"symbols": [],
"user_mentions": [
{
"screen_name": "GrandTetonNPS",
"name": "Grand Teton NP",
"id": 44991932,
"id_str": "44991932",
"indices": [
49,
63
]
}
],
"urls": [],
"media": [
{
"id": 463440423352950784,
"id_str": "463440423352950784",
"indices": [
81,
103
],
"media_url": "http://pbs.twimg.com/media/Bm54nBCCYAACwBi.jpg",
"media_url_https": "https://pbs.twimg.com/media/Bm54nBCCYAACwBi.jpg",
"url": "http://t.co/YuKy2rcjyU",
"display_url": "pic.twitter.com/YuKy2rcjyU",
"expanded_url": "https://twitter.com/Interior/status/463440424141459456/photo/1",
"type": "photo",
"sizes": {
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"medium": {
"w": 960,
"h": 541,
"resize": "fit"
},
"small": {
"w": 680,
"h": 383,
"resize": "fit"
},
"large": {
"w": 960,
"h": 541,
"resize": "fit"
}
}
}
]
},
"extended_entities": {
"media": [
{
"id": 463440423352950784,
"id_str": "463440423352950784",
"indices": [
81,
103
],
"media_url": "http://pbs.twimg.com/media/Bm54nBCCYAACwBi.jpg",
"media_url_https": "https://pbs.twimg.com/media/Bm54nBCCYAACwBi.jpg",
"url": "http://t.co/YuKy2rcjyU",
"display_url": "pic.twitter.com/YuKy2rcjyU",
"expanded_url": "https://twitter.com/Interior/status/463440424141459456/photo/1",
"type": "photo",
"sizes": {
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"medium": {
"w": 960,
"h": 541,
"resize": "fit"
},
"small": {
"w": 680,
"h": 383,
"resize": "fit"
},
"large": {
"w": 960,
"h": 541,
"resize": "fit"
}
}
}
]
},
"source": "<a href=\"http://twitter.com/download/iphone\" rel=\"nofollow\">Twitter for iPhone</a>",
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 76348185,
"id_str": "76348185",
"name": "US Department of the Interior",
"screen_name": "Interior",
"location": "Washington, DC",
"description": "Protecting America’s Great Outdoors and Powering Our Future",
"url": "http://t.co/gUty7d4LZ8",
"entities": {
"url": {
"urls": [
{
"url": "http://t.co/gUty7d4LZ8",
"expanded_url": "http://www.doi.gov",
"display_url": "doi.gov",
"indices": [
0,
22
]
}
]
},
"description": {
"urls": []
}
},
"protected": false,
"followers_count": 4670964,
"friends_count": 142470,
"listed_count": 7436,
"created_at": "Tue Sep 22 14:36:29 +0000 2009",
"favourites_count": 3095,
"utc_offset": -18000,
"time_zone": "Eastern Time (US & Canada)",
"geo_enabled": true,
"verified": true,
"statuses_count": 18401,
"lang": "en",
"contributors_enabled": false,
"is_translator": false,
"is_translation_enabled": false,
"profile_background_color": "C6E2EE",
"profile_background_image_url": "http://pbs.twimg.com/profile_background_images/688410897/0390727e0b833fa7f8536a100da185fa.jpeg",
"profile_background_image_url_https": "https://pbs.twimg.com/profile_background_images/688410897/0390727e0b833fa7f8536a100da185fa.jpeg",
"profile_background_tile": false,
"profile_image_url": "http://pbs.twimg.com/profile_images/432081479/DOI_LOGO_normal.jpg",
"profile_image_url_https": "https://pbs.twimg.com/profile_images/432081479/DOI_LOGO_normal.jpg",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/76348185/1493749877",
"profile_link_color": "1F98C7",
"profile_sidebar_border_color": "FFFFFF",
"profile_sidebar_fill_color": "DAECF4",
"profile_text_color": "050505",
"profile_use_background_image": true,
"has_extended_profile": true,
"default_profile": false,
"default_profile_image": false,
"following": false,
"follow_request_sent": false,
"notifications": false,
"translator_type": "none"
},
"geo": null,
"coordinates": null,
"place": null,
"contributors": null,
"is_quote_status": false,
"retweet_count": 2763,
"favorite_count": 4216,
"favorited": false,
"retweeted": false,
"possibly_sensitive": false,
"possibly_sensitive_appealable": false,
"lang": "en"
};
Also see: Tab Triggers