Created
October 9, 2012 21:28
-
-
Save Linux-cpp-lisp/3861582 to your computer and use it in GitHub Desktop.
Some Basic HTML, CSS, and JavaScript
This file contains hidden or 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
HTML: | |
<button id="b1" onclick="click()">Hi!</button> | |
JS: | |
function click() { | |
alert("Hi!"); | |
} | |
CSS: | |
#b1 { | |
background-color: black; | |
} | |
Instead, here's the concept of how this would look in RWeb: | |
p=Page.new do | |
title "Hi" | |
Center.new(Button.new do | |
text "Hi!" | |
onclick {AlertBox.new("Hi!").displayModal} | |
end) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment