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.

            
              <div class="alert alert-info small"><i class="fa fa-comment"></i>&nbsp;&nbsp;Drag &amp; Drop fields from the left (Available Fields) over to the right side in the desired location on your dashboard.</div>
<span name="el_validationErrorFields"></span>
<br />
<div class="row dragSortableItems">
  <div class="col-md-6">
    <div class="card">
      <div class="card-header"><i class="fa fa-folder-open"></i>&nbsp;&nbsp;Available Fields</div>
      <div class="card-body well">
        <ul id="in_available_fields" name="in_available_fields" class="custom-scrollbar in_available_fields sortable-list fixed-panel ui-sortable">
          <li class="sortable-item  allowSecondary allowExport" data-fid="3">Tool Description</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="4">Tool Type</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="5">Tool Suite</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="6">Tool Portfolio</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="7">Tool Status</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="8">Tool Owner QID</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="9">Tool Owner NTID</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="10">Tool Owner Email</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="11">Tool Owner First Name</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="12">Tool Owner Last Name</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="13">Tool Owner Preferred Name</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="14">Tool Owner Name</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="15">Tool Owner Location</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="16">Tool Owner Title</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="17">Tool Last Updated Date</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="18">Tool Suite Owner QID</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="19">Tool Suite Owner NTID</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="20">Tool Suite Owner Email</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="21">Tool Suite Owner First Name</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="22">Tool Suite Owner Last Name</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="23">Tool Suite Owner Preferred Name</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="24">Tool Suite Owner Name</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="25">Tool Suite Owner Location</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="26">Tool Suite Owner Title</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="27">Tool Portfolio Owner QID</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="28">Tool Portfolio Owner NTID</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="29">Tool Portfolio Owner Email</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="30">Tool Portfolio Owner First Name</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="31">Tool Portfolio Owner Last Name</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="32">Tool Portfolio Owner Preferred Name</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="33">Tool Portfolio Owner Name</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="34">Tool Portfolio Owner Location</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="35">Tool Portfolio Owner Title</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="36">Planned Replacement</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="37">Deprecation ETA</li>
          <li class="sortable-item  allowSecondary allowExport" data-fid="38">Deprecation Notes</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="39">Replacement</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="40">Decommission Date</li>
          <li class="sortable-item  allowSecondary allowExport" data-fid="41">Decommission Notes</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="42">Info Sec Approved</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="43">Single Sign on</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="44">Major Tool</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="45">Tool Tier</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="51">Tool Owner Group</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="52">Tool Main Link</li>
          <li class="sortable-item allowPrimary allowSecondary allowExport" data-fid="53">Userbase Count</li>
        </ul>
      </div>
    </div>
  </div>
  <div class="col-md-6">
    <div class="card primaryPanel">
      <div class="card-header"><i class="fa fa-star"></i>&nbsp;&nbsp;Primary Fields</div>
      <div class="card-body well">
        <div class="alert alert-warning small">
          <center>No Fields Selected</center>
        </div>
        <ul name="in_primary_fields" class="sortable-list primaryDropzone fixed-panel"></ul>
      </div>
    </div>
    <br />
    <div class="card secondaryPanel">
      <div class="card-header"><i class="fa fa-star-o"></i>&nbsp;&nbsp;Secondary Fields</div>
      <div class="card-body well">
        <div class="alert alert-warning small">
          <center>No Fields Selected</center>
        </div>
        <ul name="in_secondary_fields" class="sortable-list secondaryDropzone fixed-panel" data-fieldtype="secondary"></ul>
      </div>
    </div>
    <br />
    <div class="card exportPanel">
      <div class="card-header"><i class="fa fa-download"></i>&nbsp;&nbsp;Export Fields</div>
      <div class="card-body well">
        <div class="alert alert-warning small">
          <center>No Fields Selected</center>
        </div>
        <ul name="in_export_fields" class="sortable-list exportDropzone fixed-panel"></ul>
      </div>
    </div>
  </div>
</div>

            
          
!
            
              // Card style
.card {
	border: 0 solid #edf2f9;
	border-radius: .375rem;
  -webkit-box-shadow: 0 7px 14px 0 rgba(59,65,94,.1), 0 3px 6px 0 rgba(0,0,0,.07);
  box-shadow: 0 7px 14px 0 rgba(59,65,94,.1), 0 3px 6px 0 rgba(0,0,0,.07);
}
.card-body {
	padding: .5rem;
  background-color: #f9fafd !important;
}
.card-header {
	padding: 1rem 1.25rem;
	background-color: #fff;
	border-bottom: 0 solid #edf2f9
}


// Sortable items
.dragableMultiselect {
  display: none;
}
.dragSortableItems {
  .sortable-list {
    list-style: none;
    margin: 0;
    min-height: 20px;
    padding: 0px;
  }
  .sortable-item {
    background-color: #fff;
    border: 1px solid #ddd;
    display: block;
    margin-bottom: -1px;
    padding: 10px;
    cursor: move;
    position: relative;
    padding-left: 30px;

    .icon-drag {
      color: #ccc;
      position: absolute;
      left: 10px;
      top: 50%;
      transform: translateY(-50%);
    }
    
    .sortable-item-input {
      visibility: hidden;
      pointer-events: none;
      position: absolute;
    }
  }
  
  // Item placeholder (visual helper)
  .placeholder {
    border: 1px dashed #666;
    height: 45px;
    margin-bottom: 5px;
  }

  .fixed-panel {
    max-height: 500px;
    overflow-y: auto;
    padding-bottom: 1px;
  }
}


// Scrollbar Style
.custom-scrollbar::-webkit-scrollbar {
  width: 7px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #888;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  // background: transparent;
  border-radius: 5px; 
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #555; 
}




 
            
          
!
            
              // On ready
$(document).ready(function() {

  // Set up our dropzone
  $('#in_available_fields').sortable({
    connectWith: '.sortable-list',
    placeholder: 'placeholder',
    start: function(event, ui) {
      if (!$(ui.item).hasClass("allowPrimary")) {
        $(".primaryPanel").removeClass('panel-primary').addClass("panel-danger");
      }
      if (!$(ui.item).hasClass("allowSecondary")) {
        $(".secondaryPanel").removeClass('panel-primary').addClass("panel-danger");
      }
      if (!$(ui.item).hasClass("allowExport")) {
        $(".exportPanel").removeClass('panel-primary').addClass("panel-danger");
      }
      checkFields()
    },
    stop: function(event, ui) {
      if (!$(ui.item).hasClass("allowPrimary")) {
        $(".primaryPanel").removeClass("panel-danger").addClass('panel-primary');
      }
      if (!$(ui.item).hasClass("allowSecondary")) {
        $(".secondaryPanel").removeClass("panel-danger").addClass('panel-primary');
      }
      if (!$(ui.item).hasClass("allowExport")) {
        $(".exportPanel").removeClass("panel-danger").addClass('panel-primary');
      }
    },
    change: function(event, ui) {
      checkFields();
    },
    update: function(event, ui) {
      checkFields();
    },
    out: function(event, ui) {
      checkFields();
    }
  }).disableSelection();

  // Enable dropzone for primary fields
  $('.primaryDropzone').sortable({
    connectWith: '.sortable-list',
    placeholder: 'placeholder',
    receive: function(event, ui) {
      // If we dont allow primary fields here, cancel
      if (!$(ui.item).hasClass("allowPrimary")) {
        $(ui.placeholder).css('display', 'none');
        $(ui.sender).sortable("cancel");
      }
    },
    over: function(event, ui) {
      if (!$(ui.item).hasClass("allowPrimary")) {
        $(ui.placeholder).css('display', 'none');
      } else {
        $(ui.placeholder).css('display', '');
      }
    },
    start: function(event, ui) {
      checkFields()
    },
    change: function(event, ui) {
      checkFields();
    },
    update: function(event, ui) {
      checkFields();
    },
    out: function(event, ui) {
      checkFields();
    }
  }).disableSelection();

  // Enable dropzone for secondary fields
  $('.secondaryDropzone').sortable({
    connectWith: '.sortable-list',
    placeholder: 'placeholder',
    receive: function(event, ui) {
      // If we dont allow secondary fields here, cancel
      if (!$(ui.item).hasClass("allowSecondary")) {
        $(ui.sender).sortable("cancel");
      }
    },
    over: function(event, ui) {
      if (!$(ui.item).hasClass("allowSecondary")) {
        $(ui.placeholder).css('display', 'none');
      } else {
        $(ui.placeholder).css('display', '');
      }
      checkFields();
    },
    start: function(event, ui) {
      if (!$(ui.item).hasClass("allowPrimary")) {
        $(".primaryPanel").removeClass('panel-primary').addClass("panel-danger");
      }
      if (!$(ui.item).hasClass("allowSecondary")) {
        $(".secondaryPanel").removeClass('panel-primary').addClass("panel-danger");
      }
      if (!$(ui.item).hasClass("allowExport")) {
        $(".exportPanel").removeClass('panel-primary').addClass("panel-danger");
      }
      checkFields();
    },
    stop: function(event, ui) {
      if (!$(ui.item).hasClass("allowPrimary")) {
        $(".primaryPanel").removeClass("panel-danger").addClass('panel-primary');
      }
      if (!$(ui.item).hasClass("allowSecondary")) {
        $(".secondaryPanel").removeClass("panel-danger").addClass('panel-primary');
      }
      if (!$(ui.item).hasClass("allowExport")) {
        $(".exportPanel").removeClass("panel-danger").addClass('panel-primary');
      }
    },
    change: function(event, ui) {
      checkFields();
    },
    update: function(event, ui) {
      checkFields();
    },
    out: function(event, ui) {
      checkFields();
    }
  }).disableSelection();

  // Enable dropzone for export fields
  $('.exportDropzone').sortable({
    connectWith: '.sortable-list',
    placeholder: 'placeholder',
    receive: function(event, ui) {
      // If we dont allow export fields here, cancel
      if (!$(ui.item).hasClass("allowExport")) {
        $(ui.sender).sortable("cancel");
      }
      checkFields();
    },
    over: function(event, ui) {
      if (!$(ui.item).hasClass("allowExport")) {
        $(ui.placeholder).css('display', 'none');
      } else {
        $(ui.placeholder).css('display', '');
      }
      checkFields();
    },
    start: function(event, ui) {
      if (!$(ui.item).hasClass("allowPrimary")) {
        $(".primaryPanel").removeClass('panel-primary').addClass("panel-danger");
      }
      if (!$(ui.item).hasClass("allowSecondary")) {
        $(".secondaryPanel").removeClass('panel-primary').addClass("panel-danger");
      }
      if (!$(ui.item).hasClass("allowExport")) {
        $(".exportPanel").removeClass('panel-primary').addClass("panel-danger");
      }
      checkFields()
    },
    stop: function(event, ui) {
      if (!$(ui.item).hasClass("allowPrimary")) {
        $(".primaryPanel").removeClass("panel-danger").addClass('panel-primary');
      }
      if (!$(ui.item).hasClass("allowSecondary")) {
        $(".secondaryPanel").removeClass("panel-danger").addClass('panel-primary');
      }
      if (!$(ui.item).hasClass("allowExport")) {
        $(".exportPanel").removeClass("panel-danger").addClass('panel-primary');
      }
    },
    change: function(event, ui) {
      checkFields();
    },
    update: function(event, ui) {
      checkFields();
    },
    out: function(event, ui) {
      checkFields();
    }
  }).disableSelection();

});

// Checks to see if the fields section has fields selected. If not, shows a placeholder
function checkFields() {
  if ($('[name=in_primary_fields] li').length >= 1) {
    $('.primaryPanel').find('.alert').hide();
  } else {
    $('.primaryPanel').find('.alert').show();
  }

  if ($('[name=in_secondary_fields] li').length >= 1) {
    $('.secondaryPanel').find('.alert').hide();
  } else {
    $('.secondaryPanel').find('.alert').show();
  }

  if ($('[name=in_export_fields] li').length >= 1) {
    $('.exportPanel').find('.alert').hide();
  } else {
    $('.exportPanel').find('.alert').show();
  }
}

            
          
!
999px
🕑 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.

Console