mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-20 01:31:51 +00:00
8 lines
1.8 KiB
Plaintext
8 lines
1.8 KiB
Plaintext
|
{
|
||
|
"version": 3,
|
||
|
"sources": ["../src/platform/markdown.ts"],
|
||
|
"sourcesContent": ["\nimport { PLATFORMS } from \"../common/emu\";\nimport { Platform } from \"../common/baseplatform\";\n\nclass MarkdownPlatform implements Platform {\n mainElement : HTMLElement;\n iframe : HTMLIFrameElement;\n\n constructor(mainElement:HTMLElement) {\n this.mainElement = mainElement;\n this.iframe = $('<iframe sandbox=\"allow-same-origin\" width=\"100%\" height=\"100%\"/>').appendTo(mainElement)[0] as HTMLIFrameElement;\n this.iframe.style.backgroundColor = 'white';\n mainElement.classList.add(\"vertical-scroll\"); //100% height\n mainElement.style.overflowY = 'auto';\n }\n start() {\n }\n reset() {\n }\n pause() {\n }\n resume() {\n }\n loadROM(title, data:string) {\n $(this.iframe).contents().find('body').html(data);\n }\n isRunning() {\n return false;\n }\n isDebugging() : boolean {\n return false;\n }\n getToolForFilename(fn : string) : string {\n return \"markdown\";\n }\n getDefaultExtension() : string {\n return \".md\";\n }\n getPresets() {\n return [\n {id:'hello.md', name:'Hello'},\n ];\n }\n showHelp() {\n window.open(\"https://github.com/showdownjs/showdown/wiki/Showdown's-Markdown-syntax\", \"_help\");\n }\n}\n\nPLATFORMS['markdown'] = MarkdownPlatform;\n"],
|
||
|
"mappings": "oEAIA,WAA2C,CAIzC,YAAY,EAAyB,CACnC,KAAK,YAAc,EACnB,KAAK,OAAS,EAAE,oEAAoE,SAAS,GAAa,GAC1G,KAAK,OAAO,MAAM,gBAAkB,QACpC,EAAY,UAAU,IAAI,mBAC1B,EAAY,MAAM,UAAY,OAEhC,OAAQ,EAER,OAAQ,EAER,OAAQ,EAER,QAAS,EAET,QAAQ,EAAO,EAAa,CAC1B,EAAE,KAAK,QAAQ,WAAW,KAAK,QAAQ,KAAK,GAE9C,WAAY,CACV,MAAO,GAET,aAAwB,CACtB,MAAO,GAET,mBAAmB,EAAsB,CACvC,MAAO,WAET,qBAA+B,CAC7B,MAAO,MAET,YAAa,CACX,MAAO,CACL,CAAC,GAAG,WAAY,KAAK,UAGzB,UAAW,CACT,OAAO,KAAK,yEAA0E,WAI1F,EAAU,SAAc",
|
||
|
"names": []
|
||
|
}
|