Skip to content

Commit 28e8f6a

Browse files
committed
Many changes:
- Implemented bezier animation for Tween - Fixed Tween base case - Modernize dependencies - Fix bug with Bilibiliparser to accept false and 'false' for border - More documentation in more languages - Fixed syntax errors in comment festival XML file, preparing to implement Bitmap library
1 parent 3a95807 commit 28e8f6a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2022
-2061
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ tab_width = 2
1010
indent_size = 2
1111

1212
[*.js]
13-
indent_style = tab
13+
indent_style = space
1414
tab_width = 2
1515

1616
[*.css]

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: node_js
22
sudo: false
33
node_js:
4-
- "6.7.0"
4+
- "7.9.0"
55
before_install:
66
- npm install npm -g
77
before_script:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Build Status: Linux](https://travis-ci.org/jabbany/CommentCoreLibrary.svg?branch=master)](https://travis-ci.org/jabbany/CommentCoreLibrary)
77
[![Coverage Status](https://img.shields.io/coveralls/jabbany/CommentCoreLibrary.svg)](https://coveralls.io/r/jabbany/CommentCoreLibrary?branch=master)
88

9-
Other Languages: [简体中文](README.zh_cn.md)
9+
Other Languages: [简体中文](README.zh_CN.md)
1010

1111
The CommentCoreLibrary is a set of Javascript modules that make up the
1212
core controller for comments streaming on top of timed media (video or audio).

README.zh_cn.md

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

demo/debugger.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ function bind() {
343343
break;
344344
}
345345
window._provider.start().then(function() {
346-
cm.startTimer();
346+
cm.start();
347347
$("control-status").className = "status active";
348348
if (state.mode !== "timer") {
349349
$("abpVideo").play();
@@ -593,7 +593,7 @@ function bindVideo(video, cm) {
593593
video.addEventListener("timeupdate", function() {
594594
if (cm.display === false) return;
595595
if (video.hasStalled) {
596-
cm.startTimer();
596+
cm.start();
597597
video.hasStalled = false;
598598
}
599599
cm.time(Math.floor(video.currentTime * 1000));

demo/default.css

Lines changed: 110 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -1,194 +1,194 @@
11
body{
2-
padding:0;
3-
margin:0;
4-
font-family: "open-sans", Verdana, sans-serif;
5-
color:#fff;
6-
background-color:#111;
2+
padding:0;
3+
margin:0;
4+
font-family: "open-sans", Verdana, sans-serif;
5+
color:#fff;
6+
background-color:#111;
77
}
88

99
h1, h2, h3{
10-
padding:0;
11-
margin:0 0 5px 0;
10+
padding:0;
11+
margin:0 0 5px 0;
1212
}
1313

1414
a {
15-
color:#f88;
16-
text-decoration:none;
15+
color:#f88;
16+
text-decoration:none;
1717
}
1818

1919
a:hover{
20-
text-decoration:underline;
20+
text-decoration:underline;
2121
}
2222

2323
.button{
24-
-webkit-touch-callout: none;
25-
-webkit-user-select: none;
26-
-khtml-user-select: none;
27-
-moz-user-select: none;
28-
-ms-user-select: none;
29-
user-select: none;
24+
-webkit-touch-callout: none;
25+
-webkit-user-select: none;
26+
-khtml-user-select: none;
27+
-moz-user-select: none;
28+
-ms-user-select: none;
29+
user-select: none;
3030
}
3131

3232
#debugger-head {
33-
color:#fff;
34-
height:40px;
35-
width:100%;
36-
background-color:#333;
37-
overflow:hidden;
33+
color:#fff;
34+
height:40px;
35+
width:100%;
36+
background-color:#333;
37+
overflow:hidden;
3838
}
3939

4040
#debugger-head .button{
41-
background-color:#555;
42-
float:left;
43-
padding:10px 15px 12px 15px;
44-
cursor:default;
45-
border-right:4px dotted #333;
41+
background-color:#555;
42+
float:left;
43+
padding:10px 15px 12px 15px;
44+
cursor: pointer;
45+
border-right:4px dotted #333;
4646
}
4747

4848
#debugger-head .button.active{
49-
background-color:#55c;
49+
background-color:#55c;
5050
}
5151

5252
#pf-area {
53-
float:right;
53+
float:right;
5454
}
5555
#pf-area div{
56-
float:left;
57-
width:40px;
58-
font-size:9px;
59-
padding-left:3px;
60-
border-left:1px solid #ccc;
61-
height:40px;
56+
float:left;
57+
width:40px;
58+
font-size:9px;
59+
padding-left:3px;
60+
border-left:1px solid #ccc;
61+
height:40px;
6262
}
6363

6464
.debugger-window{
65-
position:relative;
66-
background-color:#111;
67-
outline: none;
65+
position:relative;
66+
background-color:#111;
67+
outline: none;
6868
}
6969

7070
.sidebar{
71-
float:right;
72-
background-color:#222;
73-
width:20%;
74-
padding:10px;
75-
overflow:hidden;
76-
min-width:270px;
71+
float:right;
72+
background-color:#222;
73+
width:20%;
74+
padding:10px;
75+
overflow:hidden;
76+
min-width:270px;
7777
}
7878

7979
.sidebar a.button{
80-
background-color:#111;
81-
float:left;
82-
padding:5px 5px 5px 5px;
83-
cursor:default;
84-
border:1px solid #555;
80+
background-color:#111;
81+
float:left;
82+
padding:5px 5px 5px 5px;
83+
cursor: pointer;
84+
border:1px solid #555;
8585
}
8686

8787
.sidebar a.button:hover{
88-
text-decoration:none;
89-
background-color:#333;
88+
text-decoration:none;
89+
background-color:#333;
9090
}
9191

9292
.controls{
93-
background-color:#111;
94-
width:100%;
95-
clear:both;
93+
background-color:#111;
94+
width:100%;
95+
clear:both;
9696
}
9797
.controls .status{
98-
background-color:#522;
99-
float:left;
100-
padding:10px 15px 12px 15px;
101-
width:150px;
102-
cursor:default;
103-
border-right:4px dotted #111;
98+
background-color:#522;
99+
float:left;
100+
padding:10px 15px 12px 15px;
101+
width:150px;
102+
cursor:default;
103+
border-right:4px dotted #111;
104104
}
105105
.controls .status.active{
106-
background-color:#252;
106+
background-color:#252;
107107
}
108108
.controls .button{
109-
background-color:#222;
110-
float:left;
111-
padding:10px 15px 12px 15px;
112-
cursor:default;
113-
border-right:4px dotted #111;
109+
background-color:#222;
110+
float:left;
111+
padding:10px 15px 12px 15px;
112+
cursor:default;
113+
border-right:4px dotted #111;
114114
}
115115

116116
.controls a.button{
117-
color:#fff;
117+
color:#fff;
118118
}
119119

120120
.controls .button:hover{
121-
background-color:#555;
122-
text-decoration:none;
121+
background-color:#555;
122+
text-decoration:none;
123123
}
124124

125125
#debugger-input{
126-
position:relative;
127-
height:400px;
128-
margin:5px;
126+
position:relative;
127+
height:400px;
128+
margin:5px;
129129
}
130130
#debugger-input .input{
131-
height:100%;
131+
height:100%;
132132
}
133133
#debugger-input .button{
134-
background-color:#111;
135-
position:absolute;
136-
bottom:0; left:10px;
137-
padding:10px 15px 10px 15px;
138-
cursor:default;
139-
border:1px solid #555;
134+
background-color:#111;
135+
position:absolute;
136+
bottom:0; left:10px;
137+
padding:10px 15px 10px 15px;
138+
cursor:default;
139+
border:1px solid #555;
140140
}
141141
.iw .button{
142-
background-color:#111;
143-
padding:10px 15px 10px 15px;
144-
cursor:default;
145-
border:1px solid #555;
146-
float:left;
142+
background-color:#111;
143+
padding:10px 15px 10px 15px;
144+
cursor:default;
145+
border:1px solid #555;
146+
float:left;
147147
}
148148
#debugger-input .button:hover, .iw .button:hover{
149-
background-color:#522;
150-
cursor:pointer;
149+
background-color:#522;
150+
cursor:pointer;
151151
}
152152
#debugger-input-area, #debugger-output {
153-
text-wrap:pre;
153+
text-wrap:pre;
154154
}
155155
#debugger-output{
156-
background-color:#555;
157-
height:80%;
158-
font-family: Consolas, monospace;
159-
font-size:20px;
160-
overflow:auto;
156+
background-color:#555;
157+
height:80%;
158+
font-family: Consolas, monospace;
159+
font-size:20px;
160+
overflow:auto;
161161
}
162162

163163
.input {
164-
background-color:#555;
165-
min-width:100px;
166-
min-height:20px;
167-
padding:5px;
168-
font-family: Consolas, monospace;
169-
font-size:20px;
164+
background-color:#555;
165+
min-width:100px;
166+
min-height:20px;
167+
padding:5px;
168+
font-family: Consolas, monospace;
169+
font-size:20px;
170170
}
171171

172172
#c-region{
173-
position:absolute;
174-
bottom:0;
175-
right:0;
173+
position:absolute;
174+
bottom:0;
175+
right:0;
176176
}
177177

178178
#player-unit{
179-
position:absolute;
180-
top:0;
181-
left:0;
182-
width:640px;
179+
position:absolute;
180+
top:0;
181+
left:0;
182+
width:640px;
183183
}
184184

185185
#player{
186-
position:relative;
187-
margin:0;
188-
padding:0;
189-
height:480px;
190-
width:100%;
191-
background:#000;
186+
position:relative;
187+
margin:0;
188+
padding:0;
189+
height:480px;
190+
width:100%;
191+
background:#000;
192192
}
193193

194194
#player:full-screen{ margin:10px 0 0 0; width:100%; height:100%;}

0 commit comments

Comments
 (0)