|
|
@ -45,6 +45,9 @@ for (var i = 0; i < watchedIndicators.length; i++) {
|
|
|
|
var indicator = watchedIndicators[i];
|
|
|
|
var indicator = watchedIndicators[i];
|
|
|
|
var watched_part = get_all_video_times()[indicator.getAttribute('data-id')];
|
|
|
|
var watched_part = get_all_video_times()[indicator.getAttribute('data-id')];
|
|
|
|
var total = parseInt(indicator.getAttribute('data-length'), 10);
|
|
|
|
var total = parseInt(indicator.getAttribute('data-length'), 10);
|
|
|
|
|
|
|
|
if (watched_part === undefined) {
|
|
|
|
|
|
|
|
watched_part = total;
|
|
|
|
|
|
|
|
}
|
|
|
|
var percentage = Math.round((watched_part / total) * 100);
|
|
|
|
var percentage = Math.round((watched_part / total) * 100);
|
|
|
|
|
|
|
|
|
|
|
|
if (percentage < 5) {
|
|
|
|
if (percentage < 5) {
|
|
|
|