file_share.html 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644
  1. <html>
  2. <head>
  3. <title locale="title/title">File Share</title>
  4. <link rel="stylesheet" href="../../script/semantic/semantic.min.css">
  5. <link rel="stylesheet" href="../../script/ao.css">
  6. <script src="../../script/jquery.min.js"></script>
  7. <script src="../../script/semantic/semantic.min.js"></script>
  8. <script src="../../script/ao_module.js"></script>
  9. <script type="text/javascript" src="../../script/applocale.js"></script>
  10. <script type="text/javascript" src="../../script/qrcode.min.js"></script>
  11. <meta charset="UTF-8">
  12. <meta name="viewport" content="width=device-width, initial-scale=1.0 user-scalable=no">
  13. <style>
  14. body{
  15. background: var(--body_background) !important;
  16. }
  17. .sub.header.darkTheme{
  18. color: rgba(39, 19, 19, 0.623) !important;
  19. }
  20. .darkTheme:not(a){
  21. color: #eeeeee;
  22. }
  23. .yellow.message.darkTheme{
  24. box-shadow: none !important;
  25. border: 0px solid transparent !important;
  26. background-color: #5e550e !important;
  27. }
  28. .dropDown.darkTheme:not(.icon){
  29. background-color: #413f57 !important;
  30. border: 1px solid white;
  31. }
  32. .dropdown.darkThem .ui.label{
  33. color: rgb(175, 175, 175);
  34. background-color: #2f2d3d !important;
  35. }
  36. .dropdown.darkThem .ui.label:hover{
  37. color: white;
  38. opacity: 0.8;
  39. }
  40. </style>
  41. </head>
  42. <body>
  43. <div id="main" class="ui stackable grid">
  44. <div class="eight wide column">
  45. <div style="width: 100%;" class="qrcode" align="center">
  46. <div style="display: block; margin-left: auto; margin-right: auto;" align="center">
  47. <div id="qrcode" style="border: 10px solid white; background-color: white;">
  48. <h1><br><i class="ui loading spinner icon"></i><br></h1>
  49. </div>
  50. </div>
  51. <div style="width: 80%; text-align: center; margin-top:0.4em; ">
  52. <a id="sharelink" href="" target="_blank" style="font-size: 120%; padding-left: 20px; padding-right: 20px; word-break: break-all; overflow-wrap: anywhere;"></a>
  53. </div>
  54. </div>
  55. </div>
  56. <div id="shareSettingOptions" class="eight wide column" style="padding-left: 12px; display:none;">
  57. <div class="ui header">
  58. <span locale="share/setting/title">Share Settings</span>
  59. <div class="sub header" locale="share/setting/subtitle">Change who can see this file</div>
  60. </div>
  61. <div id="shareSettingForm" class="ui form">
  62. <div class="field">
  63. <label><p class="" locale="share/setting/options">Visable options:</p></label>
  64. <div class="ui checkboxes">
  65. <div class="ui radio checkbox">
  66. <input id="anyone" type="radio" class="shareoption" name="shareopt" value="anyone" onchange="updateSharePermission(this);">
  67. <label for="anyone">
  68. <div class="ui header">
  69. <div class="content ">
  70. <i class="globe icon"></i> <span locale="share/setting/anyoneWithLink">Anyone with the link</span>
  71. <div class="sub header" locale="share/setting/anyoneWithLink/desc">Anyone who has the link can access this file</div>
  72. </div>
  73. </div>
  74. </label>
  75. </div>
  76. <br><br>
  77. <div class="ui radio checkbox">
  78. <input id="signedin" type="radio" class="shareoption" value="signedin" name="shareopt" onchange="updateSharePermission(this);">
  79. <label for="signedin">
  80. <div class="ui header">
  81. <div class="content">
  82. <i class="user circle outline icon"></i> <span locale="share/setting/anyoneSignedIn">Anyone signed in</span>
  83. <div class="sub header" locale="share/setting/anyoneSignedIn/desc">Anyone who has signed in can access this file</div>
  84. </div>
  85. </div>
  86. </label>
  87. </div>
  88. <br><br>
  89. <div class="ui radio checkbox">
  90. <input id="samegroup" type="radio" class="shareoption" value="samegroup" name="shareopt" onchange="updateSharePermission(this);">
  91. <label for="samegroup">
  92. <div class="ui header">
  93. <div class="content">
  94. <i class="users icon"></i> <span locale="share/setting/sameGroup">Users in the same group</span>
  95. <div class="sub header" locale="share/setting/sameGroup/desc">Anyone who is in the same group as you do</div>
  96. </div>
  97. </div>
  98. </label>
  99. </div>
  100. <br><br>
  101. <div class="ui accordion" id="advanceShare">
  102. <div class="title">
  103. <i class="dropdown icon"></i>
  104. <span locale="share/setting/advance/title">Advance Share Options</span>
  105. </div>
  106. <div class="content">
  107. <div class="ui radio checkbox">
  108. <input id="users" type="radio" class="shareoption" value="users" name="shareopt" onchange="updateSharePermission(this);">
  109. <label for="users">
  110. <div class="ui header">
  111. <div class="content">
  112. <i class="clipboard check icon"></i> <span locale="share/setting/advance/users">Selected Users</span>
  113. <div class="sub header" locale="share/setting/advance/usersDesc">Selected users with matching user name</div>
  114. </div>
  115. </div>
  116. </label>
  117. </div>
  118. <div id="userselector">
  119. <p style="margin-top: 1em;" locale="share/setting/advance/usersInstruct"">Select target users from the list below</p>
  120. <select id="targetUsersList" class="ui fluid search dropdown" multiple="">
  121. <option value="">Users</option>
  122. </select>
  123. <div id="noUserWarning" class="ui yellow message" style="display:none;">
  124. <i class="caret up icon"></i> <span locale="share/setting/advance/addUserToSave">Add at least one target share user to save changes</span>
  125. </div>
  126. </div>
  127. <div class="ui radio checkbox" style="margin-top: 1em;">
  128. <input id="groups" type="radio" class="shareoption" value="groups" name="shareopt" onchange="updateSharePermission(this);">
  129. <label for="groups">
  130. <div class="ui header">
  131. <div class="content">
  132. <i class="sitemap icon"></i> <span locale="share/setting/advance/groups">Selected Groups</span>
  133. <div class="sub header" locale="share/setting/advance/groupsDesc">All the users that has access to any one of the selected group(s)</div>
  134. </div>
  135. </div>
  136. </label>
  137. </div>
  138. <div id="groupselector">
  139. <p style="margin-top: 1em;" locale="share/setting/advance/groupsInstruct">Select target groups from the list below</p>
  140. <select id="targetGroupList" class="ui fluid search dropdown" multiple="">
  141. <option value="">Groups</option>
  142. </select>
  143. <div id="noGroupWarning" class="ui yellow message" style="display:none;">
  144. <i class="caret up icon"></i> <span locale="share/setting/advance/addGroupToSave">Add at least one target share group to save changes</span>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. <br><br>
  150. <div id="udpateNotification" style="display:none; position: fixed; bottom: 1em; right: 1em;" class="ui green inverted segment">
  151. <i class=" checkmark icon"></i> <span locale="share/setting/updated">Share Setting Updated</span>
  152. </div>
  153. </div>
  154. </div>
  155. </div>
  156. </div>
  157. </div>
  158. <div class="ui divider actionButton"></div>
  159. <div class="actionButton" style="width: 100%; padding-right: 12px;" align="right">
  160. <div class="ui basic button popupbuttons allowHover" onclick="copyLinkToClipboard(this)">
  161. <i class="copy icon"></i> <span locale="button/copy">Copy</span>
  162. </div>
  163. <div id="sharingRemoveBtn" class="ui basic button popupbuttons allowHover" onclick="removeSharing()">
  164. <i class="red remove icon"></i> <span locale="button/remove">Remove</span>
  165. </div>
  166. </div>
  167. <script>
  168. /*
  169. Usage: Pass in file descriptor to start share a file
  170. var fd = encodeURIComponent(JSON.stringify({
  171. filename: "test.txt",
  172. filepath: "user:/Desktop/test.txt"
  173. })
  174. );
  175. window.open("file_share.html#" + fd);
  176. If you want to preset a file sharing mode (aka your module handle the share mode picking),
  177. Pass in with the "shareMode" paramter. Example fd as follow:
  178. {
  179. filename: "test.txt",
  180. filepath: "user:/Desktop/test.txt",
  181. shareMode: "signedin"
  182. }
  183. To remove a share, pass in "remove" for the share mode
  184. Supported Share Mode keywords {anyone/signedin/samegroup/remove}
  185. Other supported flags
  186. {
  187. QRCode: {true/false} //Show or Hide the QR Code and link
  188. ActionButtons: {true/false} //Show or Hide the action button on the bottom
  189. }
  190. */
  191. var shareCurrentEditingUUID = "";
  192. var shareingFileData = {};
  193. var darkTheme = false;
  194. var initialized = false;
  195. var fileSharingURL = "";
  196. var relpath = "../../";
  197. function applyDarkThemeMode(){
  198. $(".ui.message").addClass("inverted");
  199. darkTheme = true;
  200. }
  201. function removeQRCodeInDarkTheme(){
  202. if (darkTheme){
  203. $("#qrcode").css({
  204. "border":"0px solid transparent",
  205. "background-color":"#242330",
  206. })
  207. }
  208. }
  209. if ($(parent) && $(parent.document).find("body").hasClass("darkTheme")){
  210. //Switch to darkTheme mode immediately
  211. applyDarkThemeMode();
  212. }
  213. PageReady();
  214. function PageReady(){
  215. if (initialized){
  216. return;
  217. }
  218. //Load User & Group List
  219. $.get(relpath + "../system/users/list", function(data){
  220. var groups = {};
  221. $("#targetUsersList").html(`<option value="">Users</option>`);
  222. data.forEach(user => {
  223. $("#targetUsersList").append(`<option value="${user[0]}">${user[0]}</option>`);
  224. var userGroups = user[1];
  225. userGroups.forEach(thisGroup => {
  226. groups[thisGroup] = true;
  227. });
  228. });
  229. $("#targetGroupList").html(`<option value="">Groups</option>`);
  230. for (var [key, value] of Object.entries(groups)) {
  231. $("#targetGroupList").append(`<option value="${key}">${key}</option>`);
  232. }
  233. //Initiate the share details
  234. initFileDetails(shareingFileData, function(shareUUID){
  235. //Set the mode of share if it is defined
  236. if (shareingFileData.shareMode !== undefined && shareingFileData.shareMode == "remove"){
  237. //Remove the share UUID
  238. removeSharing();
  239. return;
  240. }
  241. if (shareingFileData.shareMode !== undefined){
  242. //As the share mode is defined by the caller, hide the setting interface
  243. $("#shareSettingOptions").hide();
  244. $("#sharelink").parent().css({
  245. "width": "100%",
  246. "text-align": "left",
  247. });
  248. $.ajax({
  249. url: relpath + "../system/file_system/share/edit",
  250. data: {uuid: shareCurrentEditingUUID, mode: shareingFileData.shareMode},
  251. success: function(data){
  252. if (data.error !== undefined){
  253. alert(data.error);
  254. return;
  255. }
  256. //Update the checkbox
  257. $(".shareoption").each(function(){
  258. if ($(this)[0].value != shareingFileData.shareMode){
  259. $(this)[0].checked = false;
  260. }else{
  261. $(this)[0].checked = true;
  262. }
  263. });
  264. }
  265. });
  266. }else{
  267. //Default: show the setting to allow user adjustment
  268. $("#main").css({
  269. "margin-top":"0em",
  270. "padding": "4px"
  271. });
  272. $("#shareSettingOptions").show();
  273. }
  274. $(".accordion").accordion();
  275. });
  276. });
  277. //Load theme style
  278. $.get(relpath + "../system/file_system/preference?key=file_explorer/theme",function(data){
  279. if (data == "darkTheme"){
  280. $("body").addClass("darkTheme");
  281. applyDarkThemeMode();
  282. }else{
  283. $("body").addClass("whiteTheme");
  284. }
  285. });
  286. initialized = true;
  287. //Do localization
  288. applocale.init(relpath + "../SystemAO/locale/file_share.json", function(){
  289. applocale.translate();
  290. });
  291. $(".checkbox").checkbox();
  292. $(".dropdown").dropdown();
  293. var inputFile = ao_module_loadInputFiles();
  294. if (inputFile == null){
  295. //No file selected
  296. $(".shareoption").parent().addClass("disabled");
  297. $("#qrcode").html(`<h1>No File</h1>`);
  298. $("#sharelink").text(``);
  299. $("#sharingRemoveBtn").addClass("disabled");
  300. return
  301. }
  302. //Make sure one file is choicen each time
  303. inputFile = inputFile[0];
  304. console.log("inputFile", inputFile);
  305. shareingFileData = inputFile;
  306. //Filter out the nessary display flags
  307. if (shareingFileData.QRCode !== undefined && shareingFileData.QRCode == false){
  308. $(".qrcode").hide();
  309. $("#shareSettingOptions").attr("class", "sixteen wide column");
  310. $("#shareSettingOptions").css("padding", "1em");
  311. $(".eight.wide").hide();
  312. }
  313. if (shareingFileData.ActionButtons !== undefined && shareingFileData.ActionButtons == false){
  314. $(".actionButton").hide();
  315. }
  316. }
  317. function initFileDetails(shareingFileData, callback=undefined){
  318. $.ajax({
  319. url: relpath + "../system/file_system/share/new",
  320. data: {path: shareingFileData.filepath},
  321. success: function(data){
  322. if (data.error !== undefined){
  323. alert(data.error);
  324. }else{
  325. console.log(data);
  326. updateShareLinkInfo(data.UUID);
  327. shareCurrentEditingUUID = data.UUID;
  328. $(".shareoption").each(function(){
  329. if ($(this)[0].value != data.Permission){
  330. $(this)[0].checked = false;
  331. }else{
  332. $(this)[0].checked = true;
  333. if (data.Permission == "users"){
  334. $("#advanceShare").accordion("open", 0);
  335. $("#targetUsersList").dropdown("set selected", data.Accessibles);
  336. $("#targetUsersList").parent().removeClass("disabled");
  337. $("#targetGroupList").parent().addClass("disabled");
  338. }else if (data.Permission == "groups"){
  339. $("#advanceShare").accordion("open", 0);
  340. $("#targetGroupList").dropdown("set selected", data.Accessibles);
  341. $("#targetUsersList").parent().addClass("disabled");
  342. $("#targetGroupList").parent().removeClass("disabled");
  343. }else{
  344. $("#targetGroupList").parent().addClass("disabled");
  345. $("#targetUsersList").parent().addClass("disabled");
  346. }
  347. }
  348. });
  349. $("#targetUsersList").on("change", function(evt){
  350. updateSharePermissionByType("users");
  351. });
  352. $("#targetGroupList").on("change", function(evt){
  353. updateSharePermissionByType("groups");
  354. });
  355. //If the file is from desktop, set share icon
  356. if (ao_module_virtualDesktop == true){
  357. var fileDir = shareingFileData.filepath.split("/");
  358. fileDir.pop();
  359. fileDir = fileDir.join("/");
  360. if (fileDir == "user:/Desktop"){
  361. //Remove share icon
  362. parent.setFileShareIndicator(shareingFileData.filename);
  363. }
  364. }
  365. if (callback != undefined){
  366. callback(data.UUID)
  367. }
  368. }
  369. }
  370. });
  371. }
  372. function removeSharing(){
  373. if (shareCurrentEditingUUID == ""){
  374. return
  375. }
  376. //The target file to remove
  377. $.ajax({
  378. url: relpath + "../system/file_system/share/delete",
  379. data: {uuid: shareCurrentEditingUUID},
  380. success: function(data){
  381. if (data.error !== undefined){
  382. alert(data.error);
  383. }else{
  384. //Removed!
  385. $(".button").addClass('disabled');
  386. $(".checkbox").addClass("disabled");
  387. $("#sharelink").text("");
  388. $("#sharelink").attr("href", "#");
  389. $("#qrcode").html(`<br><br><h1><i class="green checkmark icon"></i> ${applocale.getString("message/removed", "Share Removed")}</h1>`);
  390. removeQRCodeInDarkTheme();
  391. //If the file is located on desktop and it is web desktop mode
  392. if (ao_module_virtualDesktop == true){
  393. var fileDir = shareingFileData.filepath.split("/");
  394. fileDir.pop();
  395. fileDir = fileDir.join("/");
  396. if (fileDir == "user:/Desktop"){
  397. //Remove share icon
  398. parent.removeFileShareIndicator(shareingFileData.filename);
  399. }
  400. }
  401. }
  402. }
  403. });
  404. }
  405. function updateSharePermission(object){
  406. var newPermission = $(object).attr('value');
  407. updateSharePermissionByType(newPermission);
  408. }
  409. function updateSharePermissionByType(newPermission){
  410. if (newPermission == "users"){
  411. //Build the user list
  412. $("#targetUsersList").parent().removeClass("disabled");
  413. $("#targetGroupList").parent().addClass("disabled");
  414. var selectedUsers = $("#targetUsersList").val();
  415. $("#noGroupWarning").slideUp("fast");
  416. if (selectedUsers.length == 0){
  417. //Show tips message
  418. $("#noUserWarning").slideDown("fast");
  419. return;
  420. }else{
  421. $("#noUserWarning").slideUp("fast");
  422. }
  423. //Rewrite it to permission handling description
  424. newPermission = "users:" + selectedUsers.join(",");
  425. }else if (newPermission == "groups"){
  426. //Build the group list
  427. $("#targetUsersList").parent().addClass("disabled");
  428. $("#targetGroupList").parent().removeClass("disabled");
  429. var selectedGroups = $("#targetGroupList").val();
  430. $("#noUserWarning").slideUp("fast");
  431. if (selectedGroups.length == 0){
  432. //Show tips message
  433. $("#noGroupWarning").slideDown("fast");
  434. return;
  435. }else{
  436. $("#noGroupWarning").slideUp("fast");
  437. }
  438. //Rewrite it to permission handling description
  439. newPermission = "groups:" + selectedGroups.join(",");
  440. }
  441. $.ajax({
  442. url: relpath + "../system/file_system/share/edit",
  443. data: {uuid: shareCurrentEditingUUID, mode: newPermission},
  444. success: function(data){
  445. if (data.error !== undefined){
  446. alert(data.error);
  447. return;
  448. }
  449. $("#udpateNotification").stop().finish().fadeIn("fast").delay(3000).fadeOut("fast");
  450. }
  451. });
  452. }
  453. function updateShareLinkInfo(uuid){
  454. $("#qrcode").html("");
  455. let protocol = "https://";
  456. if (location.protocol !== 'https:') {
  457. protocol = "http://";
  458. }
  459. var port = ":" + window.location.port;
  460. if (window.location.port == ""){
  461. port = "";
  462. }
  463. var shareURL = protocol + window.location.hostname + port + "/share/" + uuid;
  464. shareCurrentEditingUUID = uuid;
  465. fileSharingURL = shareURL;
  466. new QRCode(document.getElementById("qrcode"), shareURL);
  467. $("#sharelink").text(shareURL);
  468. $("#sharelink").attr("href", shareURL)
  469. }
  470. /*
  471. Dynamic Script Loader
  472. This is a really experimental implementation of importing a script from anywhere
  473. under the ArozOS web root. This section of code must be written in plain JS to make sure
  474. it works without jQuery and other libraries.
  475. This function try to load jQuery and ao_module from the script folder.
  476. Also loading the semantic js and the css main body
  477. */
  478. /*
  479. //The possible location for desktop.system, standard webapp module, SystemAO interfaces and iui sub-interfaces
  480. let possibleLocations = ["script/", "../script/", "../../script/", "../../../script/"];
  481. let loopCount = Math.min(possibleLocations.length, JSON.parse(JSON.stringify(window.location.toString())).split("/").length - 3);
  482. function tryLoad(relpath, filename, successCallback=undefined){
  483. var request = new XMLHttpRequest();
  484. request.open('GET', relpath + filename, true);
  485. request.onreadystatechange = function(){
  486. if (request.readyState === 4){
  487. if (request.status == 200 || request.status == 304) {
  488. if (typeof(successCallback) != "undefined"){
  489. successCallback(relpath, filename);
  490. }
  491. }
  492. }
  493. };
  494. request.send();
  495. }
  496. function injectOtherJavaScriptLibrary(relpath){
  497. //Check if ao_module is loaded
  498. if (typeof(ao_module_virtualDesktop) == "undefined"){
  499. var script = document.createElement('script');
  500. script.setAttribute('src', relpath + "ao_module.js");
  501. document.getElementsByTagName('head')[0].appendChild(script);
  502. }else{
  503. //This routine already run
  504. return;
  505. }
  506. //Inject QR Code library
  507. var script = document.createElement('script');
  508. script.setAttribute('src', relpath + "qrcode.min.js");
  509. document.getElementsByTagName('head')[0].appendChild(script);
  510. //Inject applocale
  511. script = document.createElement('script');
  512. script.setAttribute('src', relpath + "applocale.js");
  513. document.getElementsByTagName('head')[0].appendChild(script);
  514. //Inject semmantic css and js anyway
  515. var head = document.getElementsByTagName('head')[0];
  516. var link = document.createElement('link');
  517. link.id = "semantic";
  518. link.rel = 'stylesheet';
  519. link.type = 'text/css';
  520. link.href = relpath + 'semantic/semantic.min.css';
  521. link.media = 'all';
  522. head.appendChild(link);
  523. var script = document.createElement('script');
  524. script.setAttribute('src', relpath + "semantic/semantic.min.js");
  525. document.getElementsByTagName('head')[0].appendChild(script);
  526. setTimeout(function(){
  527. PageReady();
  528. }, 1000);
  529. }
  530. //Load jQuery first
  531. if (typeof(window.jQuery) == "undefined"){
  532. //jQuery not found. Load it
  533. for (var i = 0; i < loopCount; i++){
  534. var relpath = possibleLocations[i];
  535. tryLoad(relpath, "jquery.min.js", function(relpath, filename){
  536. //Generate the jquery script element
  537. var script = document.createElement('script');
  538. script.setAttribute('src', relpath + filename);
  539. document.getElementsByTagName('head')[0].appendChild(script);
  540. doAfterJqueryLoaded(function(){
  541. injectOtherJavaScriptLibrary(relpath);
  542. });
  543. });
  544. }
  545. }else{
  546. //jQuery exists. Load ao_module
  547. injectOtherJavaScriptLibrary();
  548. }
  549. function doAfterJqueryLoaded(callback){
  550. setTimeout(function(){
  551. //Wait until it is loaded
  552. if (typeof(window.jQuery) == "undefined"){
  553. doAfterJqueryLoaded(callback);
  554. return
  555. }else{
  556. callback();
  557. }
  558. }), 300;
  559. }
  560. */
  561. function copyLinkToClipboard(btn){
  562. //Copy text
  563. const area = document.createElement('textarea');
  564. document.body.appendChild(area);
  565. area.value = fileSharingURL;
  566. area.select();
  567. document.execCommand('copy');
  568. document.body.removeChild(area);
  569. //Do visual feedback
  570. let oldContent = $(btn).html();
  571. $(btn).html(`<i class="green checkmark icon"></i> ${applocale.getString("button/copied","Copied!")}`);
  572. setTimeout(function(){
  573. $(btn).html(oldContent);
  574. }, 3000);
  575. }
  576. </script>
  577. </body>
  578. </html>