203 - Closure Modules Production

by steen_hansen

HTML

<!DOCTYPE html><meta charset="utf-8" />
<title>203 Closure Modules Production</title>



  
<div id='js-div' style="width:60%; " class='code-scroll'>
  <a href='https://github.com/steenhansen/type-czech'  target="_blank" class='git-hub'>GitHub Package</a>
  <div id='js-code'>the javascript</div>
</div>


<div id="the-explanation" style="width:40%" >
  <div class='an-explantion'>203 - Closure Modules Production</div>
  <div id='explanation-text'>



   
    <br>
    TypeCzech's general example of an author where:
    <ul>
      <li><b>First</b> controls an author's first name</li>
      <li><b>Last</b> handles an author's first and last name</li>
      <li><b>Full</b> deals with an author's salutation, first, and last name</li>    
      <li>Safely removable supporting TypeCzech test code begins with /**/</li>    
    </ul>
    Closures are used for inheritance:
    <ul>
          <li>When TypeCzech is turned off no JavaScript code is imported</li>
          <li>With TypeCzech turned on, the supporting test code is imported:
            <ul> 
              <li class='floating_li'>TypeCzech.js</li> 
              <li class='floating_li'>TypeCzech_First.js</li> 
              <li class='floating_li'>TypeCzech_Last</li>
              <li class='floating_li'>TypeCzech_Full.js</li>
              <br>  <br><br>
          </ul>
          </li>
          <li>Production closure declarations <b>must</b> interleave with TypeCzech calls
            to have the PRE and POST checking functions be correctly linked before use </li>
    </ul>


  </div>


  <div id="console-log"  >
    <div class='a-title'>Console Output</div>
    <div id='log-text'></div>
    <br>
  </div>

  <br><br>













<!--            -----------------TYPE 2-------------------------       -->
<script src="https://cdn.jsdelivr.net/gh/steenhansen/type-czech@latest/web-resources/consolelog.js"></script>
<link rel="stylesheet"...