Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

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.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

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.

+ add another resource


Add Packages

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.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <span id="status"></span>
<table id="results">


                #status {
	font-style: italic;

table {
	border-collapse: collapse;
	border: 3px solid;
	width: 100%;

thead th, tbody td {
	border: 3px solid;	
	padding: 5px;

thead th {
	text-align: center;

tbody tr:nth-child(odd) {
  background-color: #c0c0c0;


to get your author id, go to your profile and it's in the url:
const authorId = 201258;

async function getAllArticlesForAuthor(id, page=1, articles = []) {
  let url = `${id}&page=${page}&portal=all&sort=newest`;
  let resp = await fetch(url);
  let data = await resp.json();
  let newArticles =;
  if(newArticles.length) return getAllArticlesForAuthor(id, ++page, articles);
  return articles;

(async () => {
	let status = document.querySelector('#status');
	status.innerHTML = 'Getting articles...';
  let articles = await getAllArticlesForAuthor(authorId);
  articles.sort((a,b) => b.views - a.views);

  date is either in ms or a string, so let's rock...
  */ => {
    a.articleDate = new Date(a.articleDate);
    return a;
	let s = '';
	articles.forEach(a => {
		s += `<tr>
		<td><a href="${a.articleLink}" target="_new">${a.title}</a></td>
	status.innerHTML = '';
	document.querySelector('tbody').innerHTML = s;