csci-1301 / csci-1301.github.io

CSCI 1301: Principles of Computer Programming I course resources
https://csci-1301.github.io/
Creative Commons Attribution 4.0 International
3 stars 14 forks source link

Possibility of zooming on pictures #45

Open aubertc opened 3 years ago

aubertc commented 3 years ago

I have just added, with 426a0a8c4103edfa99d3b15167241a700dcb5c5b and de73c069dd17ca36831973dfc0ac071c95d03fe6, visual representations that I hope will ease the understanding of the differences and relationships between languages (cf. just above https://csci-1301.github.io/book.html#software-concepts-1 ).

However, the pictures are not really visible (especially the second), and it would be beneficial to have a way of zooming on the pictures in the html version of the book. A jquerry zoom plug-in could maybe implement this feature?

aubertc commented 3 years ago

Of course, there is always the option of telling the student to do a simple right click -> view image, if we don't want to go that road…

nkrusch commented 3 years ago

I like this idea but can we find something similar that does not depend on jquery, ideally no dependencies?

aubertc commented 3 years ago

Around here they suggest to simply add a link to the original image from the image, but that creates all kinds of complications (the "auto-completion" of the file path with svg or pdf based on the output cannot work anymore, the figure environment is butchered…).

If we want to avoid dependencies (which I think we do), then I'm afraid the only viable solution is to indicate somewhere "on the html, right click -> view image" is the best. Low-tech, ok, but it works and is future-proof.