Browse Source

Add missing license headers.

us-8-thumbtack
Jan Koppe 2 years ago
parent
commit
8ca9e10307
Signed by: j GPG Key ID: BE935B0735A2129B
6 changed files with 41 additions and 27 deletions
  1. 6
      classes/event/course_module_instance_list_viewed.php
  2. 6
      classes/event/course_module_viewed.php
  3. 8
      constants.php
  4. 6
      db/install.php
  5. 34
      shared/index.js
  6. 8
      shared/statistic.js

6
classes/event/course_module_instance_list_viewed.php

@ -13,7 +13,11 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* @package mod_pdfannotator
* @copyright 2018 RWTH Aachen, Rabea de Groot and Anna Heynkes(see README.md)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace mod_pdfannotator\event;
defined('MOODLE_INTERNAL') || die();

6
classes/event/course_module_viewed.php

@ -13,7 +13,11 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* @package mod_pdfannotator
* @copyright 2018 RWTH Aachen, Rabea de Groot and Anna Heynkes(see README.md)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace mod_pdfannotator\event;
defined('MOODLE_INTERNAL') || die();

8
constants.php

@ -14,10 +14,10 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
/**
* @package mod_pdfannotator
* @copyright 2018 CiL RWTH Aachen (see README.md)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();

6
db/install.php

@ -14,6 +14,12 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* @package mod_pdfannotator
* @copyright 2018 RWTH Aachen, Rabea de Groot and Anna Heynkes(see README.md)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
/**
* Function initialises the pdfannotator_annotationtypes table with its 6 standard records.
*

34
shared/index.js

@ -1,20 +1,3 @@
/**
* Function removes the spacing between tab navigation and document tool bar
*
* @param {type} Y
* @return {undefined}
*/
function adjustPdfannotatorNavbar(Y) {
let navbar = document.getElementsByClassName('nav');
for (let i = 0; i < navbar.length; i++) {
(function(innerI) {
tab = navbar[innerI];
tab.classList.add('pdfannotatornavbar');
})(i);
}
}
//The MIT License (MIT)
//
//Copyright (c) 2016 Instructure, Inc. (https://github.com/instructure/pdf-annotate.js/blob/master/docs/index.js, 1.3.2018)
@ -38,6 +21,23 @@ function adjustPdfannotatorNavbar(Y) {
//OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
//SOFTWARE.
//
/**
* Function removes the spacing between tab navigation and document tool bar
*
* @param {type} Y
* @return {undefined}
*/
function adjustPdfannotatorNavbar(Y) {
let navbar = document.getElementsByClassName('nav');
for (let i = 0; i < navbar.length; i++) {
(function(innerI) {
tab = navbar[innerI];
tab.classList.add('pdfannotatornavbar');
})(i);
}
}
//R: The first parameter has to be Y, because it is a default YUI-object, because moodle gives this object first.
function startIndex(Y,_cm,_documentObject,_userid,_isadmin, _toolbarSettings, _page = 1,_annoid = null,_commid = null,_capabilities ){ // 3. parameter war mal _fileid

8
shared/statistic.js

@ -1,7 +1,7 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
/*
* @package mod_pdfannotator
* @copyright 2018 RWTH Aachen, Rabea de Groot and Anna Heynkes (see README.md)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
//R: The first parameter has to be Y, because it is a default YUI-object (demanded by moodle)

Loading…
Cancel
Save