Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 21 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
||
| 1 | <?php |
| 2 | /* |
| 3 | * This program is free software; you can redistribute it and/or |
| 4 | * modify it under the terms of the GNU General Public License |
| 5 | * as published by the Free Software Foundation; under version 2 |
| 6 | * of the License (non-upgradable). |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program; if not, write to the Free Software |
| 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 16 | * |
| 17 | * Copyright (c) 2013 (original work) Open Assessment Technologies SA (under the project TAO-PRODUCT); |
| 18 | * |
| 19 | */ |
| 20 | ?> |
| 21 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 22 | <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"> |
| 23 | <head> |
| 24 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 25 | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| 26 | <title><?=get_data('title')?></title> |
| 27 | <style> |
| 28 | body { |
| 29 | margin:0; |
| 30 | height: auto !important; |
| 31 | min-height: 100% !important; |
| 32 | } |
| 33 | </style> |
| 34 | <script id="initQtiRunner" type="text/javascript"> |
| 35 | (function(){ |
| 36 | window.tao = window.tao || {}; |
| 37 | window.tao.qtiRunnerContext = { |
| 38 | itemData : <?=json_encode(get_data('itemData'))?>, |
| 39 | variableElements : <?=json_encode(get_data('contentVariableElements'))?>, |
| 40 | userVars : <?=json_encode(get_data('js_variables'))?>, |
| 41 | customScripts : <?=json_encode(get_data('javascripts'))?>, |
| 42 | userScripts : <?=json_encode(get_data('user_scripts'))?> |
| 43 | }; |
| 44 | }()); |
| 45 | </script> |
| 46 | |
| 47 | <?php if (tao_helpers_Mode::is('production')) :?> |
| 48 | <script type="text/javascript" src="<?=get_data('tao_lib_path')?>loader/vendor.min.js" ></script> |
| 49 | <script id="amd-loader" type="text/javascript" src="<?=get_data('taoQtiItem_lib_path')?>loader/qtiLoader.min.js" data-controller="taoQtiItem/runtime/qtiLoader" data-config="<?=get_data('client_config_url')?>"></script> |
| 50 | <?php else :?> |
| 51 | <script id="amd-loader" type="text/javascript" src="<?=get_data('tao_lib_path')?>lib/require.js" data-main="<?=get_data('tao_lib_path')?>loader/bootstrap" data-controller="taoQtiItem/runtime/qtiLoader" data-config="<?=get_data('client_config_url')?>"></script> |
| 52 | <?php endif;?> |
| 53 | |
| 54 | </head> |
| 55 | <body class="tao-item-scope"> |
| 56 | <div id="qti_item"></div> |
| 57 | </body> |
| 58 | </html> |