This file contains 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
@IBAction func showPoweredBy(_ sender: Any) { | |
NSWorkspace.shared.open(URL(string: "https://darksky.net/poweredby/")!) | |
} |
This file contains 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
func updateDisplay() { | |
guard let feed = feed else { return } | |
var text = "Error" | |
switch displayMode { | |
case 0: | |
// summary text | |
if let summary = feed["currently"]["summary"].string { | |
text = summary |
This file contains 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
<!-- For more examples: https://codepen.io/Zaku/pen/eRmRxz --> | |
<svg class="liquid-button" | |
data-text="BUTTON" | |
data-force-factor="0.1" | |
data-layer-1-viscosity="0.5" | |
data-layer-2-viscosity="0.4" | |
data-layer-1-mouse-force="400" | |
data-layer-2-mouse-force="500" | |
data-layer-1-force-limit="1" |