Parcourir la source

Move embedded script to standalone JS file.

Frederic G. MARAND il y a 9 ans
Parent
commit
29c263ad13
2 fichiers modifiés avec 2 ajouts et 7 suppressions
  1. 0 5
      public/index.html
  2. 2 2
      public/index.js

+ 0 - 5
public/index.html

@@ -2,11 +2,6 @@
 	<head>
     <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>
 
 	<body>

+ 2 - 2
public/index.js

@@ -1,3 +1,3 @@
-function alertMe() {
-  alert('hello');
+function sayGoodbye() {
+  $('#title').html('Goodbye');
 }