Skip to content
Snippets Groups Projects
Unverified Commit 7cc04376 authored by Friederike Schwager's avatar Friederike Schwager Committed by Tim Schroeder
Browse files

replace CDN links with local libraries

parent 3445c946
No related branches found
No related tags found
No related merge requests found
Source diff could not be displayed: it is too large. Options to address this: view the blob.
This diff is collapsed.
......@@ -42,7 +42,7 @@ function adjustPdfannotatorNavbar(Y) {
function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSettings, _page = 1,_annoid = null,_commid = null){ // 3. parameter war mal _fileid
 
// Require amd modules.
require(['jquery','core/templates','core/notification'], function($,templates,notification) {
require(['jquery','core/templates','core/notification','mod_pdfannotator/jspdf'], function($,templates,notification,jsPDF) {
var currentAnnotations = [];
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
......
......@@ -7,7 +7,7 @@
// R: The first parameter has to be Y, because it is a default YUI-object (demanded by moodle).
function setCharts(Y, names, otherquestions, myquestions, otheranswers, myanswers) {
require(['core/chartjs'], function (Chart) {
// On small screens set width depending on number of annotators. Otherwise the diagram is very small.
let width = Math.max(names.length * 25, 300);
width = names.length * 40;
......@@ -84,6 +84,7 @@ function setCharts(Y, names, otherquestions, myquestions, otheranswers, myanswer
}
});
});
}
function calculateMax(otherquestions, myquestions, otheranswers, myanswers) {
......
<!--working:-->
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.4.1/html2canvas.js"></script>-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.4.1/jspdf.debug.js"></script>
<div id='pdfannotator_index' class='pdfannotator_index'>
......
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.bundle.min.js" charset="utf-8"></script>
<div class="pdfannotator-statistic">
<div class="row">
......
......@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'mod_pdfannotator'; // Full name of the plugin (used for diagnostics).
$plugin->version = 2019121000; // The current module version (Date: YYYYMMDDXX).
$plugin->version = 2020020300; // The current module version (Date: YYYYMMDDXX).
$plugin->release = 'PDF Annotator v1.3 release 2';
$plugin->requires = 2016112900; // Requires this Moodle version.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment