Skip to content

Commit

Permalink
Fix HTML rendering errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lechien73 committed Sep 9, 2021
1 parent 457f28e commit e873a74
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
14 changes: 1 addition & 13 deletions views/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/xterm/3.14.5/xterm.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xterm/3.14.5/addons/attach/attach.js"></script>
<title>Python Terminal by Code Institute</title>
</head>

<body>
<button onclick="window.location.reload()">Run Program</button>
<div id="terminal"></div>
Expand All @@ -34,6 +24,4 @@
// Set focus in the terminal
document.getElementsByClassName("xterm-helper-textarea")[0].focus();
</script>
</body>

</html>
</body>
16 changes: 8 additions & 8 deletions views/layout.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
<!DOCTYPE html>
<html>
<html lang="en">

<head>
<meta charset="utf-8" />
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
@{import('head', 'meta')}
<script src="https://cdnjs.cloudflare.com/ajax/libs/xterm/3.14.5/xterm.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xterm/3.14.5/addons/attach/attach.js"></script>
<title>Python Terminal by Code Institute</title>
<style>
body {
font-family: Arial;
Expand Down Expand Up @@ -164,10 +168,6 @@
</style>
</head>

<body>

<div>@{body}</div>

</body>
@{body}

</html>

0 comments on commit e873a74

Please sign in to comment.