Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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.


<!DOCTYPE html>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Join Solid</title>
    <link rel="stylesheet" href="">
  <section class="section">
    <div class="container">
      <h1 class="title">
        Welcome to Solid!

      <section id="welcome">
        Do you have a Solid Pod?
        <button id="login" class="button button is-info is-rounded">Log in</button>
        No, choose from the list of Pod Providers!
        <a href="" target="_blank" class="button button is-info is-rounded">I Want a Solid Pod!</a>
      <section id="logout" style="display:none">
        <a id="user" target="_blank" href="#"></a>
        <button class="button button is-info is-rounded">Log out</button>        

  <script src=""></script>
  <script src=""></script>
    var authMethod = "oidc"
    function renderLogin(webId) {
      let logout = document.getElementById('logout')
      let welcome = document.getElementById('welcome')
      let user = document.getElementById('user') = ''           = 'none'             
      user.textContent = webId
      user.setAttribute('href', webId)
    function renderLogout() {
      let logout = document.getElementById('logout')
      let welcome = document.getElementById('welcome') = 'none'           = ''             
    function handleLogin() {
      // login event
      // oidc
      if (authMethod === "oidc") {
        solid.auth.trackSession(session => {        
          if (session && session.webId) {
          } else {

    // Log the user in and out on click        
    function addListeners() {
      let login = document.getElementById('login')
      let logout = document.getElementById('logout')
      // login and logout buttons
      logout.addEventListener('click', () => solid.auth.logout())

    function addLoginListener(login, popupUri) {
      if (authMethod === "oidc") {
        addOIDCLoginListener(login, popupUri)        
    function addOIDCLoginListener(login, popupUri) {
      var popupUri = popupUri || ''
      login.addEventListener('click', () => solid.auth.popupLogin({ popupUri }))