outline/userInput.js
function WildCardButtons () {
      var menuDiv = myDocument.getElementById(outline.UserInput.menuID)
      var div = menuDiv.insertBefore(myDocument.createElement('div'), menuDiv.firstChild)
      var input1 = div.appendChild(myDocument.createElement('input'))
      var input2 = div.appendChild(myDocument.createElement('input'))
      input1.type = 'button'; input1.value = 'New...'
      input2.type = 'button'; input2.value = 'Know its URI'

      function highlightInput (e) { // same as the one in newMenu()
        var menu = myDocument.getElementById(outline.UserInput.menuID)
        if (menu.lastHighlight) menu.lastHighlight.className = ''
        menu.lastHighlight = UI.utils.ancestor(UI.utils.getTarget(e), 'INPUT')
        if (!menu.lastHighlight) return // mouseover <TABLE>
        menu.lastHighlight.className = 'activeItem'
      }
      div.addEventListener('mouseover', highlightInput, false)
      input1.addEventListener('click', this.createNew, false)
      input2.addEventListener('click', this.inputURI, false)
    }
function WildCardButtons () {
      var menuDiv = myDocument.getElementById(outline.UserInput.menuID)
      var div = menuDiv.insertBefore(myDocument.createElement('div'), menuDiv.firstChild)
      var input1 = div.appendChild(myDocument.createElement('input'))
      var input2 = div.appendChild(myDocument.createElement('input'))
      input1.type = 'button'; input1.value = 'New...'
      input2.type = 'button'; input2.value = 'Know its URI'

      function highlightInput (e) { // same as the one in newMenu()
        var menu = myDocument.getElementById(outline.UserInput.menuID)
        if (menu.lastHighlight) menu.lastHighlight.className = ''
        menu.lastHighlight = UI.utils.ancestor(UI.utils.getTarget(e), 'INPUT')
        if (!menu.lastHighlight) return // mouseover <TABLE>
        menu.lastHighlight.className = 'activeItem'
      }
      div.addEventListener('mouseover', highlightInput, false)
      input1.addEventListener('click', this.createNew, false)
      input2.addEventListener('click', this.inputURI, false)
    }
function WildCardButtons ( ) { var menuDiv = myDocument . getElementById ( outline . UserInput . menuID ) var div = menuDiv . insertBefore ( myDocument . createElement ( 'div' ) , menuDiv . firstChild ) var input1 = div . appendChild ( myDocument . createElement ( 'input' ) ) var input2 = div . appendChild ( myDocument . createElement ( 'input' ) ) input1 . type = 'button' ; input1 . value = 'New...' input2 . type = 'button' ; input2 . value = 'Know its URI' function highlightInput ( e ) { // same as the one in newMenu() var menu = myDocument . getElementById ( outline . UserInput . menuID ) if ( menu . lastHighlight ) menu . lastHighlight . className = '' menu . lastHighlight = UI . utils . ancestor ( UI . utils . getTarget ( e ) , 'INPUT' ) if ( ! menu . lastHighlight ) return // mouseover <TABLE> menu . lastHighlight . className = 'activeItem' } div . addEventListener ( 'mouseover' , highlightInput , false ) input1 . addEventListener ( 'click' , this . createNew , false ) input2 . addEventListener ( 'click' , this . inputURI , false ) }
Add the buttons which allow the suer to craete a new object Or reference an exiting one with a URI.
Add the buttons which allow the suer to craete a new object Or reference an exiting one with a URI .