wtails 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/wtails/version.rb +1 -1
- data/public/css/style.css +3 -1
- data/public/js/wtails.js +7 -1
- metadata +3 -3
data/lib/wtails/version.rb
CHANGED
data/public/css/style.css
CHANGED
data/public/js/wtails.js
CHANGED
@@ -20,10 +20,16 @@ var Wtails = {
|
|
20
20
|
// Insert a new line
|
21
21
|
curr.append(line);
|
22
22
|
|
23
|
+
// Truncate old lines
|
24
|
+
var children = curr.children();
|
25
|
+
if (300 < children.length) {
|
26
|
+
children.slice(0, children.length - 300).remove();
|
27
|
+
}
|
28
|
+
|
23
29
|
// Scroll to bottom of the page
|
24
30
|
curr.parent().scrollTop(curr.height());
|
25
31
|
});
|
26
32
|
};
|
27
33
|
});
|
28
|
-
}
|
34
|
+
}
|
29
35
|
};
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wtails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 7
|
10
|
+
version: 0.0.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Naoyuki HIRAYAMA
|