import journey from 'lib/journey/journey.js';
import events from "lib/journey/utils/events";
import Ractive from "Ractive.js";
import fade from "lib/fade.js";
import 'lib/prism.js';
import "./config/routes.js";
import menu from "./menu/menu.js";
import "lib/bootstrap.js";
import "./animationMonitor.js";

//let contextPath = "/build";
//let contextPath = "/journey-examples/";
let contextPath = "";

menu.init( { target: "#menu", fallbackMenu: "#menu-home" } );

if (location.pathname == "/" || location.pathname == contextPath || location.pathname == "") {
	//history.replaceState(null, null, "/home"); // change url to /home as a default
}

Ractive.transitions = {
	fade
};

journey.on( events.ENTERED, function ( options ) {
	Prism.highlightAll();
} );

journey.start( {
	target: "#container",
	debug: Ractive.DEBUG = true,
	fallback: '/notFound',
	base: contextPath,
	defaultRoute: '/home',
	useOnHashChange: false,
	useHash: false,
	hash: '#!'
} );

@@ -329,18 +329,16 @@
 build%22;%0A
-//
 let cont
@@ -369,16 +369,18 @@
 ples/%22;%0A
+//
 let cont

use correct base for online examples