NUKnightLab / TimelineJS-Wordpress-Plugin

A simple shortcode plugin to add the Timeline to Wordpress
Other
207 stars 50 forks source link

start_zoom_adjust seems to have no effect #37

Open titaniumbones opened 8 years ago

titaniumbones commented 8 years ago

From what I can tell, start_zoom_adjust seems to have no effect on the actual zoom level when using timeline3.

so, for instance, this: [timeline src="https://docs.google.com/spreadsheets/d/1UiBR_iO6VZR_dks3TBs4cf1i747ExxYs0-onBWgzXL4/edit#gid=0" width="100%" height="650" font="OldStandard" lang="en" start_at_slide="10" version="timeline3" start_zoom_adjust="-100"]

looks identical to this:

[timeline src="https://docs.google.com/spreadsheets/d/1UiBR_iO6VZR_dks3TBs4cf1i747ExxYs0-onBWgzXL4/edit#gid=0" width="100%" height="650" font="OldStandard" lang="en" start_at_slide="10" version="timeline3"]

You can see that in action here: http://flynnhouse.hackinghistory.ca/

The start_zoom_adjust parameter seems to be included in timeline_config, but maybe for some reeason it's not getting loaded? If you cna give me some suggestions i cna try to fix & submit a pull request. Thanks!

maschad96 commented 5 years ago

start_zoom_adjust is not a parameter within the configuration options for timeline.js

initial_zoom is. start_zoom_adjust should be globally changed within this plugin to initial_zoom. I've adjusted it on my dev site as noted above, and it correctly adjusts the initial zoom.