Created
November 5, 2018 01:47
-
-
Save jinan-kordab/c5296328682fd206624e221ae1f8b759 to your computer and use it in GitHub Desktop.
Phi setting proportions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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