Proportionally scaling a Tumult Hype document based on the browser width

@gthroop: To scale the Width only, change this line:

var scale = Math.min(scaleWidth, scaleHeight);

to:

var scale = scaleWidth;

scale-width-only.zip (11.7 KB)

@BirdyHy: To scale based on the Height only, change the line to:

var scale = scaleHeight;

scale-height-only.zip (11.8 KB)