This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Remote terminal</title> | |
<link rel="stylesheet" href="xterm.css" /> | |
<script src="terminal.class.js"></script> | |
This file contains 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
$(() => { | |
let update_form_listeners = () => { | |
// Always check that the onsubmit attribute ends by return false; otherwise the page will reload | |
$("form[onsubmit] input:last-of-type").each((index, element) => { | |
if ($(element).parents('form').attr('onsubmit').substr(-13) !== 'return false;') { | |
$(element).parents('form').attr('onsubmit', $(element).parents('form').attr('onsubmit')+'return false;'); | |
} | |
}); | |
$("form[onsubmit] input:last-of-type").keypress((e) => { |
This file contains 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
<script> | |
window.customElements.define('get-import', class extends HTMLElement { | |
constructor() { | |
super(); | |
if (this.hasAttribute('url')) | |
window.fetch(this.attributes.url.value) | |
.then(res => res.text()) | |
.then(txt => this.outerHTML = txt); | |
} | |
}); |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Déganimation</title> | |
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> | |
<script> | |
window.cursorPos = {x: 0, y: 0}; |
NewerOlder