src/js/utils.js
branchpopcorn-port
changeset 103 2dfd89e91c3a
parent 99 912f100fecb0
child 160 d3f336807ec3
equal deleted inserted replaced
102:67e8179afde5 103:2dfd89e91c3a
    22     return fn.call(obj, args);
    22     return fn.call(obj, args);
    23   }
    23   }
    24 }
    24 }
    25 
    25 
    26 /* convert a time to a percentage in the media */
    26 /* convert a time to a percentage in the media */
    27 IriSP.timeToPourcent = function(time,timetotal){
    27 IriSP.timeToPourcent = function(time, timetotal){
    28 	return (parseInt(Math.round(time/timetotal*100)));
    28 	return (parseInt(Math.round(time/timetotal*100)));
    29 };
    29 };
    30 
    30 
    31 /* for ie compatibility
    31 /* for ie compatibility
    32 if (Object.prototype.__defineGetter__&&!Object.defineProperty) {
    32 if (Object.prototype.__defineGetter__&&!Object.defineProperty) {