This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log(`Name:`, await (await browser.status()).os.name); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#submit').on('click', function(){ | |
$('input').each(function(){ | |
var id = $(this).attr('id'); | |
var value = $(this).val(); | |
localStorage.setItem(id, value); | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var container = document.getElementsByTagName("form")[0]; | |
container.onkeyup = function(e) { | |
var target = e.srcElement; | |
var maxLength = parseInt(target.attributes["maxlength"].value, 10); | |
var myLength = target.value.length; | |
if (myLength >= maxLength) { | |
var next = target; | |
while (next = next.nextElementSibling) { | |
if (next == null) | |
break; |