Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title>Set10</title>
- <meta http-equiv="X-UA-Compatible" content="IE=100">
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <link rel="shortcut icon" type="image/x-icon" href="favicon.ico?version=10.2.56.0">
- <link rel="icon" type="image/x-icon" href="favicon.ico?version=10.2.56.0">
- <!-- library -->
- <script src="js/AC_OETags.js" type="text/javascript"></script>
- <script src="js/jquery/jquery-1.11.3.js" type="text/javascript"></script>
- <script src="js/jquery/jquery.cookie.js" type="text/javascript"></script>
- <script src="js/swfobject/swfobject.js" type="text/javascript"></script>
- <!-- application -->
- <script src="js/app/document-printing.js?version=10.2.56.0" type="text/javascript"></script>
- <script src="js/app/focus-detection.js?version=10.2.56.0" type="text/javascript"></script>
- <script src="js/app/logging.js?version=10.2.56.0" type="text/javascript"></script>
- <script src="js/app/cookies.api.js?version=10.2.56.0" type="text/javascript"></script>
- <script src="js/air/air-detection.js?version=10.2.56.0" type="text/javascript"></script>
- <link href="css/styles.css?version=10.2.56.0" rel="stylesheet">
- <script type="text/javascript">
- $.cookie.json = true;
- if (window.parentSandboxBridge) {
- loadFile = window.parentSandboxBridge.loadFile;
- openFile = window.parentSandboxBridge.openFile;
- openWindow = window.parentSandboxBridge.openWindow;
- getLastVersion = window.parentSandboxBridge.getLastVersion;
- getCurrentVersion = window.parentSandboxBridge.getCurrentVersion;
- update = window.parentSandboxBridge.update;
- isWindowFocused = window.parentSandboxBridge.isWindowFocused;
- }
- var sandboxBridge = {
- handleError: handleError,
- showLoader: showLoader,
- hideLoader: hideLoader,
- showFileLoadedPopup: showFileLoadedPopup,
- setCookie: setCookie,
- getCookie: getCookie
- };
- if (isAIR()) {
- window.childSandboxBridge = sandboxBridge;
- }
- var swfName = "RetailX.swf";
- var appID = "application";
- var requiredPlayerVersion = "10.0.0";
- var expressInstallPath = "js/swfobject/expressInstall.swf";
- /* Для того, чтобы сразу можно было вводить текст в тексовые поля в SWF(например, страница логина),
- нам надо установить фокус на флешку.
- setTimeout(.. , 80) используется, чтобы обходить проблемы в Chrome и Firefox
- */
- $(document).ready(function() {
- setTimeout(function () {
- var element = document.getElementById("application");
- element.focus();
- }, 80);
- });
- //Закомментирована вставка swf с помощью swfobject до решения проблемы
- /*
- swfobject.switchOffAutoHideShow();
- swfobject.embedSWF(
- swfName,
- appID,
- "100%",
- "100%",
- requiredPlayerVersion,
- expressInstallPath
- );
- */
- function handleError(msg) {
- document.getElementById("application").handleError(msg);
- }
- function showLoader() {
- document.getElementById("application").showLoader();
- }
- function hideLoader() {
- document.getElementById("application").hideLoader();
- }
- function showFileLoadedPopup(path) {
- document.getElementById("application").showFileLoadedPopup(path);
- }
- </script>
- </head>
- <body>
- <script language="JavaScript" type="text/javascript">
- var hasProductInstall = DetectFlashVer(6, 0, 65);
- var hasRequestedVersion = DetectFlashVer(10, 0, 0);
- if (hasProductInstall && !hasRequestedVersion) {
- var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
- var MMredirectURL = encodeURI(window.location);
- //document.title = document.title.slice(0, 47) + " - Flash Player Installation";
- var MMdoctitle = document.title;
- AC_FL_RunContent(
- "src", "playerProductInstall",
- "FlashVars", "MMredirectURL=" + MMredirectURL + '&MMplayerType=' + MMPlayerType + '&MMdoctitle=' + MMdoctitle + "",
- "width", "100%",
- "height", "100%",
- "align", "middle",
- "id", "application",
- "quality", "high",
- "bgcolor", "#FFFFFF",
- "name", "application",
- "allowScriptAccess", "sameDomain",
- "type", "application/x-shockwave-flash",
- "pluginspage", "http://www.adobe.com/go/getflashplayer"
- );
- } else if (hasRequestedVersion) {
- AC_FL_RunContent(
- "src", "RetailX.swf?version=10.2.56.0",
- "width", "100%",
- "height", "100%",
- "align", "middle",
- "id", "application",
- "quality", "high",
- "bgcolor", "#FFFFFF",
- "name", "application",
- "allowScriptAccess", "sameDomain",
- "type", "application/x-shockwave-flash",
- "pluginspage", "http://www.adobe.com/go/getflashplayer"
- );
- } else {
- var alternateContent = "This content requires the Adobe Flash Player. "
- + "<a href=http://www.adobe.com/go/getflash>Get Flash</a>";
- document.write(alternateContent);
- }
- </script>
- <noscript>
- <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
- id="application" width="100%" height="100%"
- codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
- <param name="movie" value="RetailX.swf?version=10.2.56.0">
- <param name="quality" value="high">
- <param name="bgcolor" value="#FFFFFF">
- <param name="allowScriptAccess" value="sameDomain">
- <embed src="RetailX.swf?version=10.2.56.0" quality="high" bgcolor="#FFFFFF"
- width="100%" height="100%" name="application" align="middle"
- play="true" loop="false"
- quality="high" allowScriptAccess="sameDomain"
- type="application/x-shockwave-flash"
- pluginspage="http://www.adobe.com/go/getflashplayer">
- </embed>
- </object>
- </noscript>
- <!-- Вставка с помощью swfobject добавляет 20px к высоте swf,
- изза этого в браузере появляются полосы прокрутки, видимо проблема гдето
- в скрипте swfobject, после решения этой проблемы, нужно перейти на такой
- метод вставки swf
- <div id="application">
- <p>Please install flash player!<br><a href="http://www.adobe.com/go/getflashplayer">http://www.adobe.com/go/getflashplayer</a>
- </p>
- </div>
- -->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement