Graduate

Update index.html UI

......@@ -65,12 +65,12 @@ function init()
var messageboxHeight = $('#messagebox').height();
video.width = video.videoWidth;
video.height = video.videoHeight;
if (video.width > screenWidth || video.height + headerHeight + messageboxHeight > screenHeight){
var ratio = Math.min(screenWidth / video.width * 1.0, screenHeight / ((video.height + headerHeight + messageboxHeight) * 1.0));
container.style.width = Math.round(video.videoWidth * ratio) + 'px';
container.style.height = Math.round(video.videoHeight * ratio) + 'px';
canvasOutput.width = Math.round(video.videoWidth * ratio);
canvasOutput.height = Math.round(video.videoHeight * ratio);
if (video.width > screenWidth || video.height + headerHeight > screenHeight){
var ratio = Math.min(screenWidth / video.width * 1.0, screenHeight / ((video.height + headerHeight) * 1.0));
container.style.width = Math.round(video.width * ratio) + 'px';
container.style.height = Math.round(video.height * ratio) + 'px';
canvasOutput.width = Math.round(video.width * ratio);
canvasOutput.height = Math.round(video.height * ratio);
}
load_cascade();
});
......