Skip to content

Instantly share code, notes, and snippets.

@elliots
Forked from jmanoto/options.js
Last active December 21, 2015 06:39
Show Gist options
  • Save elliots/6265859 to your computer and use it in GitHub Desktop.
Save elliots/6265859 to your computer and use it in GitHub Desktop.
return {
"name": "Open URL",
"deviceMap": [{ "deviceType": "openurl" }]
}
background: white;
.openurl-widget {
padding: 30px 10px 10px;
text-align: right;
.icon {
font-size: 160px;
color: hsl(41,100%,50%);
display: block;
text-align: center;
line-height: 0.5em;
margin: 10px;
}
a.button {
}
input {
display: block;
width: 92%;
margin: 10px auto;
}
}
<div class="openurl-widget">
<span class="icon">&#57349;</span>
<input class="input" type="text" name="url" placeholder="URL"/>
<button class="button orange-gradient">Notify</button>
</div>
element.find('button').click(function() {
scope.ActuateAll(element.find('[name=url]').val());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment