Update description

This commit is contained in:
Faisal Salman
2023-02-07 09:03:44 +07:00
parent 882c6a4e06
commit e7c0d35ce6
2 changed files with 10 additions and 5 deletions

View File

@@ -109,17 +109,17 @@ $(document)
$('#demo-select').dropdown({
values: values,
onChange: function (val) {
$('#ua-txt-info').text('Result for:');
$('#ua-txt-info').text('For a given user-agent:');
updateDemo(val);
}
});
$('#demo-btn').click(function() {
$('#ua-txt-info').text('Result for:');
$('#ua-txt-info').text('For a given user-agent:');
updateDemo($('input[name=custom-ua]').val());
});
$('input[name=custom-ua]').keypress(function (e) {
if (e.which == 13) {
$('#ua-txt-info').text('Result for:');
$('#ua-txt-info').text('For a given user-agent:');
updateDemo($(this).val());
return false;
}