web/js/main.js
/**
       * Utility function to create elements. If no tag name is given,
       * a DIV is created. Optionally properties can be passed.
       */
Utility function to create elements. If no tag name is given,
a DIV is created. Optionally properties can be passed.
Utility function to create elements . If no tag name is given a DIV is created . Optionally properties can be passed .
function createEl(tag, prop) {
        var el = document.createElement(tag || 'div')
          , n
        for(n in prop) el[n] = prop[n]
        return el
      }
function createEl ( tag , prop ) { var el = document . createElement ( tag || 'div' ) , n for ( n in prop ) el [ n ] = prop [ n ] return el }
Utility function to create elements.
Utility function to create elements .