فهرست منبع

all use remote 0.3

Michelle Bu 11 سال پیش
والد
کامیت
e64bde1dce
3فایلهای تغییر یافته به همراه4 افزوده شده و 15 حذف شده
  1. 1 1
      examples/chat.html
  2. 1 11
      examples/helloworld.html
  3. 2 3
      examples/videochat/index.html

+ 1 - 1
examples/chat.html

@@ -8,7 +8,7 @@
 <link href="fancy.css" rel="stylesheet" type="text/css">
 
 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script> 
-<script type="text/javascript" src="../dist/peer.js"></script>
+<script type="text/javascript" src="http://cdn.peerjs.com/0.3/peer.min.js"></script>
 <script>
 // Connect to PeerJS, have server assign an ID instead of providing one
 // Showing off some of the configs available with PeerJS :).

+ 1 - 11
examples/helloworld.html

@@ -5,18 +5,8 @@
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
 <meta http-equiv="Content-Language" content="en-us"> 
 
-<script>
-  // Just for demo.
-  /*console._log = console.log;
-  console.error = console.log = function() {
-    var copy = Array.prototype.slice.call(arguments).join(' ');
-    $('.log').append(copy + '<br>');
-    console._log(copy);
-  };*/
-</script>
-
 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> 
-<script type="text/javascript" src="../dist/peer.js"></script>
+<script type="text/javascript" src="http://cdn.peerjs.com/0.3/peer.min.js"></script>
 <script>
   // This is a very simple code example. See chat.html for a more involved
   // example.

+ 2 - 3
examples/videochat/index.html

@@ -3,8 +3,7 @@
   <title>PeerJS - Video chat example</title>
   <link rel="stylesheet" href="style.css">
   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
-
-  <script src="../../dist/peer.js"></script>
+  <script type="text/javascript" src="http://cdn.peerjs.com/0.3/peer.min.js"></script>
   <script>
 
     // Compatibility shim
@@ -137,4 +136,4 @@
 
 
 </body>
-</html>
+</html>