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.


Auto Save

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.






                // For configuration
// Set next line to true if you are blocking a single ip
single_ip = false;
// Fill next line always with single address you want to block or starting address of the range
start_ip = '';
// Fill if you are blockin a range of addresses with ending address of the range
end_ip = ''; 
geoipdata = null;
show_experiences = false;
convert.$.getJSON('', function(data) {
  geoipdata = data;
  if (geoipdata.ip == start_ip && show_experiences == true) {
		show_experiences = true;
	else if (( IPtoNum(start_ip) < IPtoNum(geoipdata.ip) && IPtoNum(end_ip) > IPtoNum(geoipdata.ip) )) {
    show_experiences = true; 

// Function converts IPs to Numbers
// which are easier to compare.
function IPtoNum(ip){
  return Number(
      .map(d => ("000"+d).substr(-3) )