Skip to content

Instantly share code, notes, and snippets.

@chaotic3quilibrium
Created May 5, 2020 20:31
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 chaotic3quilibrium/00dd58adb64f893f93f24a6047c97eb5 to your computer and use it in GitHub Desktop.
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
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