|
|
|
@ -206,7 +206,7 @@ class Challengesjupyter extends Component {
|
|
|
|
|
// // _iframe.style.display= "none"; //修改样式
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const is_teacher = this.props&&this.props.current_user&&this.props.current_user.is_teacher?this.props.current_user.is_teacher:false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -257,16 +257,22 @@ class Challengesjupyter extends Component {
|
|
|
|
|
this.state.jupyter_url === null || this.state.jupyter_url === undefined ?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<div className="sortinxdirection mt60">
|
|
|
|
|
<div className="renwuxiangssi sortinxdirection">
|
|
|
|
|
<div><p className="renwuxiangqdiv">任务详情</p></div>
|
|
|
|
|
<div><p className="renwuxiangqdivtest ml24">(请将实训题目写在下方)</p></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="renwuxiangssit xaxisreverseorder">
|
|
|
|
|
<div className="challenbaocun" onClick={() => this.modifyjupyter(this.state)}><p
|
|
|
|
|
className="challenbaocuntest">应用到实训</p></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
(
|
|
|
|
|
is_teacher===true?
|
|
|
|
|
<div className="sortinxdirection mt60">
|
|
|
|
|
<div className="renwuxiangssi sortinxdirection">
|
|
|
|
|
<div><p className="renwuxiangqdiv">任务详情</p></div>
|
|
|
|
|
<div><p className="renwuxiangqdivtest ml24">(请将实训题目写在下方)</p></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="renwuxiangssit xaxisreverseorder">
|
|
|
|
|
<div className="challenbaocun" onClick={() => this.modifyjupyter(this.state)}><p
|
|
|
|
|
className="challenbaocuntest">应用到实训</p></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
:
|
|
|
|
|
""
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
@ -290,21 +296,25 @@ class Challengesjupyter extends Component {
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<div className="mt35">
|
|
|
|
|
{/*https://48888.jupyter.educoder.net/tree?*/}
|
|
|
|
|
|
|
|
|
|
<div className="pb47">
|
|
|
|
|
{
|
|
|
|
|
this.state.jupyter_url===null || this.state.jupyter_url===undefined?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<iframe src={this.state.jupyter_url}
|
|
|
|
|
sandbox="allow-same-origin allow-scripts allow-top-navigation " scrolling="no" id="frame"
|
|
|
|
|
name="framename" width="100%" height="700" frameBorder="0"
|
|
|
|
|
></iframe>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{
|
|
|
|
|
is_teacher===true?
|
|
|
|
|
<div className="mt35">
|
|
|
|
|
{/*https://48888.jupyter.educoder.net/tree?*/}
|
|
|
|
|
|
|
|
|
|
<div className="pb47">
|
|
|
|
|
{
|
|
|
|
|
this.state.jupyter_url===null || this.state.jupyter_url===undefined?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<iframe src={this.state.jupyter_url}
|
|
|
|
|
sandbox="allow-same-origin allow-scripts allow-top-navigation " scrolling="no" id="frame"
|
|
|
|
|
name="framename" width="100%" height="700" frameBorder="0"
|
|
|
|
|
></iframe>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|