Persönliche Werkzeuge

Test Musterbogen

Aus BogenWiki

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
Zeile 18: Zeile 18:
   <tr style="background:white" valign=top>
   <tr style="background:white" valign=top>
     <td id="Frame.Bottom" width=100% valign=top>
     <td id="Frame.Bottom" width=100% valign=top>
-
       <div id="BGF.MB.Output" style="display:none;width:100%;height:80vh;">BGF.MB.Output</div>
+
       <table style="background:silver;" width=100% cellspacing=1 cellpadding=4>
 +
        <tr style="background:#E0E0E0;" valign=top>
 +
          <td style="padding:2px 6px 1px 6px"><b>Output</b></td>
 +
        </tr>
 +
        <tr style="background:#F8F8F8;" valign=top>
 +
          <td>
 +
            <div id="BGF.MB.Output" style="display:none;width:100%;height:80vh;"></div>
 +
          </td>
 +
        </tr>
 +
      </table>
     </td>
     </td>
   </tr>
   </tr>
Zeile 352: Zeile 361:
   switch (sElementID) {
   switch (sElementID) {
     case 'BGF.MB.TestMBTypes':
     case 'BGF.MB.TestMBTypes':
-
       var TestNum = new BGF_Number('TestNum',BGF_Number.Unit_MM,1234.0);
+
       ExecText('Create type BGF_Number',
 +
              'var TestNum = new BGF_Number('TestNum',BGF_Number.Unit_MM,1234.0);');
       break;
       break;
   }
   }
 +
}
 +
 +
functon ExecTest(sTitle,sCode)
 +
{
 +
  eOut = document.getElementById(BGF.MB.Output);
 +
  sOut = eOut.innerHTML;
 +
  sOut += 'Test: <b>'+sTitle+'</s><br>';
 +
  sOut += eval(sCode);
 +
  eOut.innerHTML = sOut;
}
}

Version vom 06:20, 28. Jun. 2024

Tests
MB-Types
  
Test 2
Output