Pen Settings

HTML

CSS

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

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

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.

HTML

              
                
              
            
!

CSS

              
                
              
            
!

JS

              
                /* To use this, add the entire script below as a Custom HTML tag in GTM that fires on every page. Wrap the entire script in plain script tags. Fire the tag on every page.
*/
// Update this block of variables with your information. 
var entityName = "UpBuild";
var entityType = "Organization"
var machineId = "/m/1234A6";
var wikipedia = "";

var sameAsHTML = "<span itemscope itemtype='http://schema.org/" + entityType + "'><span itemprop='name'>" +
                  entityName +
                  "</span><link itemprop='sameAs' href='https://www.google.com/search?q=knowledge+graph+search+api&kponly&kgmid=" + machineId + "'>" +
                  (wikipedia.length != 0 ? "<link itemprop='sameAs' href='" + wikipedia + "'></span>":"</span>"); 
                  
var regExNameSearch = new RegExp(entityName,"g");

// By default, this adds the MREID link to all brand-mentions in P tags. If you want to expand the scope, add other tag names seperated by commas within find().
jQuery(document).ready(function(){
  jQuery("body").find("p").each(function() {           
    jQuery(this).html(jQuery(this).html().replace(regExNameSearch,sameAsHTML));
  });
});
              
            
!
999px

Console