Skip to content

Instantly share code, notes, and snippets.

@aadsm
Created August 5, 2012 21:40
Show Gist options
  • Select an option

  • Save aadsm/3267230 to your computer and use it in GitHub Desktop.

Select an option

Save aadsm/3267230 to your computer and use it in GitHub Desktop.
.range {
width: 100%;
}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script type="text/montage-serialization">{
"range": {
"prototype": "montage/ui/input-range.reel",
"properties": {
"element": {"#": "range"},
"value": 50
}
},
"dynamicText": {
"prototype": "montage/ui/dynamic-text.reel",
"properties": {
"element": {"#": "dynamicText"}
},
"bindings": {
"value": {"<-": "@range.value"}
}
}
}</script>
</head>
<body>
<input type="range" data-montage-id="range" class="range">
<h2 data-montage-id="dynamicText"></h2>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment