blob: f4df9b6933d30307d56ecff4f5ef7033fe686eea [file] [log] [blame]
window.transport = {{.Transport}}();
window.socketAddr = "{{.SocketAddr}}";
function highlight(selector) {
var speed = 50;
var obj = $(selector).stop(true, true)
for (var i = 0; i < 5; i++) {
obj.addClass("highlight", speed)
obj.delay(speed)
obj.removeClass("highlight", speed)
}
}
function highlightAndClick(selector) {
highlight(selector);
setTimeout(function() {
$(selector)[0].click()
}, 750);
}
function click(selector) {
$(selector)[0].click();
}