Commit 33d9c50e authored by Colin Shea's avatar Colin Shea

Switch from a simple image tag to using <embed> for the contrib-graph

This will allow me to be able to inject styles and other craziness later
on. For now we just add a highlight, but Soon it will also display the
count as a tooltip.
parent 5ab8ea44
......@@ -21,3 +21,4 @@ Gemfile.lock
......@@ -4,7 +4,14 @@ title: Selected projects
# Select code projects
![a calendar highlighting my contributions over the past year](/calendar.svg)
<embed id="contrib-graph" src="/calendar.svg" type="image/svg+xml"></embed>
var svgDoc = document.getElementById("contrib-graph").getSVGDocument();
var styleElement = svgDoc.createElementNS("", "style");
styleElement.textContent = "rect:hover { stroke: #000; }";
Here are a selection of my coding projects. If you want more of this, be sure
to check out
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment