diff --git a/step-web/src/main/webapp/js/step.util.js b/step-web/src/main/webapp/js/step.util.js index fd1d27e20f..023fa8ac55 100644 --- a/step-web/src/main/webapp/js/step.util.js +++ b/step-web/src/main/webapp/js/step.util.js @@ -2800,14 +2800,14 @@ step.util = { '' + @@ -2817,6 +2817,23 @@ step.util = { )()).modal("show"); step.util.blockBackgroundScrolling('showBookOrChapterSummaryModal'); step.util.buildBibleProjectVideo(step.userLanguageCode); + var introCountFromStorageOrCookie = step.util.localStorageGetItem("step.showBibleProject"); + var introCount = parseInt(introCountFromStorageOrCookie, 10); + if (isNaN(introCount)) introCount = 0; + if (introCount < 1) { + var introJsSteps = [ + { + element: document.querySelector('#bibleTab'), + intro: "We have added links to the BibleProject videos. Click on the \"Bible summary\" tab to see them!", + position: 'bottom' + } + ]; + introJs().setOptions({ + steps: introJsSteps + }).start(); + introCount ++; + step.util.localStorageSetItem("step.showBibleProject", introCount); + } }); }, buildBibleProjectVideo: function(lang, secondLang) { @@ -2826,6 +2843,8 @@ step.util = { lang = "zh"; } } + if (" en uk id pl hu th ko te ja ta ro it ru de zh ar arz fr es pt hi vi ".indexOf(lang) == -1) + lang = "en"; // Not a langugage provided by BibleProject $.getJSON("html/json/video/" + lang + ".json", function(video) { for (var key in video) { var curVideo = video[key];