Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <script src='https://widget.tibit.com/assets/js/tib-2.2-load.js'></script>

<h2>tib</h2>
<h4>Support Syncthing with a quick micro-donation.</h4>

<button class='bd-tib-btn withshadow' 
  data-bd-TIB='syncthing.net'
  data-bd-BTN='bar' 
  data-bd-SUB='tibit-codepen-syncthing'>
</button>

<p class='notes'>
  Please note: Chrome <a href=https://goo.gl/dzSlws>issue 597641</a> prevents navigation of sandboxed popup windows in CodePen.<br> This does not impact 'real world' tibbing, but for this demo we recommend using a different broswer.
</p>

<p class='notes'>
  Registration is required to send tibs, but it only takes a second.<br>
  New signups get two free tibs to see how <a href='https://tibit.com'>tibit</a> works.
</p>
              
            
!

CSS

              
                .bd-btn-text .bd-btn-pretib::after { 
  content: 'tib Syncthing'; }

.bd-btn-text .bd-btn-posttib::after {
  content: 'Thanks!'; }

.bd-tib-btn[data-bd-BTN='bar'] {
  background-color: #5CB85C; }

.bd-tib-btn[data-bd-BTN='bar'].tibbed {
  background-color: #337AB7; } 

/* AUXILLIARY FOR CODEPEN DEMO */

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #333;   background-color: #EEE;
  text-align: center; }
.notes {
  margin-top: 50px; 
  font-size: 70%; font-style: italic; }


              
            
!

JS

              
                tibInit({
  'PAD': 'mytibs9YhLYtrVhQkmTdbDS51H54WyrxTx'
   // change to Syncthing static bitcoin address from Coinbase
});

// With a testnet bitcoin address, demo mode is active, and the 'tibbed' state will reset after one minutes rather than one day.
              
            
!
999px

Console