cinera_player_pre.js: Allow DOCTYPE html

This commit is contained in:
Matt Mascarenhas 2018-05-02 00:47:03 +01:00
parent e77d208645
commit d420513e20
3 changed files with 2 additions and 7 deletions

View File

@ -109,11 +109,6 @@ directory. Typical operation will involve setting these flags:
Feel free to play with templates to your heart's content. If you do anything Feel free to play with templates to your heart's content. If you do anything
invalid, _Cinera_ will tell you what's wrong. invalid, _Cinera_ will tell you what's wrong.
Note: There is currently an issue sizing the annotation marker container if your
HTML document contains `<!DOCTYPE html>`. To work around this for now, please do
not declare a DOCTYPE and instead let the page be displayed in [quirks
mode](https://www.w3.org/International/articles/serving-xhtml/#quirks).
#### Arguments #### Arguments
Usage: ./cinera [option(s)] filename(s) Usage: ./cinera [option(s)] filename(s)

View File

@ -16,7 +16,7 @@ typedef struct
version CINERA_APP_VERSION = { version CINERA_APP_VERSION = {
.Major = 0, .Major = 0,
.Minor = 5, .Minor = 5,
.Patch = 47 .Patch = 48
}; };
// TODO(matt): Copy in the DB 3 stuff from cinera_working.c // TODO(matt): Copy in the DB 3 stuff from cinera_working.c

View File

@ -115,7 +115,7 @@ Player.prototype.jumpToPrevMarker = function() {
Player.prototype.updateSize = function() { Player.prototype.updateSize = function() {
var width = this.videoContainer.offsetWidth; var width = this.videoContainer.offsetWidth;
var height = width / 16 * 9; var height = width / 16 * 9;
this.markersContainer.style.height = height; this.markersContainer.style.height = height + "px";
if (this.youtubePlayerReady) { if (this.youtubePlayerReady) {
this.youtubePlayer.setSize(Math.floor(width), Math.floor(height)); this.youtubePlayer.setSize(Math.floor(width), Math.floor(height));
} }