dist/hashedit.js
function() {

      var menu, data, xhr, url, help, els, x, title = '', arr;

      // create menu
      menu = document.createElement('menu');
      menu.setAttribute('class', 'hashedit-menu');
      menu.innerHTML =
        '<div class="hashedit-menu-body"></div>';

      // append menu
      hashedit.current.container.appendChild(menu);

      // focused
      if(document.querySelector('.hashedit-focused') != null) {

        var el = document.querySelector('.hashedit-focused');

        if(document.querySelector('[focused-content]') == null) {
          el.style.display = 'none';
        }

        el.addEventListener('click', function(e) {

          var url = window.location.href.replace('mode=page', 'mode=focused');
          //location.href = url;

          var iframe = window.parent.document.getElementsByTagName('iframe')[0];

          iframe.setAttribute('src', url);

          console.log(iframe);

          });

      }

    }
function() {

      var menu, data, xhr, url, help, els, x, title = '', arr;

      // create menu
      menu = document.createElement('menu');
      menu.setAttribute('class', 'hashedit-menu');
      menu.innerHTML =
        '<div class="hashedit-menu-body"></div>';

      // append menu
      hashedit.current.container.appendChild(menu);

      // focused
      if(document.querySelector('.hashedit-focused') != null) {

        var el = document.querySelector('.hashedit-focused');

        if(document.querySelector('[focused-content]') == null) {
          el.style.display = 'none';
        }

        el.addEventListener('click', function(e) {

          var url = window.location.href.replace('mode=page', 'mode=focused');
          //location.href = url;

          var iframe = window.parent.document.getElementsByTagName('iframe')[0];

          iframe.setAttribute('src', url);

          console.log(iframe);

          });

      }

    }
function ( ) { var menu , data , xhr , url , help , els , x , title = '' , arr ; // create menu menu = document . createElement ( 'menu' ) ; menu . setAttribute ( 'class' , 'hashedit-menu' ) ; menu . innerHTML = '<div class="hashedit-menu-body"></div>' ; // append menu hashedit . current . container . appendChild ( menu ) ; // focused if ( document . querySelector ( '.hashedit-focused' ) != null ) { var el = document . querySelector ( '.hashedit-focused' ) ; if ( document . querySelector ( '[focused-content]' ) == null ) { el . style . display = 'none' ; } el . addEventListener ( 'click' , function ( e ) { var url = window . location . href . replace ( 'mode=page' , 'mode=focused' ) ; //location.href = url; var iframe = window . parent . document . getElementsByTagName ( 'iframe' ) [ 0 ] ; iframe . setAttribute ( 'src' , url ) ; console . log ( iframe ) ; } ) ; } }
Create the menu
Create the menu