-
-
Save elliots/6265859 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| return { | |
| "name": "Open URL", | |
| "deviceMap": [{ "deviceType": "openurl" }] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="openurl-widget"> | |
| <span class="icon"></span> | |
| <input class="input" type="text" name="url" placeholder="URL"/> | |
| <button class="button orange-gradient">Notify</button> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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