404 - Extending ClassFree Single
by steen_hansen
HTML
<!DOCTYPE html><meta charset="utf-8" />
<title>404 Extending ClassFree Single</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>
<br>
</div>
<div id="the-explanation" style="width:40%">
<div class='an-explantion'>404 - Extending ClassFree Single</div>
<div id='explanation-text'>
<br>
By moving all checking functions to an external file, it is possible to stop the
loading and execution of TypeCzech code by commenting out loading of the scripts.
Note that this moves the function signatures and checking code away from the
actual functions to be tested.
<pre>
<script s r c = "../../TypeCzech.js">
<script s r c = "./404-classfree-external-checks.js">
</pre>
Thus being left with one instruction that loads and executes the checks when
TypeCzech has been imported.
<pre>
if (typeof check_linkUp_first_last_full === 'function') {
check_linkUp_first_last_full()
}
</pre>
</div>
<div id="console-log" >
<div class='a-title'>Console Output</div>
<div id='log-text'></div>
<br>
<!-- ---------------TYPE 3--------------------------- -->
<script src="https://cdn.jsdelivr.net/gh/steenhansen/type-czech@latest/web-resources/consolelog.js"></script>
<script src="https://cdn.jsdelivr.net/gh/steenhansen/type-czech@latest/web-resources/TypeCzech.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/steenhansen/type-czech@latest/examples-web/404-Extending-ClassFree-Single/404-classfree-external-checks.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/steenhansen/type-czech@latest/web-resources/type-czech.css">
<!-- ----------------TYPE 3-------------------------- -->
<div id='js-fiddles'>
<a title="Example-Contents"...