jacebrowning / memegen-flask

Flask app formerly powering https://memegen.link
Other
2 stars 0 forks source link

Restore clickability on '/latest' images #5

Open jacebrowning opened 8 years ago

jacebrowning commented 8 years ago

I think this could be achieved by following the elements src when the javascript updates the page.

devsnek commented 8 years ago

i have a question about this, i tried to do elem{{ loop.index }}.parentElement.onclick = function() { document.location = '{{ src }}' } which would just always redirect to the "example" of that src (like the baby quantum physics). Am i missing something here?

jacebrowning commented 8 years ago

I am not quite understanding your question.

which would just always redirect to the "example" of that src (like the baby quantum physics

Can you describe the behavior you are seeing? Maybe some console logging would help here.

devsnek commented 8 years ago

i can't reproduce the issue anyway, i think it had to do with my school caching images in their routers :p