All posts created by CameronKnowlton

3 years ago
I noticed a [closed] discussion on this issue:
https://wordart.com/forums/general/api

However, those links lead to a [groovy looking] 404 page.

What's the current state of a WordArt API?

Thanks.
3 years ago
thank you, that trick helped for sure!
3 years ago
You forgot to mention the following line to make the js work:
window["TAGUL_DO_NOT_PROTECT_URL"] = true;
3 years ago
1) What do you mean "patch the HTMLfile"? All I get is an element from your site that I paste onto my page. It has a minified JS that I have no idea how it works.
2) when I put "javascript(alert('ok' ))" into the link column of the words table all it does is use it as if it was a relative link on the wordart site, ie https://wordaty/com/edit/javascript(alert('ok' )). It does not run the js.
3 years ago
When someone clicks on a word the system figures out which URL to send the page to. I believe it is due to entries like this in the WordArt data.
{
"parentId": "vodP",
"textId": 255,
"fill": "#791131",
"shapeColor": "00bc43",
"matrix": [
[0.003920013386880856, 0, 353.14379919678714],
[0, 0.003920013386880856, 169.6797576419637]
],
"url": "http://www.theknowltons.com/wc_idx/idx006.html#HARRISON"
}
When the click is done I would like to be able to hook up an event listener that will fire before the page moves on to the "url" in that data structure. Is there an event I can listen for that fires when a word is clicked?
3 years ago
In WordArt's animated HTML code, are you able to trigger a custom event that we can detect? Something, anything, that can be detected in Javascript, or HTML, or …?
3 years ago
OK, so I have clicks working now in the HTML Animated download (using manual configuration of each word's link).

However, I'm not able to detect in Google Tag Manager the word being clicked on. I'm pretty advanced in GTM, but I can't detect any variable in GTM's Preview/Debug mode that suggests the specific word clicked. I can't even extract the target URL during the click.

I'm hoping to catch the word being clicked and sending that to Google Analytics as an Event.

The SVG in question is live on my genealogy site's home page:
http://www.theknowltons.com/
Edited 29 Jun, 2021 19:54
3 years ago
I notice that Links are not implemented in the [high res] SVG download, even though they work [swimmingly] in the Animated version of the download.

SVGs are fully capable of using links (surround the Shape with an A tag), e.g.
<a href="theLink.html">
<g transform="

</g>
</a>

The Animated output is nice, but a linked SVG is critical to us for SEO and other automated link discovery needs.

There's no indication in the SVG group container <g> what that group represents, so I cannot mark up the SVG myself.

How can we obtain a linked SVG?
Edited 15 Jun, 2021 23:25