Skip to content

Instantly share code, notes, and snippets.

@anthonybrown
Forked from anonymous/component.css
Created March 21, 2014 16:25
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 anthonybrown/9689992 to your computer and use it in GitHub Desktop.
Save anthonybrown/9689992 to your computer and use it in GitHub Desktop.
.slider2 {
width: 50%;
}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MFiddle</title>
<script type="text/montage-serialization">{
"number": {
"prototype": "digit/ui/number-field.reel",
"properties": {
"element": {"#": "number"},
"value": 50
}
},
"slider1": {
"prototype": "digit/ui/slider.reel",
"properties": {
"element": {"#": "slider1"}
},
"bindings": {
"value": {"<->": "@number.value"}
}
},
"slider2": {
"prototype": "digit/ui/slider.reel",
"properties": {
"element": {"#": "slider2"}
},
"bindings": {
"value": {"<->": "@number.value"}
}
}
}</script></head>
<body>
<p>
<input type="number" data-montage-id="number">
<input type="slider" data-montage-id="slider1" class="slider1">
</p>
<p>
<input type="slider" data-montage-id="slider2" class="slider2">
</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment