Browse Source

Allow # bookmarks to override both start_at_end and start_at_slide

pull/177/head
Zach Wise 13 years ago
parent
commit
899565d4b1
  1. 4
      compiled/js/timeline-min.js
  2. 11
      compiled/js/timeline.js
  3. 11
      source/js/VMM.Timeline.js

4
compiled/js/timeline-min.js vendored

File diff suppressed because one or more lines are too long

11
compiled/js/timeline.js

@ -6727,14 +6727,15 @@ if(typeof VMM != 'undefined' && typeof VMM.Timeline == 'undefined') {
================================================== */
var build = function() {
// START AT END?
// START AT SLIDE
if (parseInt(config.start_at_slide) > 0 && config.current_slide == 0) {
config.current_slide = parseInt(config.start_at_slide);
}
// START AT END
if (config.start_at_end && config.current_slide == 0) {
config.current_slide = _dates.length - 1;
}
// START AT END?
if (parseInt(config.start_at_slide) > 0) {
config.current_slide = parseInt(config.start_at_slide);
}
// IE7
if (ie7) {

11
source/js/VMM.Timeline.js

@ -410,14 +410,15 @@ if(typeof VMM != 'undefined' && typeof VMM.Timeline == 'undefined') {
================================================== */
var build = function() {
// START AT END?
// START AT SLIDE
if (parseInt(config.start_at_slide) > 0 && config.current_slide == 0) {
config.current_slide = parseInt(config.start_at_slide);
}
// START AT END
if (config.start_at_end && config.current_slide == 0) {
config.current_slide = _dates.length - 1;
}
// START AT END?
if (parseInt(config.start_at_slide) > 0) {
config.current_slide = parseInt(config.start_at_slide);
}
// IE7
if (ie7) {

Loading…
Cancel
Save