mirror of
https://github.com/fregante/GhostText.git
synced 2024-10-05 15:39:35 +03:00
Meta: Move testing page to minisite
This commit is contained in:
parent
de21448d83
commit
3599d6c576
7
404.html
Normal file
7
404.html
Normal file
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
if (location.pathname.indexOf('demo') > 0) {
|
||||
location.replace('https://ghosttext.fregante.com/test/');
|
||||
} else {
|
||||
location.replace('https://ghosttext.fregante.com/');
|
||||
}
|
||||
</script>
|
@ -1,89 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>GhostText test page</title>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.32.0/codemirror.min.css"
|
||||
/>
|
||||
<style>
|
||||
html {
|
||||
font-family: sans-serif;
|
||||
max-width: 600px;
|
||||
color: #333;
|
||||
margin: auto;
|
||||
}
|
||||
iframe,
|
||||
textarea,
|
||||
[contenteditable],
|
||||
#ace {
|
||||
border: solid 1px silver;
|
||||
border-radius: 3px;
|
||||
min-height: 100px;
|
||||
width: 100%;
|
||||
}
|
||||
.CodeMirror {
|
||||
height: 100px;
|
||||
}
|
||||
textarea {
|
||||
font: inherit;
|
||||
}
|
||||
.flex {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
textarea {
|
||||
max-width: 49%;
|
||||
}
|
||||
iframe {
|
||||
opacity: 0.8;
|
||||
height: 200px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<h1>
|
||||
<a href="https://github.com/fregante/GhostText"><img
|
||||
src="https://raw.githubusercontent.com/fregante/GhostText/main/promo/gt_banner.png"
|
||||
height="60"
|
||||
alt="GhostText"
|
||||
/></a>
|
||||
</h1>
|
||||
|
||||
<h2><code><textarea></code></h2>
|
||||
<div class="flex">
|
||||
<textarea>This is a textarea</textarea>
|
||||
<textarea>This is a second textarea</textarea>
|
||||
</div>
|
||||
|
||||
<h2><code><contenteditable></code></h2>
|
||||
<div contenteditable>This is a <code>contenteditable</code> div</div>
|
||||
|
||||
<h2>CodeMirror</h2>
|
||||
<textarea id="codemirror">This is a CodeMirror field
|
||||
|
||||
|
||||
|
||||
|
||||
</textarea>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.32.0/codemirror.min.js"></script>
|
||||
<script>
|
||||
window.CodeMirror.fromTextArea(document.getElementById('codemirror'), {
|
||||
lineNumbers: true
|
||||
});
|
||||
</script>
|
||||
|
||||
<h2>Ace</h2>
|
||||
<pre id="ace">This is a Ace field
|
||||
|
||||
|
||||
|
||||
|
||||
</pre>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.9/ace.js"></script>
|
||||
<script>
|
||||
window.ace.edit('ace').setOption('maxLines', 30);
|
||||
</script>
|
||||
|
||||
<h2>Fields inside <code><iframe></code></h2>
|
||||
<iframe src="." frameborder="0">One level deep, please!</iframe>
|
||||
</html>
|
@ -45,7 +45,7 @@
|
||||
"sourceDir": "distribution",
|
||||
"run": {
|
||||
"startUrl": [
|
||||
"https://ghosttext.github.io/GhostText/demo/"
|
||||
"https://ghosttext.fregante.com/test/"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user