We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
0 parents commit 99979dfCopy full SHA for 99979df
index.html
@@ -0,0 +1,19 @@
1
+<!DOCTYPE html>
2
+<html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <!-- CSS Link -->
8
+ <link rel="stylesheet" href="style.css" />
9
+ <title>HTML, CSS and JavaScript Code Editor</title>
10
+ </head>
11
+ <body spellcheck="false">
12
+ <textarea id="html" placeholder="HTML"></textarea>
13
+ <textarea id="css" placeholder="CSS"></textarea>
14
+ <textarea id="js" placeholder="JavaScript"></textarea>
15
+ <iframe id="code"></iframe>
16
+
17
+ <script type="text/javascript" src="script.js"></script>
18
+ </body>
19
+</html>
script.js
@@ -0,0 +1,22 @@
+function compile() {
+ var html = document.getElementById('html');
+ var css = document.getElementById('css');
+ var js = document.getElementById('js');
+ var code = document.getElementById('code').contentWindow.document;
+ document.body.onkeyup = function () {
+ code.open();
+ code.writeln(
+ html.value +
+ '<style>' +
+ css.value +
+ '</style>' +
+ '<script>' +
+ js.value +
+ '</script>'
+ );
+ code.close();
+ };
20
+}
21
22
+compile();
style.css
@@ -0,0 +1,23 @@
+body {
+ text-align: center;
+textarea {
+ width: 32%;
+ float: top;
+ min-height: 250px;
+ overflow: scroll;
+ margin: auto;
+ display: inline-block;
+ background: #f4f4f9;
+ outline: none;
+ font-family: Courier, sans-serif;
+ font-size: 14px;
+iframe {
+ bottom: 0;
+ position: relative;
+ width: 100%;
+ height: 35em;
23
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments