Skip to content

Instantly share code, notes, and snippets.

@jinan-kordab
Created November 5, 2018 01:47
Show Gist options
  • Save jinan-kordab/c5296328682fd206624e221ae1f8b759 to your computer and use it in GitHub Desktop.
Save jinan-kordab/c5296328682fd206624e221ae1f8b759 to your computer and use it in GitHub Desktop.
Phi setting proportions
$(document).ready(function () {
var GRWidth = computeGoldenRatio($(window).width());
var GRHeight = computeGoldenRatio($(window).height());
$("#tblMain").height($(window).height() + "px");
$("#tblMain").width($(window).width() + "px");
$("#col3").width(GRWidth.left + "px");
$("#col5").width(GRWidth.right + "px");
$("#col3").height(GRHeight.left + "px");
var GRcol3332H = computeGoldenRatio(GRHeight.left);
$("#col33").height(GRcol3332H.right + "px");
$("#col32").height(GRcol3332H.left + "px");
$("#col31").height((GRcol3332H.left/2) + "px");
$("#col311").height((GRcol3332H.left/2) + "px");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment