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

              
                <!-- https://ar-js-org.github.io/AR.js-Docs/-->
<!--Note to self: In order for this code  to work, the following things are required for the gltf-model:
The entire folder with scene.bin and scene.gltf must be uploaded to GitHub
The URL must include https
The URL must start with https://arjs-cors-proxy.herokuapp.com/
Check that gltf is working at https://gltf-viewer.donmccurdy.com/
-->

<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
  <!-- we import arjs version without NFT but with marker + location based support -->
  <script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar.js"></script>
  <body style="margin : 0px; overflow: hidden;">
    <a-scene embedded arjs>
      <!--Pattern Marker Example Use this Marker Generator https://jeromeetienne.github.io/AR.js/three.js/examples/marker-training/examples/generator.html-->
<a-marker-camera type='pattern' url='https://makeademic.github.io/InteractiveMethods/pattern-images.patt'></a-marker-camera>

        <!--Text example-->
        <a-text value="Coastal \n Carolina \n University" color="#006F71" position="0 0 -1" rotation="-90 0 0"></a-text>
</a-marker>
     

      <!--Hiro Example-->
      <a-marker preset="hiro">
       
        <!--Image Example (must be a .png; the .jpg just shows up as white square, you can also modify width="200" height="100" added after src="" but before>)-->
       <!-- <a-image position="0 0 -2" rotation="-90 0 0" src="https://makeademic.github.io/InteractiveMethods/pattern-images.png"></a-image> </a-marker>-->
        <!--3D Model Example-->
        <a-entity
          position="0 0 0"
          scale="0.02 0.02 0.02"
rotation="0 0 0"
          gltf-model="https://arjs-cors-proxy.herokuapp.com/https://makeademic.github.io/InteractiveMethods/emily_keychain/scene.gltf"
        ></a-entity>
      
      <a-entity camera></a-entity>
    </a-scene>
  </body>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console