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
| /** | |
| * Sandboxed HTML preview example. | |
| * | |
| * This is a standalone, product-neutral example for rendering user-provided | |
| * HTML in an iframe with a restrictive CSP. Inline scripts are allowed so | |
| * self-contained reports or demos can boot, while network APIs, external | |
| * scripts, nested frames, plugins and form submission are blocked. | |
| */ | |
| const PREVIEW_CSP_META = [ |
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> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> | |
| <meta name="google" content="notranslate" /> | |
| <meta name="format-detection" content="telephone=no" /> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
| <title> |
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
| function deepClone(obj, hash = new WeakMap()) { | |
| if (obj !== Object(obj) || typeof obj === 'function') return obj; | |
| if (obj instanceof Set) return new Set(obj); | |
| if (hash.has(obj)) return hash.get(obj); | |
| let result; | |
| if (obj instanceof Date) { | |
| result = new Date(obj); | |
| } else if (obj instanceof RegExp) { | |
| result = new RegExp(obj.source, obj.flags); |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <math.h> | |
| typedef struct Binary { | |
| char sign; | |
| char exp[12]; | |
| char precision[53]; |