Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 React, { useState, useContext, useRef } from 'react' | |
import { DatePicker } from 'material-ui-pickers' | |
import { MuiPickersContext } from 'material-ui-pickers' | |
export default function DateMultiPicker({ | |
value, | |
onChange, | |
labelFunc, | |
format, | |
emptyLabel, |
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
// Given an iframe id and an anchor id that is present within the iframe, | |
// determine whether the element is visible/present inside the window viewport. | |
// This is not about the css 'display' property; this shows whether | |
// the window viewport contains the element. | |
var isVisible = function (anchor, iframe_id) { | |
var ifrId = iframe_id || 'bv_page'; | |
var ifrOffset = window.parent.document.getElementById(ifrId).offsetTop; | |
var myloc = document.getElementById(anchor).offsetTop + ifrOffset; | |
var viewtop = window.parent.scrollY; |
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
var getDeferred = function (i) { | |
var deferred = new $.Deferred(); | |
setTimeout(function () { | |
if (--i) { | |
deferred.resolve(i); | |
} else { | |
deferred.reject(i); | |
} | |
}, 2000); |
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
sub, sup { | |
/* Specified in % so that the sup/sup is the | |
right size relative to the surrounding text */ | |
font-size: 75%; | |
/* Zero out the line-height so that it doesn't | |
interfere with the positioning that follows */ | |
line-height: 0; | |
/* Where the magic happens: makes all browsers position |