Difference between revisions of "Template:Team:TU Eindhoven/Hexagon Script"
Jan Willem (Talk | contribs) (Created page with "<html> var vergroot = 0; var steps = 13; var afknot = 50; var amount = 6; var radius = 170; var width = 270; var height = 0.5 * Math.sqrt(3) * width; var image = ['f/f0/TU_Eindho...") |
|||
Line 8: | Line 8: | ||
var height = 0.5 * Math.sqrt(3) * width; | var height = 0.5 * Math.sqrt(3) * width; | ||
var image = ['f/f0/TU_Eindhoven_menu_policypractice.png', '5/53/TU_Eindhoven_menu_collaborations.png', '1/14/TU_Eindhoven_menu_sponsors.png', 'b/bb/TU_Eindhoven_menu_home.png', '5/56/TU_Eindhoven_menu_team.png', '1/1a/TU_Eindhoven_menu_project.png']; | var image = ['f/f0/TU_Eindhoven_menu_policypractice.png', '5/53/TU_Eindhoven_menu_collaborations.png', '1/14/TU_Eindhoven_menu_sponsors.png', 'b/bb/TU_Eindhoven_menu_home.png', '5/56/TU_Eindhoven_menu_team.png', '1/1a/TU_Eindhoven_menu_project.png']; | ||
− | var title = ['Policy Practices', ' | + | var title = ['Policy Practices', 'Collaborations', 'Sponsors', 'Home', 'Team', 'Project']; |
− | var links = ['/ | + | var links = ['/Policy', '/Collaborations', '/Team/Sponsors', '', '/Team', '/Description']; |
Revision as of 06:56, 22 July 2015
var vergroot = 0; var steps = 13; var afknot = 50; var amount = 6; var radius = 170; var width = 270; var height = 0.5 * Math.sqrt(3) * width; var image = ['f/f0/TU_Eindhoven_menu_policypractice.png', '5/53/TU_Eindhoven_menu_collaborations.png', '1/14/TU_Eindhoven_menu_sponsors.png', 'b/bb/TU_Eindhoven_menu_home.png', '5/56/TU_Eindhoven_menu_team.png', '1/1a/TU_Eindhoven_menu_project.png']; var title = ['Policy Practices', 'Collaborations', 'Sponsors', 'Home', 'Team', 'Project']; var links = ['/Policy', '/Collaborations', '/Team/Sponsors', '', '/Team', '/Description']; $(document).ready(function() { //Hexagon for (j = 1; j <= amount; j++) { $('
').appendTo($("#hexagonwrapper")); $(' ' + title[j - 1] + '