Commit 39b93af66d8c6b19fab1bd0430e8aba5f485448c
1 parent
594a06f0
debug host
Showing
2 changed files
with
2 additions
and
2 deletions
src/live/js/student.js
| 1 | $(function() { | 1 | $(function() { |
| 2 | var teacherId = document.getElementById('teacher'); | 2 | var teacherId = document.getElementById('teacher'); |
| 3 | var studentId = document.getElementById('student'); | 3 | var studentId = document.getElementById('student'); |
| 4 | - var socket = io('http://live-api.com:5000'); | 4 | + var socket = io('http://live-api:5000'); |
| 5 | 5 | ||
| 6 | var teacher = CodeMirror.fromTextArea(teacherId, { | 6 | var teacher = CodeMirror.fromTextArea(teacherId, { |
| 7 | value: '输入HTML代码', | 7 | value: '输入HTML代码', |
src/live/js/teacher.js
| 1 | $(function(){ | 1 | $(function(){ |
| 2 | var teacherId = document.getElementById('teacher'); | 2 | var teacherId = document.getElementById('teacher'); |
| 3 | - var socket = io('http://live-api.com:5000'); | 3 | + var socket = io('http://live-api:5000'); |
| 4 | 4 | ||
| 5 | // 初始化codemirror页面 | 5 | // 初始化codemirror页面 |
| 6 | var teacher = CodeMirror.fromTextArea(teacherId, { | 6 | var teacher = CodeMirror.fromTextArea(teacherId, { |