info343/labs/3/solutions.php

<script src="<?= $BASENAME ?>/lib/global/js/prettify/lang-js.js" type="text/javascript"></script>

<p>Below is one possible solution to this problem.</p>

<header>
   <h3>Exercise 2: Attach JavaScript to a Web Page</h3>
   <div class="workinglink"><a href="solution/pimpmytext.html">working example</a></div>
</header>
<pre class="prettyprint lang-html linenums"><?= escape(load("solution/pimpmytext.html")) ?></pre>
<pre class="prettyprint lang-js linenums"><?= escape(load("solution/pimpmytext.js")) ?></pre>