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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <h1>Infoplay 2.0 Beispiel</h1>

  <input id="item-number" value="123.456.78" />
  <button id="infoplay-button">Infoplay 2.0 aufrufen</button>

  <strong>Hinweis:</strong> Der Infoplay-Item-Lookup liefert immer die gleichen Daten.<br>Nutzen Sie die Entwicklertools Ihres Browsers, um die genaue Struktur des Infoplay-Objekts herauszufinden.

              // Einstellungen für Integrationstest
oxomi_server = "oxomi2.de.scireum.com";

// OXOMI JavaScript Bibliothek einbinden und laden
setTimeout(function() {
  var script = document.createElement("script");
  script.type = "text/javascript";
  script.src = (window.location.protocol == 'https:' ? 'https:' : 'http:') + "//" + (typeof oxomi_server == 'undefined' ? 'oxomi.com' : oxomi_server) + "/assets/frontend/oxomi.js";
}, 0);

// Wir warten bis die OXOMI JavaScript Bibliothek geladen ist...
function oxomi_ready() {
    // Integration initialisieren
      "portal": "demo",
      "infoplayItemLookup": function(infoplayData, nextStep) {

          // Hier werden Ihre Artikelinformationen nachgeschaut
          // Aufruf ihrer eigenen Webservice-Schnittstelle
          // ...hier am Beispiel eines Mock-Webservice 
          $.ajax('https://private-b64244-infoplay.apiary-mock.com/articel-info/'+ infoplayData.itemNumber, 
             {'success': function(meineDaten, status, jqxhr) { 

                // Neues Item zum befüllen definieren 
                var artikeldaten = {};

                // Artikelnummer aus dem Aufruf übernehmen
                artikeldaten['itemNumber'] = infoplayData.itemNumber;

                // Stammdaten
                artikeldaten['supplierName'] = meineDaten['supplierName'];
                artikeldaten['shortText'] = meineDaten['shortText'];
                // artikeldaten['previewImageUrl']
                // artikeldaten['itemUrl']

                // Verkaufsdaten
                artikeldaten['quantity'] = meineDaten['minQuantity'];
                artikeldaten['quantityUnitName'] = meineDaten['quantityUnitName'];
                artikeldaten['additionalSections'] = [
                  {'fields': [
                      'name': 'Verkaufspreis',
                      'value': meineDaten['price'] + ' '+ meineDaten['currency']
                      'name': 'Mindestbestellmenge',
                      'value': meineDaten['minQuantity'] + ' ' + meineDaten['quantityUnitName']
                      'name': 'Bestellschritt',
                      'value': meineDaten['quantityStep'] + ' ' + meineDaten['quantityUnitName']
                  {'title' : 'Verfügbarkeit',
                   'fields' : [
                       'name': 'Hauptstandort',
                       'value': meineDaten['availability'] + ' ' + meineDaten['quantityUnitName']


                // Nachfolgenden Verarbeitungs-Schritt auslösen

      "infoplayBasketHandler": function(infoplayData, next) {

        alert(infoplayData.itemNumber + ": " + infoplayData.quantity);

        // Hier Warenkorb URL aufrufen und Antwort verarbeiten
  // Infoplay Funktion auf den Eingabe-Button legen
  $('#infoplay-button').bind('click', function(e) {
    // Infoplay für den angegeben Aritkel aufrufen 
    oxomi.infoplayItem({'itemNumber': $('#item-number').val()});
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.