JS cleanup
This commit is contained in:
parent
8e7bad8710
commit
dc6dd8e619
|
@ -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>'));
|
||||
})
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue