Difference between revisions of "Template:Northeastern Boston/Javascript"

Line 13: Line 13:
  
 
document.getElementById("comingSoon").addEventListener("load", function() {
 
document.getElementById("comingSoon").addEventListener("load", function() {
     var doc = this.getSVGDocument();
+
     logo = this.getElementById('Logo_Logo');
    logo = doc.getElementById('Logo_Logo');
+
 
     colorGradient(logo,'#26db80','#50e2de', 10, 30);
 
     colorGradient(logo,'#26db80','#50e2de', 10, 30);
 
    /*var rect = doc.querySelector("rect"); // suppose our image contains a <rect>
 
    rect.setAttribute("fill", "green");*/
 
 
});
 
});
  

Revision as of 03:19, 16 July 2015