Skip to content

Commit

Permalink
termianl2
Browse files Browse the repository at this point in the history
  • Loading branch information
soricine committed Sep 15, 2022
1 parent 3b65c58 commit 98ee3c4
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions themes/frisbee/layouts/terminal/terminal.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@


{{ define "main" }}
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://unpkg.com/jquery.terminal/js/jquery.terminal.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/jquery.terminal/css/jquery.terminal.min.css"/>

{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
<meta name="robots" content="index, follow">
{{ else }}
<meta name="robots" content="noindex, nofollow">
{{ end }}

<body>
{{ end }}

<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://unpkg.com/jquery.terminal/js/jquery.terminal.min.js"></script>


<link rel="stylesheet" href="https://unpkg.com/jquery.terminal/css/jquery.terminal.min.css"/>

</div>
<script>
$('body').terminal({
hello: function(what) {
hello: function() {
this.echo('Hello, ' + what +
'. Wellcome to this terminal.');
'. tarxidiamou.');
},
ls: function() {
this.echo(' tarxidiamou ');
},
cat: function() {
this.echo($('<img src="https://placekitten.com/408/287">'));
}
}, {
greetings: 'My First Web Terminal'
greetings: 'frisbee - Terminal'
});
</script>
</body>
{{ end }}

0 comments on commit 98ee3c4

Please sign in to comment.