Last active
January 30, 2017 01:54
-
-
Save 173210/8c84966696276f1bfa3e298edb53da2b to your computer and use it in GitHub Desktop.
見せてやりてえよマジ。くだらねえバグでn時間潰す人の顔ってのをさあ!
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> | |
<link crossorigin="anonymous" | |
href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css" | |
integrity="sha384-yzOI+AGOH+8sPS29CtL/lEWNFZ+HKVVyYxU0vjId0pMG6xn7UMDo9waPX5ImV0r6" | |
rel="stylesheet"> | |
</head> | |
<body> | |
<script crossorigin="anonymous" | |
integrity="sha384-VC7EHu0lDzZyFfmjTPJq+DFyIn8TUGAJbEtpXquazFVr00Q/OOx//RjiZ9yU9+9m" | |
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.js"> | |
</script> | |
<script crossorigin="anonymous" | |
integrity="sha384-OkuKCCwNNAv3fnqHH7lwPY3m5kkvCIUnsHbjdU7sN022wAYaQUfXkqyIZLlL0xQ/" | |
src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.js"> | |
</script> | |
<script crossorigin="anonymous" | |
integrity="sha384-MvrjhX+6l6e8cmMBH4YGr3kNtRDZF7AkVNSY/vXMvlhoYP2TJ9UoMf/Bcc3bTJhD" | |
src="https://cdnjs.cloudflare.com/ajax/libs/mithril/0.2.5/mithril.js"> | |
</script> | |
<script> | |
m.mount(document.body, { | |
view() { | |
return m("div", { | |
className: "modal fade", | |
config(element, initialized) { | |
if (!initialized) { | |
$(element) | |
.on("shown.bs.modal", () => setTimeout(m.redraw, 2000)) | |
.modal("show"); | |
} | |
}, | |
role: "dialog", | |
tabindex: "-1", | |
}, m("div", {className: "modal-dialog", role: "document"}, | |
m("form", {className: "modal-content"}, | |
m("div", {className: "modal-body"}, | |
"Click \"REDRAW\", or this dialog will disappear after 2 seconds.", | |
m("button", { | |
onclick: m.redraw, | |
type: "button", | |
}, "REDRAW") | |
) | |
) | |
)); | |
}, | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment