remove local jquery file and update to latest npm version

This commit is contained in:
JFH
2021-05-23 16:46:01 +02:00
parent 26fc8eeb49
commit 812bc2371c
12 changed files with 28 additions and 30 deletions

View File

@@ -1,5 +1,4 @@
/* globals jQuery */
const $ = jQuery;
/* globals $ */
const atags = document.querySelectorAll('a');
Array.prototype.forEach.call(atags, function (aEle) {
aEle.addEventListener('click', function (event) {

View File

@@ -4,9 +4,15 @@ For default config and extensions (and available options) available to
`setConfig()`, see the file `docs/tutorials/ConfigOptions.md`
*/
import './jquery.min.js';
import jQuery from 'jquery/dist/jquery.slim.js';
import jQueryPluginSVG from '../svgcanvas/jQuery.attr.js'; // Needed for SVG attribute
import './components/index.js';
import './dialogs/index.js';
import Editor from './Editor.js';
// Global Constant
window.$ = jQueryPluginSVG(jQuery);
const svgEditor = new Editor();
svgEditor.init();

File diff suppressed because one or more lines are too long