﻿var time = document.getElementById('auto-time').value;
var timer = setTimeout(function () {
    window.location = window.location.href.substring(0, window.location.href.lastIndexOf('/'))
}, time* 1000);