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
* { | |
vertical-align: baseline; | |
box-sizing: border-box; | |
line-height: 1.5; | |
list-style: none; | |
font-size: 100%; | |
font: inherit; | |
padding: 0; | |
margin: 0; | |
border: 0; |
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
$(document).ready(function() {}); |
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
<html> | |
<body> | |
<header class="navbar-layout"> | |
<header class="navbar-layout__header layout--fixed-header"> | |
<a class="navbar-layout__drawer-button"> | |
<i class="fa fa-bars"></i> | |
</a> | |
<nav class="navbar-layout__header-row"> |
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
*, *:before, *:after { | |
box-sizing: border-box; | |
outline: none; | |
resize: none; | |
border: none; | |
padding: 0; | |
margin: 0; | |
} | |
@media (max-width: 300px) { |
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
// WebWorker/SharedWorker compatability class from https://github.com/okikio/bundle/blob/main/src/ts/util/WebWorker.ts | |
export class WebWorker implements EventTarget, AbstractWorker { | |
static SharedWorkerSupported = "SharedWorker" in globalThis; | |
ActualWorker: SharedWorker | Worker; | |
constructor(url: string | URL, opts?: WorkerOptions) { | |
if (WebWorker.SharedWorkerSupported) { | |
this.ActualWorker = new SharedWorker(url, opts); | |
} else { | |
this.ActualWorker = new Worker(url, opts); | |
} |
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
importScripts("https://unpkg.com/@typescript/[email protected]/dist/vfs.globals.js"); | |
importScripts( | |
"https://cdnjs.cloudflare.com/ajax/libs/typescript/4.4.3/typescript.min.js" | |
); | |
importScripts("https://unpkg.com/@okikio/[email protected]/lib/api.js"); | |
export type VFS = typeof import("https://cdn.esm.sh/@typescript/vfs"); | |
export type EVENT_EMITTER = import("https://cdn.esm.sh/@okikio/emitter").EventEmitter; | |
export type Diagnostic = import("https://cdn.esm.sh/@codemirror/lint").Diagnostic; |
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
/** | |
* https://github.com/gre/bezier-easing | |
* BezierEasing - use bezier curve for transition easing function | |
* by Gaëtan Renaudeau 2014 - 2015 – MIT License | |
*/ | |
// These values are established by empiricism with tests (tradeoff: performance VS precision) | |
export const NEWTON_ITERATIONS = 4; | |
export const NEWTON_MIN_SLOPE = 0.001; | |
export const SUBDIVISION_PRECISION = 0.0000001; |
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
/** resolve.exports but for imports */ | |
/** | |
* @param {object} imports | |
* @param {Set<string>} keys | |
*/ | |
function loop(imports, keys) { | |
if (typeof imports === 'string') { | |
return imports; | |
} |
OlderNewer