Skip to content

Instantly share code, notes, and snippets.

@mlava
Forked from bacall213/options.js
Last active August 29, 2015 13:57
Show Gist options
  • Save mlava/9724136 to your computer and use it in GitHub Desktop.
Save mlava/9724136 to your computer and use it in GitHub Desktop.
return {
"name": "Ninja Autoremote",
"deviceMap": [
{ "deviceId": 2000, "minimum": 1, "maximum": 1} // Sandbox device until more specific ID is availble
],
"forceDeviceMapGroup": true
}
background: white;
background-image: url('http://i.imgur.com/SzHTkyM.png?1');
background-repeat: no-repeat;
background-position: center;
.autoremote-widget {
padding: 30px 10px 10px;
text-align: right;
.button {
position:absolute;
bottom: 20px;
right: 10px;
}
input {
display: block;
width: 60%;
position:absolute;
bottom: 20px;
left: 10px;
}
}
<div class="autoremote-widget">
<input class="input" type="text" name="data" placeholder=""/>
<button class="button blue-gradient">Send</button>
</div>
element.find('button').click(function() {
scope.ActuateAll(element.find('[name=data]').val());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment