Difference between revisions of "Team:NYU Abu Dhabi"

Line 13: Line 13:
 
     window.onload = () => {
 
     window.onload = () => {
 
         var svg = document.getElementById("hero-image").getSVGDocument();
 
         var svg = document.getElementById("hero-image").getSVGDocument();
 +
       
 +
        // // //
 
         $(svg.getElementById("bio")).hover(function() {
 
         $(svg.getElementById("bio")).hover(function() {
 
                                           $(this).css('cursor','pointer');
 
                                           $(this).css('cursor','pointer');
Line 19: Line 21:
 
                                     });
 
                                     });
 
         $(svg.getElementById("bio")).popover({container: "body", title: "Biology", content: "Stuff", placement:
 
         $(svg.getElementById("bio")).popover({container: "body", title: "Biology", content: "Stuff", placement:
 +
        'top', position:'fixed'});
 +
       
 +
        // // //
 +
        $(svg.getElementById("eng")).hover(function() {
 +
                                          $(this).css('cursor','pointer');
 +
                                    }, function() {
 +
                                          $(this).css('cursor','auto');
 +
                                    });
 +
        $(svg.getElementById("eng")).popover({container: "body", title: "Engineering", content: "Stuff", placement:
 +
        'top', position:'fixed'});
 +
 +
        // // //
 +
        $(svg.getElementById("eng")).hover(function() {
 +
                                          $(this).css('cursor','pointer');
 +
                                    }, function() {
 +
                                          $(this).css('cursor','auto');
 +
                                    });
 +
        $(svg.getElementById("eng")).popover({container: "body", title: "Engineering", content: "Stuff", placement:
 
         'top', position:'fixed'});
 
         'top', position:'fixed'});
 
          
 
          

Revision as of 10:50, 26 October 2017