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