⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 javascript.php

📁 很棒的在线教学系统
💻 PHP
字号:
<?php  /// $Id $       /// Load IMS required Javascript libraries, adding them       /// before the standard one ($standard_javascript)    if (!defined('MOODLE_INTERNAL')) {        die('Direct access to this script is forbidden.');    ///  It must be included from a Moodle page    }/// We use this globals to be able to generate the proper JavaScripts    global $jsarg, $standard_javascript;/// Let's know if we are using a customcorners theme. It implies new calculations/// within the resizeiframe function.    if (!empty($THEME->customcorners)) {        $customcorners = 'true';    } else {        $customcorners = 'false';    }/// Load IMS needed JavaScript/// The dummy LMS API hack to stop some SCORM packages giving errors.    echo "<script type=\"text/javascript\" src=\"$CFG->wwwroot/mod/resource/type/ims/dummyapi.js\"></script>\n";/// The resize iframe script    echo "    <script type=\"text/javascript\" src=\"$CFG->wwwroot/mod/resource/type/ims/resize.js\"></script>\n";    echo "    <script type=\"text/javascript\">        window.onresize = function() {            resizeiframe($jsarg, $customcorners);        };        window.name='ims-cp-page';        // Set Interval until ims-containerdiv and (ims-contentframe or ims-contentframe-no-nav) is available        function waiting() {            var cd   = document.getElementById('ims-containerdiv');            var cf   = document.getElementById('ims-contentframe');            var cfnv = document.getElementById('ims-contentframe-no-nav');            if (cd && (cf || cfnv)) {                resizeiframe($jsarg, $customcorners);                clearInterval(ourInterval);                return true;            }            return false;        }        var ourInterval = setInterval('waiting()', 100);    </script>\n";/// Load standard JavaScript    include("$standard_javascript");?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -