Skip to content

Instantly share code, notes, and snippets.

@Linux-cpp-lisp
Created October 9, 2012 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Linux-cpp-lisp/3861582 to your computer and use it in GitHub Desktop.
Save Linux-cpp-lisp/3861582 to your computer and use it in GitHub Desktop.
Some Basic HTML, CSS, and JavaScript
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