Han division square Educational Management System automatically evaluating teaching

Himself changed a script, you can achieve the same course there is the case of two teachers need analysis and comment.

Usage: to enter the first door Pingke interface, F12 to call the console, this paste the following code under Console js, to run the transport

            var iframe = window.top.document.getElementById('iframeautoheight');
            var ifdocument = iframe.contentWindow.document; 
            var subLength = ifdocument.getElementById("pjkc").length - 1;
            ifdocument.getElementById("TextBox1").value = - 1; 
            
            function execution(){
            var iframe = window.top.document.getElementById('iframeautoheight');
            var ifdocument = iframe.contentWindow.document; 
            var reg = /^DataGrid1__ctl\d+_JS1$/;   
            var reg2 = /^DataGrid1__ctl\d+_JS2$/;   
            var selections = ifdocument.getElementsByTagName("select");
            for(var i = 0 ; i< selections.length; i++){
                if(reg.test(selections[i].getAttribute("id"))){
                    selections[i].value = "5(优秀)";
                }
                if(reg2.test(selections[i].getAttribute("id"))){
                    selections[i].value = "5(优秀)";
                }
             }
            ifdocument.getElementById("Button1").click();
        }
            
            execution();
            iframe.onload = function(){
                if(subLength -- > 0){
                    execution();
                }
                
            }

script

Guess you like

Origin www.cnblogs.com/senup/p/12089180.html