Difference between revisions of "Template:Team:TU Eindhoven/Hexagon Script"
Line 77: | Line 77: | ||
− | $("#hexagon5").css('transform', 'translate( | + | $("#hexagon5").css('transform', 'translate(-1000,100) rotate(' + (-(360 / 6* (5 - 1) + 60)).toString() + 'deg)'); |
$("#hexagon6").css('transform', 'translate(0,0) rotate(' + (-(360 / 6* (6 - 1) + 60)).toString() + 'deg)'); | $("#hexagon6").css('transform', 'translate(0,0) rotate(' + (-(360 / 6* (6 - 1) + 60)).toString() + 'deg)'); | ||
}); | }); |
Revision as of 03:06, 19 September 2015
var vergroot = 0; var steps = 13; var afknot = 50; var amount = 6; var radius = 200; var width = 320; var height = 0.5 * Math.sqrt(3) * width; var image = ['5/56/TU_Eindhoven_menu_team.png', '5/53/TU_Eindhoven_menu_collaborations.png', 'b/bc/TU_Eindhoven_Results_Icon_Small.png', '1/1a/TU_Eindhoven_menu_project.png', '1/1d/TU_Eindhoven_menu_modeling.png', 'f/f0/TU_Eindhoven_menu_policypractice.png']; var title = ['Team','Collaborations','Results','Project','Modeling','Policy Practices']; var links = ['/Team','/Collaborations','/ResultsHome','/Project','/Modeling','/Practices']; $(document).ready(function() { //Hexagon for (j = 1; j <= amount; j++) { $('
').appendTo($("#hexagonwrapper")); $(' ' + title[j - 1] + '