|
@@ -1,11 +1,16 @@
|
|
<html>
|
|
<html>
|
|
<head>
|
|
<head>
|
|
- <script type="application/ecmascript" src="/lib/jquery-2.2.1.js"></script>
|
|
|
|
- <script type="application/ecmascript" src="/index.js"></script>
|
|
|
|
|
|
+ <script type="text/ecmascript" src="/lib/jquery-2.2.1.js"></script>
|
|
|
|
+ <script type="text/ecmascript" src="/index.js"></script>
|
|
|
|
+ <script type="text/ecmascript">
|
|
|
|
+ function sayGoodbye() {
|
|
|
|
+ $('#title').html('Goodbye');
|
|
|
|
+ }
|
|
|
|
+ </script>
|
|
</head>
|
|
</head>
|
|
|
|
|
|
<body>
|
|
<body>
|
|
- <h1 id="title" onclick="$('#title').html('Goodbye')">
|
|
|
|
|
|
+ <h1 id="title" onclick="sayGoodbye();">
|
|
Hello</h1>
|
|
Hello</h1>
|
|
</body>
|
|
</body>
|
|
</html>
|
|
</html>
|