Created
August 11, 2014 03:45
-
-
Save mygeekdaddy/2f09f6e49a6f1e0d89f5 to your computer and use it in GitHub Desktop.
Übersicht widget to display your current IP address
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
command: "/Users/mygeekdaddy/Dropbox/bin/Python/curipaddr.py" | |
refreshFrequency: 6000000 | |
style: """ | |
bottom: 212px | |
left: 15px | |
color: #fff | |
font-family: Helvetica Neue | |
div | |
display: block | |
background: rgba(#000, 0.2) | |
border-radius: 15px | |
font-size: 18px | |
font-weight: 300 | |
padding: 4px 6px 4px 6px | |
&:after | |
content: 'Public IP' | |
position: absolute | |
left: 6px | |
top: -8px | |
font-size: 10px | |
font-weight: 500 | |
""" | |
render: -> """ | |
<div class='ip_address'></div> | |
""" | |
update: (output, domEl) -> | |
$(domEl).find('.ip_address').html(output) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment