[473] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
| 2 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
---|
| 3 | <head> |
---|
| 4 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> |
---|
| 5 | <title>Violet Online</title> |
---|
| 6 | <style>html, body {height: 100%; margin: 0; padding: 0;}</style> |
---|
| 7 | </head> |
---|
| 8 | <script type="text/javascript" language="JavaScript"> |
---|
| 9 | <!--// |
---|
| 10 | |
---|
| 11 | var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1; |
---|
| 12 | var g_Flash = null; |
---|
| 13 | var g_cbData = ""; |
---|
| 14 | |
---|
| 15 | function InitViolet() { |
---|
[483] | 16 | //g_Flash = isInternetExplorer ? LectorEditorOnline : document.LectorEditorOnline; |
---|
| 17 | g_Flash = document.getElementById('LectorEditorOnline'); |
---|
[473] | 18 | } |
---|
| 19 | |
---|
| 20 | function GetClipboardItem() { |
---|
| 21 | var cbData = window.clipboardData? window.clipboardData.getData('Text'): g_cbData; |
---|
| 22 | g_Flash.SetVariable("clipboardData", cbData); |
---|
| 23 | g_Flash.SetVariable("command", "Get Text"); |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | function SetClipboardItem(args) { |
---|
| 27 | if (window.clipboardData) window.clipboardData.setData('Text', args); |
---|
| 28 | else g_cbData = args; |
---|
| 29 | g_Flash.SetVariable("command", "Set OK"); |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | function SetWindowTitle(fileName) { |
---|
| 33 | if (fileName == "") document.title = "Violet Online"; |
---|
| 34 | else { |
---|
| 35 | var docName = fileName.substring(0, fileName.length - 4); |
---|
| 36 | document.title = "Violet Online - " + docName; |
---|
| 37 | } |
---|
| 38 | } |
---|
| 39 | |
---|
| 40 | function SetWindowState() { |
---|
| 41 | var full = (g_Flash.width == "100%"); |
---|
| 42 | g_Flash.width = full? "800": "100%"; |
---|
| 43 | g_Flash.height = full? "580": "100%"; |
---|
| 44 | } |
---|
| 45 | |
---|
| 46 | // Handle all the FSCommand messages in a Flash movie. |
---|
| 47 | function LectorEditorOnline_DoFSCommand(command, args) { |
---|
| 48 | switch (command) { |
---|
| 49 | case "Set Title": SetWindowTitle(args); break; |
---|
| 50 | case "Get Clipboard": GetClipboardItem(); break; |
---|
| 51 | case "Set Clipboard": SetClipboardItem(args); break; |
---|
| 52 | case "Set State": SetWindowState(); break; |
---|
| 53 | case "Quit": window.open('','_self').close(); break; |
---|
| 54 | case "trace": alert(args); break; |
---|
| 55 | } |
---|
| 56 | } |
---|
| 57 | |
---|
| 58 | // Hook for Internet Explorer. |
---|
| 59 | if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) { |
---|
| 60 | document.write('<script language=\"VBScript\"\>\n'); |
---|
| 61 | document.write('On Error Resume Next\n'); |
---|
| 62 | document.write('Sub LectorEditorOnline_FSCommand(ByVal command, ByVal args)\n'); |
---|
| 63 | document.write(' Call LectorEditorOnline_DoFSCommand(command, args)\n'); |
---|
| 64 | document.write('End Sub\n'); |
---|
| 65 | document.write('</script\>\n'); |
---|
| 66 | } |
---|
| 67 | |
---|
| 68 | //--> |
---|
| 69 | </script> |
---|
| 70 | <?php $langParam = $_REQUEST['language']? '&language='.$_REQUEST['language']: '' ?> |
---|
| 71 | <?php $flashVars = 'online=true&applicationId=Violet Online' ?> |
---|
| 72 | <?php $flashVars.= '&commonLibList=sxIOE3.xml,sxIOE4.xml,sxIOE5.xml,tnIOE3.xml,tnIOE4.xml,tnIOE5.xml' ?> |
---|
| 73 | <?php $flashVars.= '&youtubeUrl=Service/fake_youtube.php'.$langParam.'&command=Init OK' ?> |
---|
| 74 | <body bgcolor="#ffffff" onload="InitViolet()"> |
---|
| 75 | <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="100%" id="LectorEditorOnline"> |
---|
| 76 | <param name="allowScriptAccess" value="sameDomain" /> |
---|
| 77 | <param name="movie" value="Lecture/LectureEditor.swf" /> |
---|
| 78 | <param name="flashVars" value="<?php echo $flashVars ?>"> |
---|
| 79 | <param name="quality" value="high" /> |
---|
| 80 | <param name="bgcolor" value="#ffffff" /> |
---|
| 81 | <embed src="Lecture/LectureEditor.swf" quality="high" bgcolor="#ffffff" width="100%" height="100%" name="LectorEditorOnline" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashVars="<?php echo $flashVars ?>"/> |
---|
| 82 | </object> |
---|
| 83 | </body> |
---|