(Go Back) Choose State To Move From
') {
return;
}
var content = document.getElementById('content');
var info = document.getElementById('info');
var start = document.getElementById('start');
var end = document.getElementById('end');
var duration = document.getElementById('duration');
var go = document.getElementById('go');
var startTime = 0;
var endTime = 0;
var setDuration = function() {
duration.value = endTime - startTime;
};
var setInfo = function() {
info.innerHTML = 'startTime: ' + startTime + ', endTime: ' + endTime;
};
var getDuration = function() {
var duration = endTime - startTime;
return duration;
};
var getStartTime = function() {
return startTime;
};
var getEndTime = function() {
return endTime;
};
var setStartTime = function(value) {
startTime = value;
setInfo();
setDuration();
};
var setEndTime = function(value) {
endTime = value;
setInfo();
setDuration();
};
var setStartTimeByDuration = function(duration) {
setStartTime(endTime - duration);
};
var setEndTimeByDuration = function(duration) {
setEndTime(startTime + duration);
};
var setStartTimeByPercent = function(percent) {
var duration = getDuration();
var _startTime = startTime + duration * percent;
setStartTime(_startTime);
};
var setEndTimeByPercent = function(percent) {
var duration = getDuration();
var _endTime = endTime + duration * percent;
setEndTime(_endTime);
};
var setStartTimeByPercentOfDuration = function(percent) {
var _duration = getDuration() * percent;
setStartTimeByDuration(_duration);
};
var setEndTimeByPercentOfDuration = function(percent) {
var _duration = getDuration() * percent;
setEndTimeByDuration(_duration);
};
var setStartTimeByPercentOfWindow = function(percent) {
var _duration = window.duration * percent;
setStartTimeByDuration(_duration);
};
var setEndTimeByPercentOfWindow = function(percent) {
var _duration = window.duration * percent;
setEndTimeByDuration(_duration);
};
var setStartTimeByPercentOfContent = function(percent) {
var _duration = content.duration * percent;
setStartTimeByDuration(_duration);
};
var setEndTimeByPercentOfContent = function(percent) {
var _duration = content.duration * percent;
setEndTimeByDuration(_duration);
};
var setStartTimeByPercentOfInfo = function(percent) {
var _duration = info.duration * percent;
setStartTimeByDuration(_duration);
};
var setEndTimeByPercentOfInfo = function(percent) {
var _duration = info.duration * percent;
setEndTimeByDuration(_duration);
};
var setStartTimeByPercentOfStart = function(percent) {
var _duration = start.duration * percent;
setStartTimeByDuration(_duration);
};
var setEndTimeByPercentOfStart = function(percent) {
var _duration = start.duration * percent;
setEndTimeByDuration(_duration);
};
var setStartTimeByPercentOfEnd = function(percent) {
var _duration = end.duration * percent;
setStartTimeByDuration(_duration);
};
var setEndTimeByPercentOfEnd = function(percent) {
var _duration = end.duration * percent;
setEndTimeByDuration(_duration);
};
var setStartTimeByPercentOfDurationByPercent = function(percent) {
var _duration = getDuration() * percent;
setStartTimeByPercentOfDuration(_duration);
};
var setEndTimeByPercentOfDurationByPercent = function(percent) {
var _duration = getDuration() * percent;
setEndTimeByPercentOfDuration(_duration);
};
var setStartTimeByPercentOfWindowByPercent = function(percent) {
var _duration = window.duration * percent;
setStartTimeByPercentOfWindow(_duration);
};
var setEndTimeByPercentOfWindowByPercent = function(percent) {
var _duration = window.duration * percent;
setEndTimeByPercentOfWindow(_duration);
};
var setStartTimeByPercentOfContentByPercent = function(percent) {
var _duration = content.duration * percent;
setStartTimeByPercentOfContent(_duration);
};
var setEndTimeByPercentOfContentByPercent = function(percent) {
var _duration = content.duration * percent;
setEndTimeByPercentOfContent(_duration);
};
var setStartTimeByPercentOfInfoByPercent = function(percent) {
var _duration = info.duration * percent;
setStartTimeByPercentOfInfo(_duration);
};
var setEndTimeByPercentOfInfoByPercent = function(percent) {
var _duration = info.duration * percent;
setEndTimeByPercentOfInfo(_duration);
};
var setStartTimeByPercentOfStartByPercent = function(percent) {
var _duration = start.duration * percent;
setStartTimeByPercentOfStart(_duration);
};
var setEndTimeByPercentOfStartByPercent = function(percent) {
var _duration = start.duration * percent;
setEndTimeByPercentOfStart(_duration);
};
var setStartTimeByPercentOfEndByPercent = function(percent) {
var _duration = end.duration * percent;
setStartTimeByPercentOfEnd(_duration);
};
var setEndTimeByPercentOfEndByPercent = function(percent) {
var _duration = end.duration * percent;
setEndTimeByPercentOfEnd(_duration);
};
var setStartTimeByPercentOfDurationByPercentOfDuration = function(percent) {
var _percent = getDuration() * percent;
setStartTimeByPercentOfDuration(_percent);
};
var setEndTimeByPercentOfDurationByPercentOfDuration = function(percent) {
var _percent = getDuration() * percent;
setEndTimeByPercentOfDuration(_percent);
};
var setStartTimeByPercentOfWindowByPercentOfWindow = function(percent) {
var _percent = window.duration * percent;
setStartTimeByPercentOfWindow(_percent);
};
var setEndTimeByPercentOfWindowByPercentOfWindow = function(percent) {
var _percent = window.duration * percent;
setEndTimeByPercentOfWindow(_percent);
};
var setStartTimeByPercentOfContentByPercentOfContent = function(percent) {
var _percent = content.duration * percent;
setStartTimeByPercentOfContent(_percent);
};
var setEndTimeByPercentOfContentByPercentOfContent = function(percent) {
var _percent = content.duration * percent;
setEndTimeByPercentOfContent(_percent);
};
var setStartTimeByPercentOfInfoByPercentOfInfo = function(percent) {
var _percent = info.duration * percent;
setStartTimeByPercentOfInfo(_percent);
};
var setEndTimeByPercentOfInfoByPercentOfInfo = function(percent) {
var _percent = info.duration * percent;
setEndTimeByPercentOfInfo(_percent);
};
var setStartTimeByPercentOfStartByPercentOfStart = function(percent) {
var _percent = start.duration * percent;
setStartTimeByPercentOfStart(_percent);
};
var setEndTimeByPercentOfStartByPercentOfStart = function(percent) {
var _percent = start.duration * percent;
setEndTimeByPercentOfStart(_percent);
};
var setStartTimeByPercentOfEndByPercentOfEnd = function(percent) {
var _percent = end.duration * percent;
setStartTimeByPercentOfEnd(_percent);
};
var setEndTimeByPercentOfEndByPercentOfEnd = function(percent) {
var _percent = end.duration * percent;
setEndTimeByPercentOfEnd(_percent);
};
var setStartTimeByPercentOfWindowByPercentOfContent = function(percent) {
var _percent = window.duration * percent;
setStartTimeByPercentOfContent(_percent);
};
var setEndTimeByPercentOfWindowByPercentOfContent = function(percent) {
var _percent = window.duration * percent;
setEndTimeByPercentOfContent(_percent);
};
var setStartTimeByPercentOfWindowByPercentOfInfo = function(percent) {
var _percent = window.duration * percent;
setStartTimeByPercentOfInfo(_percent);
};
var setEndTimeByPercentOfWindowByPercentOfInfo = function(percent) {
var _percent = window.duration * percent;
setEndTimeByPercentOfInfo(_percent);
};
var setStartTimeByPercentOfWindowByPercentOfStart = function(percent) {
var _percent = window.duration * percent;
setStartTimeByPercentOfStart(_percent);
};
var setEndTimeByPercentOfWindowByPercentOfStart = function(percent) {
var _percent = window.duration * percent;
setEndTimeByPercentOfStart(_percent);
};
var setStartTimeByPercentOfWindowByPercentOfEnd = function(percent) {
var _percent = window.duration * percent;
setStartTimeByPercentOfEnd(_percent);
};
var setEndTimeByPercentOfWindowByPercentOfEnd = function(percent) {
var _percent = window.duration * percent;
setEndTimeByPercentOfEnd(_percent);
};
var setStartTimeByPercentOfContentByPercentOfWindow = function(percent) {
var _percent = content.duration * percent;
setStartTimeByPercentOfWindow(_percent);
};
var setEndTimeByPercentOfContentByPercentOfWindow = function(percent) {
var _percent = content.duration * percent;
setEndTimeByPercentOfWindow(_percent);
};
var setStartTimeByPercentOfContentByPercent