Browse Source

formatting

pull/557/head
Adam Ever-Hadani 11 years ago
parent
commit
1620d3e5cd
  1. 7
      source/js/VMM.Timeline.js

7
source/js/VMM.Timeline.js

@ -67,7 +67,7 @@ if(typeof VMM != 'undefined' && typeof VMM.Timeline == 'undefined') {
preload: 4,
current_slide: 0,
hash_bookmark: false,
use_hashbang: false,
use_hashbang: false,
start_at_end: false,
start_at_slide: 0,
start_zoom_adjust: 0,
@ -160,11 +160,11 @@ if(typeof VMM != 'undefined' && typeof VMM.Timeline == 'undefined') {
}
window.onhashchange = function () {
var hash = (config.use_hashbang)
var hash = (config.use_hashbang)
? window.location.hash.substring(2)
: window.location.hash.substring(1);
if (config.hash_bookmark) {
if (config.hash_bookmark) {
if (is_moving) {
goToEvent(parseInt(hash));
} else {
@ -695,3 +695,4 @@ if(typeof VMM != 'undefined' && typeof VMM.Timeline == 'undefined') {
VMM.Timeline.Config = {};
};

Loading…
Cancel
Save