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
| import { h, Component } from 'preact'; | |
| import style from './style'; | |
| const audioContext = new (window.AudioContext || window.webkitAudioContext); | |
| export default class Oscillator extends Component { | |
| play() { | |
| if( this.oscillator ) return; |
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
| /* | |
| * JavaScript Pretty Date | |
| * Copyright (c) 2011 John Resig (ejohn.org) | |
| * Originally Licensed under the MIT and GPL licenses. | |
| * Derivative work Copyright (c) 2016 Deveedutta Maharana (statusok200.wordpress.com) | |
| * Derivative work under MIT and GPL and WTFPL licenses. | |
| */ | |
| // Takes a Unix Epoch Time and returns a string representing how | |
| // long ago the date represents. |
NewerOlder