Browse Source

Html fix.

undefined
Benjamin ‘Touky’ Huet Sam Hocevar <sam@hocevar.net> 11 years ago
parent
commit
f30affdd8a
2 changed files with 5 additions and 7 deletions
  1. +2
    -4
      test/meshviewer_index.html
  2. +3
    -3
      test/nacl_loading.js

+ 2
- 4
test/meshviewer_index.html View File

@@ -82,7 +82,7 @@ progress::-webkit-progress-value

<script type="text/javascript">
//Base data Setup
g_div_embed_data_save = null;
g_div_embed_data_save = '';
g_div_embed_data = null; // Global application object.
g_embed_nacl_module = null; // Global application object.
g_txtarea_code_src = null;
@@ -139,7 +139,7 @@ progress::-webkit-progress-value
//Fill the TOC
g_div_alphabet.innerHTML = '&nbsp;Table of content<br>&nbsp;[';
var new_toc = BuildTOC(true);
var pattern = new RegExp("^[a-zA-Z\.]");
var pattern = new RegExp("^[a-zA-Z\.]");
while (pattern.test(new_toc))
new_toc = new_toc.replace(pattern, "<b>$&");
pattern = new RegExp("[a-zA-Z\.]$");
@@ -180,14 +180,12 @@ progress::-webkit-progress-value
<progress id="id_progress_bar" align="left"></progress>
</div>
<div id="id_div_embed_data">
<!--
<param name="wmode" value="opaque"/>
<embed name="g_embed_nacl_module"
id="id_embed_nacl_module"
width=770 height=200
src="meshviewer_nacl.nmf"
type="application/x-nacl" />
-->
</div>
</div>
</div>


+ 3
- 3
test/nacl_loading.js View File

@@ -96,7 +96,7 @@ function RestartModule()
var div_embed_data = GetDivEmbedData();
var div_embed_data_save = GetDivEmbedDataSave();

if (div_embed_data && div_embed_data_save)
if (div_embed_data)
{
HideProgressStatus(false);

@@ -111,10 +111,10 @@ function RestartModuleRestoreEmbed()
var div_embed_data = GetDivEmbedData();
var div_embed_data_save = GetDivEmbedDataSave();

if (div_embed_data && div_embed_data_save)
if (div_embed_data)
{
div_embed_data.innerHTML = div_embed_data_save;
div_embed_data.innerHTML = '';
div_embed_data_save = '';
HideProgressStatus(false);
}
}


Loading…
Cancel
Save