Created
May 5, 2020 20:31
-
-
Save chaotic3quilibrium/00dd58adb64f893f93f24a6047c97eb5 to your computer and use it in GitHub Desktop.
ScalaBoi: Posting a Twitter Thread of Tweets - Stage 1 - Create the Webpage App Backbone
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
import scalatags.JsDom.all._ | |
val textAreaInput = | |
textarea.render | |
val buttonExecuteTransform = | |
button("Execute Transform").render | |
val textAreaOutput = | |
textarea.render | |
buttonExecuteTransform.onclick = | |
(e: Any) => | |
textAreaOutput.innerHTML = | |
textAreaInput.value | |
Fiddle.print( | |
table( | |
tr(td(p("Input:").render)), | |
tr(td(textAreaInput)) | |
), | |
hr, | |
p(buttonExecuteTransform), | |
hr, | |
table( | |
tr(p("Output:").render), | |
tr(textAreaOutput) | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment