cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

              <div class="oj-margin content-container">
  <label for="text-input">Enter an alphabet if you can: </label>
  <input id="text-input" type="text" data-bind="ojComponent: {component: 'ojInputText', rawValue: value}" />
  <span class="oj-label">Current component value is: </span>
  <span id="text-value" data-bind="text: number"></span>
              // alta css and font-awesome is include through settings

.oj-inputtext {
  display: inline-flex;
], function(ko, oj, $) {
  'use strict';

  var ViewModel = function() {
    var self = this;

    self.value = ko.observable();

    self.number = ko.computed(function() {
      var cleanValue = undefined;
      if (this.value() !== undefined)
        cleanValue = this.value().replace(/\D/g, '');
      if (cleanValue !== this.value())
      return cleanValue;
    }, this);

  ko.applyBindings(new ViewModel());

Loading ..................