core_orig.js
// experiment object for storing session parameters, etc.
experiment object for storing session parameters, etc.
experiment object for storing session parameters etc .
function experiment(name) {
  this.beginTime= 0,
  this.endTime= 0,
  this.duration= 0,
  this.name= name,
  this.rootpath= '',
  this.mediapath= '',
  this.getDuration = function () {
    return this.endTime - this.beginTime
  },
  this.setBeginTime = function() {
    this.beginTime = performance.now()
  },
  this.setEndTime = function () {
    this.endTime = performance.now()
  },
  this.getMediaPath = function () {
    this.mediapath = path.join(__dirname, '/assets/')
    return this.mediapath
  },
  this.getRootPath = function () {
    this.rootpath = path.join(__dirname,'/')
    return this.rootpath
  }
}
function experiment ( name ) { this . beginTime = 0 , this . endTime = 0 , this . duration = 0 , this . name = name , this . rootpath = '' , this . mediapath = '' , this . getDuration = function ( ) { return this . endTime - this . beginTime } , this . setBeginTime = function ( ) { this . beginTime = performance . now ( ) } , this . setEndTime = function ( ) { this . endTime = performance . now ( ) } , this . getMediaPath = function ( ) { this . mediapath = path . join ( __dirname , '/assets/' ) return this . mediapath } , this . getRootPath = function ( ) { this . rootpath = path . join ( __dirname , '/' ) return this . rootpath } }
experiment object for storing session parameters, etc.
experiment object for storing session parameters etc .