# Conflicts:
#	public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
dev_forum
杨树明 5 years ago
parent a19fec40e1
commit 991d7fc06f

@ -148,14 +148,18 @@
<!-- 在tpi js里加载这3个脚本 --> <!-- 在tpi js里加载这3个脚本 -->
<script> <script>
(function() { // Scoping function to avoid globals (function() { // Scoping function to avoid globals
var _url_origins='';
if(window.location.port === "3007"){
_url_origins="https://newweb.educoder.net";
}
var href = location.href; var href = location.href;
if (href.indexOf('/tasks/') != -1) { if (href.indexOf('/tasks/') != -1) {
document.write('<script type="text/javascript" src="http://47.96.87.25:48080/assets/kindeditor/kindeditor.js"><\/script>'); document.write('<script type="text/javascript" src=_url_origins+"/assets/kindeditor/kindeditor.js"><\/script>');
// build.js中会将这个url附加一个前缀 react/build // build.js中会将这个url附加一个前缀 react/build
document.write('<script type="text/javascript" src="/js/create_kindeditor.js"><\/script>'); document.write('<script type="text/javascript" src="/js/create_kindeditor.js"><\/script>');
document.write('<script type="text/javascript" src="http://47.96.87.25:48080/javascripts/educoder/edu_application.js"><\/script>'); document.write('<script type="text/javascript" src=_url_origins+"/javascripts/educoder/edu_application.js"><\/script>');
} else if (href.indexOf('/paths/') != -1) { } else if (href.indexOf('/paths/') != -1) {
document.write('<script type="text/javascript" src="http://47.96.87.25:48080/javascripts/educoder/edu_application.js"><\/script>'); document.write('<script type="text/javascript" src=_url_origins+"/javascripts/educoder/edu_application.js"><\/script>');
} }
})(); })();

Loading…
Cancel
Save