Improved tutorials
diff --git a/dev/js/src/tutorial.js b/dev/js/src/tutorial.js
index dae5fbf..4f00ee1 100644
--- a/dev/js/src/tutorial.js
+++ b/dev/js/src/tutorial.js
@@ -2,8 +2,9 @@
* Open and close a tutorial page.
* The current page is stored and retrieved in a session cookie.
*/
-// Todo: add query mechanism!
-
+// TODO: Add query mechanism!
+// TODO: Highlight current section:
+// http://stackoverflow.com/questions/24887258/highlight-navigation-link-as-i-scroll-down-the-page
define(['session', 'util'], function (sessionClass) {
"use strict";
@@ -52,7 +53,10 @@
if (this._iframe === null) {
this._iframe = document.createElement('iframe');
- this._iframe.setAttribute('src', this.getPage() || this.start);
+ this._iframe.setAttribute(
+ 'src',
+ (this.getPage() || this.start) + '?embedded=true'
+ );
var ul = document.createElement('ul');
ul.classList.add('action', 'right');