dist/hashedit.js
function() {

      var x, els, y, div, blocks, el, next, previous, span;

      blocks = hashedit.config.blocks;

      // setup sortable classes
      els = document.querySelectorAll('[hashedit] ' + blocks);


      // set [data-hashedit-sortable=true]
      for (y = 0; y < els.length; y += 1) {

        // setup blocks
        if(els[y].querySelector('.hashedit-block-menu') === null) {

          els[y].setAttribute('hashedit-block', '');

          // create element menu
          div = document.createElement('DIV');
          div.setAttribute('class', 'hashedit-block-menu');
          div.setAttribute('contentEditable', 'false');
          div.innerHTML = '<label><i class="material-icons">more_vert</i> ' + hashedit.i18n('Layout Menu') + '</label>';

          // create up
          span = document.createElement('span');
          span.setAttribute('class', 'hashedit-block-add');
          span.innerHTML = '<i class="material-icons">add</i> ' + hashedit.i18n('Add');

          // append the handle to the wrapper
          div.appendChild(span);

          // create up
          span = document.createElement('span');
          span.setAttribute('class', 'hashedit-block-up');
          span.innerHTML = '<i class="material-icons">arrow_upward</i> ' + hashedit.i18n('Move Up');

          // append the handle to the wrapper
          div.appendChild(span);

          // create down
          span = document.createElement('span');
          span.setAttribute('class', 'hashedit-block-down');
          span.innerHTML = '<i class="material-icons">arrow_downward</i> ' + hashedit.i18n('Move Down');

          // append the handle to the wrapper
          div.appendChild(span);

          // create remove
          span = document.createElement('span');
          span.setAttribute('class', 'hashedit-block-duplicate');
          span.innerHTML = '<i class="material-icons">content_copy</i> ' + hashedit.i18n('Duplicate');

          // append the handle to the wrapper
          div.appendChild(span);

          // create properties
          span = document.createElement('span');
          span.setAttribute('class', 'hashedit-block-properties');
          span.innerHTML = '<i class="material-icons">settings</i> ' + hashedit.i18n('Settings');

          // append the handle to the wrapper
          div.appendChild(span);

          // create remove
          span = document.createElement('span');
          span.setAttribute('class', 'hashedit-block-remove');
          span.innerHTML = '<i class="material-icons">cancel</i> ' + hashedit.i18n('Remove');

          // append the handle to the wrapper
          div.appendChild(span);

          els[y].appendChild(div);

        }

      }

    }
function() {

      var x, els, y, div, blocks, el, next, previous, span;

      blocks = hashedit.config.blocks;

      // setup sortable classes
      els = document.querySelectorAll('[hashedit] ' + blocks);


      // set [data-hashedit-sortable=true]
      for (y = 0; y < els.length; y += 1) {

        // setup blocks
        if(els[y].querySelector('.hashedit-block-menu') === null) {

          els[y].setAttribute('hashedit-block', '');

          // create element menu
          div = document.createElement('DIV');
          div.setAttribute('class', 'hashedit-block-menu');
          div.setAttribute('contentEditable', 'false');
          div.innerHTML = '<label><i class="material-icons">more_vert</i> ' + hashedit.i18n('Layout Menu') + '</label>';

          // create up
          span = document.createElement('span');
          span.setAttribute('class', 'hashedit-block-add');
          span.innerHTML = '<i class="material-icons">add</i> ' + hashedit.i18n('Add');

          // append the handle to the wrapper
          div.appendChild(span);

          // create up
          span = document.createElement('span');
          span.setAttribute('class', 'hashedit-block-up');
          span.innerHTML = '<i class="material-icons">arrow_upward</i> ' + hashedit.i18n('Move Up');

          // append the handle to the wrapper
          div.appendChild(span);

          // create down
          span = document.createElement('span');
          span.setAttribute('class', 'hashedit-block-down');
          span.innerHTML = '<i class="material-icons">arrow_downward</i> ' + hashedit.i18n('Move Down');

          // append the handle to the wrapper
          div.appendChild(span);

          // create remove
          span = document.createElement('span');
          span.setAttribute('class', 'hashedit-block-duplicate');
          span.innerHTML = '<i class="material-icons">content_copy</i> ' + hashedit.i18n('Duplicate');

          // append the handle to the wrapper
          div.appendChild(span);

          // create properties
          span = document.createElement('span');
          span.setAttribute('class', 'hashedit-block-properties');
          span.innerHTML = '<i class="material-icons">settings</i> ' + hashedit.i18n('Settings');

          // append the handle to the wrapper
          div.appendChild(span);

          // create remove
          span = document.createElement('span');
          span.setAttribute('class', 'hashedit-block-remove');
          span.innerHTML = '<i class="material-icons">cancel</i> ' + hashedit.i18n('Remove');

          // append the handle to the wrapper
          div.appendChild(span);

          els[y].appendChild(div);

        }

      }

    }
function ( ) { var x , els , y , div , blocks , el , next , previous , span ; blocks = hashedit . config . blocks ; // setup sortable classes els = document . querySelectorAll ( '[hashedit] ' + blocks ) ; // set [data-hashedit-sortable=true] for ( y = 0 ; y < els . length ; y += 1 ) { // setup blocks if ( els [ y ] . querySelector ( '.hashedit-block-menu' ) === null ) { els [ y ] . setAttribute ( 'hashedit-block' , '' ) ; // create element menu div = document . createElement ( 'DIV' ) ; div . setAttribute ( 'class' , 'hashedit-block-menu' ) ; div . setAttribute ( 'contentEditable' , 'false' ) ; div . innerHTML = '<label><i class="material-icons">more_vert</i> ' + hashedit . i18n ( 'Layout Menu' ) + '</label>' ; // create up span = document . createElement ( 'span' ) ; span . setAttribute ( 'class' , 'hashedit-block-add' ) ; span . innerHTML = '<i class="material-icons">add</i> ' + hashedit . i18n ( 'Add' ) ; // append the handle to the wrapper div . appendChild ( span ) ; // create up span = document . createElement ( 'span' ) ; span . setAttribute ( 'class' , 'hashedit-block-up' ) ; span . innerHTML = '<i class="material-icons">arrow_upward</i> ' + hashedit . i18n ( 'Move Up' ) ; // append the handle to the wrapper div . appendChild ( span ) ; // create down span = document . createElement ( 'span' ) ; span . setAttribute ( 'class' , 'hashedit-block-down' ) ; span . innerHTML = '<i class="material-icons">arrow_downward</i> ' + hashedit . i18n ( 'Move Down' ) ; // append the handle to the wrapper div . appendChild ( span ) ; // create remove span = document . createElement ( 'span' ) ; span . setAttribute ( 'class' , 'hashedit-block-duplicate' ) ; span . innerHTML = '<i class="material-icons">content_copy</i> ' + hashedit . i18n ( 'Duplicate' ) ; // append the handle to the wrapper div . appendChild ( span ) ; // create properties span = document . createElement ( 'span' ) ; span . setAttribute ( 'class' , 'hashedit-block-properties' ) ; span . innerHTML = '<i class="material-icons">settings</i> ' + hashedit . i18n ( 'Settings' ) ; // append the handle to the wrapper div . appendChild ( span ) ; // create remove span = document . createElement ( 'span' ) ; span . setAttribute ( 'class' , 'hashedit-block-remove' ) ; span . innerHTML = '<i class="material-icons">cancel</i> ' + hashedit . i18n ( 'Remove' ) ; // append the handle to the wrapper div . appendChild ( span ) ; els [ y ] . appendChild ( div ) ; } } }
Sets up block
@param {Array} sortable
Sets up block