JS cleanup

This commit is contained in:
Thomas Walpole 2018-11-13 10:37:25 -08:00
parent 8e7bad8710
commit dc6dd8e619
2 changed files with 6 additions and 6 deletions

View File

@ -159,25 +159,25 @@ $(function() {
$(this).attr('confirmed', 'false');
}
}
})
});
$('#delayed-page-change').click(function() {
setTimeout(function() {
window.location.pathname = '/with_html'
}, 500)
})
});
$('#with-key-events').keydown(function(e){
$('#key-events-output').append('keydown:'+e.which+' ')
});
$('#disable-on-click').click(function(e){
var input = this
var input = this;
setTimeout(function() {
input.disabled = true;
}, 500)
})
});
$('#set-storage').click(function(e){
sessionStorage.setItem('session', 'session_value');
localStorage.setItem('local', 'local value');
})
});
$('#multiple-file').change(function(e){
$('body').append($('<p class="file_change"input_event_triggered">File input changed</p>'));
})

View File

@ -4,7 +4,7 @@
<title>This is the child frame title</title>
<script>
function closeWin() {
var iframe = window.parent.document.getElementById('childFrame')
var iframe = window.parent.document.getElementById('childFrame');
iframe.parentNode.removeChild(iframe)
}
</script>