dist/hashedit.js
function(el) {

      var menu, span;

      // set element
      el.setAttribute('hashedit-element', '');

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

      // create a handle
      span = document.createElement('span');
      span.setAttribute('class', 'hashedit-move');
      span.innerHTML = '<i class="material-icons">apps</i> ' + hashedit.i18n('Move');

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

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

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

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

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

      // append the handle to the wrapper
      el.appendChild(menu);

    }
function(el) {

      var menu, span;

      // set element
      el.setAttribute('hashedit-element', '');

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

      // create a handle
      span = document.createElement('span');
      span.setAttribute('class', 'hashedit-move');
      span.innerHTML = '<i class="material-icons">apps</i> ' + hashedit.i18n('Move');

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

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

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

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

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

      // append the handle to the wrapper
      el.appendChild(menu);

    }
function ( el ) { var menu , span ; // set element el . setAttribute ( 'hashedit-element' , '' ) ; // create element menu menu = document . createElement ( 'span' ) ; menu . setAttribute ( 'class' , 'hashedit-element-menu' ) ; menu . setAttribute ( 'contentEditable' , 'false' ) ; menu . innerHTML = '<label><i class="material-icons">more_vert</i> ' + hashedit . i18n ( 'Content Menu' ) + '</label>' ; // create a handle span = document . createElement ( 'span' ) ; span . setAttribute ( 'class' , 'hashedit-move' ) ; span . innerHTML = '<i class="material-icons">apps</i> ' + hashedit . i18n ( 'Move' ) ; // append the handle to the wrapper menu . appendChild ( span ) ; span = document . createElement ( 'span' ) ; span . setAttribute ( 'class' , 'hashedit-properties' ) ; span . innerHTML = '<i class="material-icons">settings</i> ' + hashedit . i18n ( 'Settings' ) ; // append the handle to the wrapper menu . appendChild ( span ) ; span = document . createElement ( 'span' ) ; span . setAttribute ( 'class' , 'hashedit-remove' ) ; span . innerHTML = '<i class="material-icons">cancel</i> ' + hashedit . i18n ( 'Remove' ) ; // append the handle to the wrapper menu . appendChild ( span ) ; // append the handle to the wrapper el . appendChild ( menu ) ; }
Adds an element menu to a given element
@param {DOMElement} el
Adds an element menu to a given element