aboutsummaryrefslogtreecommitdiff
path: root/website/resources/js/main.js
diff options
context:
space:
mode:
authorBulgakov Alexander <buls@yandex.ru>2019-04-25 23:35:01 +0300
committerBulgakov Alexander <buls@yandex.ru>2019-04-25 23:35:01 +0300
commitafe9e374975c85a87fdf6c0d45171ac44f616a37 (patch)
treed49b9f905a564729d5cdefa2f9626266b0b541f0 /website/resources/js/main.js
parentf0343886a331f3cb2175545a062f3736610f9179 (diff)
parent150be0a186d880503cb23d056ea4cf229ebc37e5 (diff)
downloadlombok-afe9e374975c85a87fdf6c0d45171ac44f616a37.tar.gz
lombok-afe9e374975c85a87fdf6c0d45171ac44f616a37.tar.bz2
lombok-afe9e374975c85a87fdf6c0d45171ac44f616a37.zip
Merge branch 'master' into feature/typeInferenceImprovements
Diffstat (limited to 'website/resources/js/main.js')
-rw-r--r--website/resources/js/main.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/website/resources/js/main.js b/website/resources/js/main.js
index 5608a3c3..eaaf2df5 100644
--- a/website/resources/js/main.js
+++ b/website/resources/js/main.js
@@ -94,7 +94,23 @@
});
}
+ function seekVideo() {
+ var t = window.location.hash;
+ if (!t) return;
+ var s = /^#?(?:(\d\d?):)?(\d\d?):(\d\d?)$/.exec(t);
+ if (!s) return;
+ var videoj = $("#presentationVideo");
+ if (!videoj || videoj.length == 0) return;
+ var video = videoj[0];
+ var h = parseInt(s[1]);
+ if (!h) h = 0;
+ var m = parseInt(s[2]);
+ var s = parseInt(s[3]);
+ video.currentTime = (((h * 60) + m) * 60) + s;
+ }
+
$(ajaxFeaturePages);
$(clickToTap);
$(clickForVideo);
+ $(seekVideo);
})($);