Skip to content

Commit

Permalink
adding reference to site so others can see and know where to generate
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Sep 21, 2021
1 parent c617632 commit 71b246e
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions assets/js/candygen.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,18 +336,29 @@ class CandyGen {
this.group.append("text")
.attr("x", function(d) { var center = getTextLocation(d3.select("#candy-path"), d.xoffset, d.yoffset); return center[0] + 500; })
.attr("y", function(d) { var center = getTextLocation(d3.select("#candy-path"), d.xoffset, d.yoffset); return center[1] - 10; })
.attr("fill", "yellow")
.attr("fill", client.items.choices['font_color'])
.attr("font-size", 16)
.text(function(d) {
var date = new Date();
return date.getFullYear()
});

// Reference to repository
this.group.append("text")
.attr("x", function(d) { var center = getTextLocation(d3.select("#candy-path"), d.xoffset, d.yoffset); return center[0] + 350; })
.attr("y", function(d) { var center = getTextLocation(d3.select("#candy-path"), d.xoffset, d.yoffset); return center[1] + 140; })
.attr("fill", client.items.choices['font_color'])
.attr("font-size", 10)
.attr("font-style", "italic")
.attr("opacity", "0.3")
.attr("font-family", "Arial")
.text("Created by https://vsoch.github.io/candy-generator");

this.group.append("text")
.attr("x", function(d) { var center = getTextLocation(d3.select("#candy-path"), d.xoffset, d.yoffset); return center[0]; })
.attr("y", function(d) { var center = getTextLocation(d3.select("#candy-path"), d.xoffset, d.yoffset); return center[1] + 20; })
.attr("fill", "yellow")
.attr("font-size", 14)
.attr("font-size", 14)
.classed('nutrition-box', true)
.style('display', 'none')
.attr("id", "candy-subtitle")
Expand Down

0 comments on commit 71b246e

Please sign in to comment.