diff --git a/lib/Viewer.js b/lib/Viewer.js index 4ad8e1d5..ffe26b67 100644 --- a/lib/Viewer.js +++ b/lib/Viewer.js @@ -483,7 +483,7 @@ var PoweredBy = require('./util/PoweredByUtil'), * @param {Element} container */ function addProjectLogo(container) { - var logoData = PoweredBy.BPMNIO_LOGO; + var img = PoweredBy.BPMNIO_IMG; var linkMarkup = '' + - '' + + img + ''; var linkElement = domify(linkMarkup); diff --git a/lib/util/PoweredByUtil.js b/lib/util/PoweredByUtil.js index 4dce5389..e443889f 100644 --- a/lib/util/PoweredByUtil.js +++ b/lib/util/PoweredByUtil.js @@ -10,13 +10,13 @@ var domify = require('min-dom/lib/domify'); var domDelegate = require('min-dom/lib/delegate'); -/* jshint -W101 */ -// inlined ../resources/bpmnjs.png -var logoData = module.exports.BPMNIO_LOGO = 'iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADBQTFRFiMte9PrwldFwfcZPqtqN0+zEyOe1XLgjvuKncsJAZ70y6fXh3vDT////UrQV////G2zN+AAAABB0Uk5T////////////////////AOAjXRkAAAHDSURBVHjavJZJkoUgDEBJmAX8979tM8u3E6x20VlYJfFFMoL4vBDxATxZcakIOJTWSmxvKWVIkJ8jHvlRv1F2LFrVISCZI+tCtQx+XfewgVTfyY3plPiQEAzI3zWy+kR6NBhFBYeBuscJLOUuA2WVLpCjVIaFzrNQZArxAZKUQm6gsj37L9Cb7dnIBUKxENaaMJQqMpDXvSL+ktxdGRm2IsKgJGGPg7atwUG5CcFUEuSv+CwQqizTrvDTNXdMU2bMiDWZd8d7QIySWVRsb2vBBioxOFt4OinPBapL+neAb5KL5IJ8szOza2/DYoipUCx+CjO0Bpsv0V6mktNZ+k8rlABlWG0FrOpKYVo8DT3dBeLEjUBAj7moDogVii7nSS9QzZnFcOVBp1g2PyBQ3Vr5aIapN91VJy33HTJLC1iX2FY6F8gRdaAeIEfVONgtFCzZTmoLEdOjBDfsIOA6128gw3eu1shAajdZNAORxuQDJN5A5PbEG6gNIu24QJD5iNyRMZIr6bsHbCtCU/OaOaSvgkUyDMdDa1BXGf5HJ1To+/Ym6mCKT02Y+/Sa126ZKyd3jxhzpc1r8zVL6YM1Qy/kR4ABAFJ6iQUnivhAAAAAAElFTkSuQmCC'; +// inlined ../../resources/logo.svg +var BPMNIO_LOGO_SVG = ''; -/* jshint +W101 */ +var BPMNIO_LOGO_URL = 'data:image/svg+xml;utf8,' + encodeURIComponent(BPMNIO_LOGO_SVG); +var BPMNIO_IMG = ''; function css(attrs) { return attrs.join(';'); @@ -57,7 +57,7 @@ var LIGHTBOX_MARKUP = '
' + '
' + '' + - '' + + BPMNIO_IMG + '' + 'Web-based tooling for BPMN, DMN and CMMN diagrams ' + 'powered by bpmn.io.' + @@ -80,4 +80,6 @@ function open() { document.body.appendChild(lightbox); } -module.exports.open = open; \ No newline at end of file +module.exports.open = open; + +module.exports.BPMNIO_IMG = BPMNIO_IMG; \ No newline at end of file diff --git a/resources/bpmnjs.png b/resources/bpmnjs.png deleted file mode 100644 index 2bc56c71..00000000 Binary files a/resources/bpmnjs.png and /dev/null differ diff --git a/resources/logo.svg b/resources/logo.svg new file mode 100644 index 00000000..47f2492d --- /dev/null +++ b/resources/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file