diff --git a/js/questionset.js b/js/questionset.js index bf94c0f..ca85d98 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -38,8 +38,24 @@ H5P.QuestionSet = function (options) { '.progress-dot.current {' + ' box-shadow: 0px 0px 6px firebrick;' + '}' + +'.intro-page {' + +' background: white;' + +' position: absolute;' + +' z-index: 20;' + +' height: 100%;' + +' width: 100%;' + +' left: 0px;' + +' top: 0px;' + +'}' + '' + '
' + +' <% if (introPage.showIntroPage) { %>' + +'
' + +'
<%= introPage.title %>
' + +'
<%= introPage.introduction %>
' + +'
' + +'
' + +' <%} %>' + '
<%= title %>
' + ' <% for (var i=0; i' + '
' + @@ -200,6 +216,10 @@ H5P.QuestionSet = function (options) { } } + $('#qs-startbutton').click(function (ev) { + $(this).parents('.intro-page').hide(); + }); + // Set event listeners. $('.progress-dot', $myDom).click(function (ev) { var idx = parseInt($(this).attr('id').split('-')[1]); diff --git a/views/questionset-intro.ejs b/views/questionset-intro.ejs index 8285586..cc18bb6 100644 --- a/views/questionset-intro.ejs +++ b/views/questionset-intro.ejs @@ -1,5 +1,5 @@
<%= title %>
<%= introduction %>
-
+
\ No newline at end of file diff --git a/views/questionset.ejs b/views/questionset.ejs index 1d05cdd..574132b 100644 --- a/views/questionset.ejs +++ b/views/questionset.ejs @@ -17,8 +17,24 @@ .progress-dot.current { box-shadow: 0px 0px 6px firebrick; } +.intro-page { + background: white; + position: absolute; + z-index: 20; + height: 100%; + width: 100%; + left: 0px; + top: 0px; +}
+ <% if (introPage.showIntroPage) { %> +
+
<%= introPage.title %>
+
<%= introPage.introduction %>
+
+
+ <%} %>
<%= title %>
<% for (var i=0; i