Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit 0800e15

Browse files
author
Florian Lautenschlager
committed
Removed unused js library.
Added cursor animation.
1 parent 20a4983 commit 0800e15

File tree

2 files changed

+11
-195
lines changed

2 files changed

+11
-195
lines changed

_includes/js.html

Lines changed: 11 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<!-- jQuery Version 1.11.0 -->
22
<script src="{{ "/js/jquery-1.11.0.js" }}"></script>
33

4-
<!-- Animated Text -->
5-
<script src="{{ "/js/jquery.teletype.js" }}"></script>
6-
74
<!-- Bootstrap Core JavaScript -->
85
<script src="{{ "/js/bootstrap.min.js" }}"></script>
96

@@ -30,33 +27,17 @@
3027

3128
</script>
3229

33-
<!--
3430
<script>
35-
$(function ($) {
36-
function initConsole ($button, $console) {
37-
$button.remove();
38-
39-
var items = $console.attr('title').split(';');
40-
$console.removeAttr('title').teletype({
41-
text: items,
42-
typeDelay: 0,
43-
backDelay: 0,
44-
cursor: '▋',
45-
delay: 0,
46-
preserve: true,
47-
prefix: 'chronix@chronixDB:~$ ',
48-
loop: 1
49-
});
50-
}
51-
52-
$('#console-server-button').on('click', function () {
53-
initConsole($(this), $("#chronix-server-console"));
54-
});
55-
56-
$('#console-javafx-button').on('click', function () {
57-
initConsole($(this), $("#chronix-javafx-console"));
58-
});
31+
$(document).ready(function() {
32+
setInterval('cursorAnimation()', 800);
5933
});
60-
</script>
6134

62-
-->
35+
function cursorAnimation() {
36+
$('.teletype-cursor').animate({
37+
opacity: 0
38+
}, 'fast', 'swing').animate({
39+
opacity: 1
40+
}, 'fast', 'swing');
41+
}
42+
43+
</script>

js/jquery.teletype.js

Lines changed: 0 additions & 165 deletions
This file was deleted.

0 commit comments

Comments
 (0)