周口市继续教育平台

// 周口市继续教育平台 http://www.zkjxjy.com/
// 自动提交问题
// 用极速模式进入课程后,按F12,在控制台内执行以下代码
// 出现   播放检测中。。。。。 算正常(30秒后出现)
// 视频更换后要重来一次
function continueLearning() {
    console.log('播放检测中。。。。。');
    var exam = $('.m-exam-dialog');
    if (exam[0] != undefined) {
        console.log('出现题目。。。。');
        // 计算题目结果
        if ($('.d-qus-body', exam)[0].attributes['data-id'].nodeValue == 'topic') {
            var topic = $('.d-qus-body', exam)[0].innerText;
            // topic = topic.replace(/\s+/g, '');
            var value = topic.match(/\d/g);
            $.each(value, function(i, n) {
                value[i] = parseInt(n);
            })
            var operator = topic.match(/[\+\-x]/)[0];
            console.log(topic + " 取运算符:" + operator);
            var result = 0;
            switch (operator) {
                case '
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值