diff --git a/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js b/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js index 7c658b930..ea241b479 100644 --- a/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js +++ b/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js @@ -86,10 +86,6 @@ class Challengesjupyter extends Component { booljupyterurls:true, }) }); - - - - } updatamakedowns = () => { @@ -125,56 +121,17 @@ class Challengesjupyter extends Component { } - // 关卡的上移下移操作 - operations = (sumid, type) => { - } - delOperations = (sumid) => { - } - clonedelOperationss = () => { - } - delOperationss = () => { - } - startgameid=(id)=>{ - } - - hidestartshixunsreplace=(url)=>{ - - - } - - //编辑实训题目选择题 - EditTraining=(type, ids, path)=>{ - - } - - //开始实战按钮 - startshixunCombat = (type, ids, id) => { - - - - - } - hidestartshixunCombattype=()=>{ - - } - - hideAccountProfile=()=>{ - - }; - modifyjupyter=()=>{ - // //console.log("propsysl"); - // //console.log(propsysl); let id=this.props.match.params.shixunId; var jupyter_port=""; try{ @@ -197,40 +154,10 @@ class Challengesjupyter extends Component { }) } - sendToken=()=>{ - // //console.log("sendToken"); - // const iframe = document.getElementById('iframe'); - // //console.log("modifyjupyter"); - // const frameWindow = iframe.contentWindow; - // //console.log("frameWindow"); - // //console.log(frameWindow); - } render() { let{ChallengesDataList,booljupyterurls}=this.state; let id = this.props.match.params.shixunId; -// var deptObjs=document.getElementById("IFRAMEID").contentWindow.document.getElementById("TAGID"); -// //判断此元素是否存在 -// if(deptObjs!=null){ -// //设置该元素的样式或其他属性 -// deptObjs.setAttribute('style',' height: 20px !important;'); //!important用来提升指定样式条目的应用优先权 -// } -// var submitObj = document.getElementById('submit'); -// if(submitObj){ -// submitObj.style.color = 'green'; -// } -// const dom = document.getElementById('shutdown'); -// ReactDOM.unmountComponentAtNode(dom) -// // window.$('#picture_display').hide(); -// window.$('.data-tip-right').hide() -// window.onload=()=>{ -// debugger -// var _iframe = document.getElementById('header'); -// //console.log(_iframe); -// // .contentWindow.document.getElementById('shutdown_widget') //get iframe下的id -// // _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;