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
/**************************\ | |
Basic Modal Styles | |
\**************************/ | |
.modal { | |
font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif; | |
} | |
.modal__overlay { | |
position: fixed; |
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
import Foundation | |
func jdFromDate(date : NSDate) -> Double { | |
let JD_JAN_1_1970_0000GMT = 2440587.5 | |
return JD_JAN_1_1970_0000GMT + date.timeIntervalSince1970 / 86400 | |
} | |
func dateFromJd(jd : Double) -> NSDate { | |
let JD_JAN_1_1970_0000GMT = 2440587.5 | |
return NSDate(timeIntervalSince1970: (jd - JD_JAN_1_1970_0000GMT) * 86400) |