-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e470d29
commit c10a973
Showing
2 changed files
with
38 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,20 +11,34 @@ | |
<head> | ||
<title>ps12exe Online</title> | ||
<link rel="icon" type="image/x-icon" href="https://raw.githubusercontent.com/steve02081504/ps12exe/master/img/icon.ico"> | ||
<script type='text/javascript' src='https://www.midijs.net/lib/midi.js'></script> | ||
<script type="module"> | ||
<script src='https://www.midijs.net/lib/midi.js'></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/darkreader.min.js"></script> | ||
<script> | ||
DarkReader.enable() | ||
var HighlightCode; | ||
function SetDarkMode(Set) { | ||
if (Set) DarkReader.enable() | ||
else DarkReader.disable() | ||
HighlightCode.useTheme(Set ? 'github-dark' : 'github') | ||
} | ||
(async ({ chrome, netscape }) => { | ||
if (!chrome && !netscape) await import('https://unpkg.com/@ungap/custom-elements') | ||
const { default: HighlightedCode } = await import('https://unpkg.com/highlighted-code') | ||
HighlightedCode.useTheme('github-dark') | ||
HighlightCode = await import('https://unpkg.com/highlighted-code').then(x => x.default) | ||
var dark = window.matchMedia('(prefers-color-scheme: dark)'); | ||
SetDarkMode(dark.matches) | ||
dark.addEventListener('change', event => { | ||
SetDarkMode(event.matches) | ||
}) | ||
})(self) | ||
</script> | ||
</head> | ||
|
||
<body> | ||
<textarea style="width: 98%; height:95vh;" is="highlighted-code" language="powershell" tabSize="4" placeholder="#_pragma noConsole | ||
'Hello World!' | ||
" id="inputText"></textarea> | ||
" id="inputText">#_pragma noConsole | ||
'Hello World!' | ||
</textarea> | ||
<br> | ||
<button id="compileButton" onclick="compileCode()">cum out</button> | ||
<script type="text/javascript"> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,20 +12,34 @@ | |
<head> | ||
<title>ps12exe Online</title> | ||
<link rel="icon" type="image/x-icon" href="favicon.ico"> | ||
<script type='text/javascript' src='https://www.midijs.net/lib/midi.js'></script> | ||
<script type="module"> | ||
<script src='https://www.midijs.net/lib/midi.js'></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/darkreader.min.js"></script> | ||
<script> | ||
DarkReader.enable() | ||
var HighlightCode; | ||
function SetDarkMode(Set) { | ||
if (Set) DarkReader.enable() | ||
else DarkReader.disable() | ||
HighlightCode.useTheme(Set ? 'github-dark' : 'github') | ||
} | ||
(async ({ chrome, netscape }) => { | ||
if (!chrome && !netscape) await import('https://unpkg.com/@ungap/custom-elements') | ||
const { default: HighlightedCode } = await import('https://unpkg.com/highlighted-code') | ||
HighlightedCode.useTheme('github-dark') | ||
HighlightCode = await import('https://unpkg.com/highlighted-code').then(x => x.default) | ||
var dark = window.matchMedia('(prefers-color-scheme: dark)'); | ||
SetDarkMode(dark.matches) | ||
dark.addEventListener('change', event => { | ||
SetDarkMode(event.matches) | ||
}) | ||
})(self) | ||
</script> | ||
</head> | ||
|
||
<body> | ||
<textarea style="width: 98%; height:95vh;" is="highlighted-code" language="powershell" tabSize="4" placeholder="#_pragma noConsole | ||
'Hello World!' | ||
" id="inputText"></textarea> | ||
" id="inputText">#_pragma noConsole | ||
'Hello World!' | ||
</textarea> | ||
<br> | ||
<button id="compileButton" onclick="compileCode()">cum out</button> | ||
<a id="downloadLink" download="a.exe"></a> | ||
|