Francesco215 / Language_CA

Algorithm that generates text in a way inspired by morphogenesis
9 stars 3 forks source link

windowed_ham.js not working on Safari #25

Closed Francesco215 closed 11 months ago

Francesco215 commented 1 year ago

The windowed_ham.js file is the script for an interactive svg figure in the website.

It is inside the spoiler section of "Topological requirements for self-organization"

when hovering the mouse over one of the squares it draws an orange window.

Screenshot 2023-10-18 alle 19 06 59

In safari i had to show the user a static image because the text would be rendered incorrectly. The windowed_ham.js code at the moment is like this

if (window.navigator.userAgent.indexOf("Safari") != -1) {
    ... // code for the static image showed in safari
}
else{
    ... // actual code that works only on chromium and firefox
}

For an easier development i made the test.html page with just the interactive svg image, i suggest you use that for fixing the problem