Skip to content

Instantly share code, notes, and snippets.

@inakianduaga
Last active August 16, 2018 17:03
Show Gist options
  • Save inakianduaga/1a4f41e12528b04dc0e5adebcb10477c to your computer and use it in GitHub Desktop.
Save inakianduaga/1a4f41e12528b04dc0e5adebcb10477c to your computer and use it in GitHub Desktop.
Redux for vanillaJS Medium.com article - Scala Play backend view
@()
<div id="some-dom-id" class="gallery">
<h5>Redux Example </h5>
<div class="image-wrapper">
@* Generate list of random images for demo purposes *@
@for(i <- 1 to 5) {
<img src="https://source.unsplash.com/random/300x300?sig=@{i}" />
}
</div>
<div>
<div class="filter-selection">
<label for="filter-selection">Choose a filter</label>
<select id="filter-selection" disabled>
<option value="none" selected>-- None --</option>
@for(filter <- List("greyscale", "sepia", "invert", "tint", "saturation")) {
<option value="@{filter}">@{filter}</option>
}
</select>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment