// Loads JsonP guide function loadGuide() { const url = 'https://guidedlearning.oracle.com/player/latest/api/scenario/get/v_IlPvRLRWObwLnV5sTOaw/5szm2kaj/?callback=guideCallback&refresh=true&env=dev&type=startPanel&vars%5Btype%5D=startPanel&sid=none&_=1582203987867' $('head').append( '' ) } // Loads external CSS given function loadCSS() { const url = 'https://guidedlearning.oracle.com/player/latest/static/css/stTip.css' $('head').append( '' ) } // Loads the tiplate css given at the json guide function addGuideCss(css) { $('head').append(''); $('.guide-css').html(css); // For removing jQuery UI dialog default close btn $('head').append( '' ) } // Adds the tip and its HTML wrapper to the DOM function addTip(tiplates) { $('body').append( '
' + '
' + '
' + '
' + '
' + '
') $('.popover-inner').html(tiplates.tip) $("button[data-iridize-role='closeBt']").click(function () { $(".sttip").hide() }); } // Puts the tip HTML in jQueryUI floating dialog and sets its appropriate location function setTipLocation(step) { selector = $(step.action.selector); if( !selector.length) { selector = document.window; } $(".sttip").dialog({ dialogClass: "no-close", position: { my: "top", at: "bottom", of: selector } }); } // Sets the tip data according to the current step in the guide // Triggers next steps data-setups function setTipData(stepId, stepCount, steps) { currStep = null; for(let i=0; i