Difference between revisions of "Template:Team:TU Eindhoven/Hexagon Script"
Line 9: | Line 9: | ||
var image = ['5/56/TU_Eindhoven_menu_team.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 = ['5/56/TU_Eindhoven_menu_team.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', , '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', , '1/1a/TU_Eindhoven_menu_project.png']; | ||
− | var title = [' | + | var title = ['Team','Collaborations','Results','Project','Modeling','Policy Practices']; |
− | var links = ['/ | + | var links = ['/Team','/Collaborations','/ResultsHome','/Project','/Modeling','/Practices']; |
− | + | ||
− | + | ||
$(document).ready(function() { | $(document).ready(function() { |
Revision as of 09:54, 18 September 2015
var vergroot = 0; var steps = 13; var afknot = 50; var amount = 6; var radius = 250; 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', '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', , '1/1a/TU_Eindhoven_menu_project.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")); $('