HTML and CSS Reference
In-Depth Information
Figure 5-3.
Adding the Index view
4.
Replace the default implementation of the
Index.cshtml
view using the code
shown in Listing 5-1. This will create a simple form with a text area for displaying
messages and three buttons for communicating with the worker.
Listing 5-1.
The Index view implementation
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Chapter
5
- Web Workers</title>
<link rel="stylesheet" type="text/css" href="Content/Sample.css" />
<script src="Scripts/controlWorker.js"></script>