Image directory as a constant, adding myself to LICENSE file
This commit is contained in:
parent
12e2dcd775
commit
33e8d988c4
1
LICENSE
1
LICENSE
@ -9,6 +9,7 @@
|
|||||||
Yury Delendik
|
Yury Delendik
|
||||||
Kalervo Kujala
|
Kalervo Kujala
|
||||||
Adil Allawi <@ironymark>
|
Adil Allawi <@ironymark>
|
||||||
|
Jakob Miland <saebekassebil@gmail.com>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a
|
Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
copy of this software and associated documentation files (the "Software"),
|
copy of this software and associated documentation files (the "Software"),
|
||||||
|
@ -11,7 +11,7 @@ var kCssUnits = 96.0 / 72.0;
|
|||||||
var kScrollbarPadding = 40;
|
var kScrollbarPadding = 40;
|
||||||
var kMinScale = 0.25;
|
var kMinScale = 0.25;
|
||||||
var kMaxScale = 4.0;
|
var kMaxScale = 4.0;
|
||||||
|
var kImageDirectory = './images/';
|
||||||
|
|
||||||
var Cache = function cacheCache(size) {
|
var Cache = function cacheCache(size) {
|
||||||
var data = [];
|
var data = [];
|
||||||
@ -480,7 +480,7 @@ var PageView = function pageView(container, content, id, pageWidth, pageHeight,
|
|||||||
container.className = 'annotComment';
|
container.className = 'annotComment';
|
||||||
|
|
||||||
var image = createElementWithStyle('img', item);
|
var image = createElementWithStyle('img', item);
|
||||||
image.src = './images/' + type.toLowerCase() + '.svg';
|
image.src = kImageDirectory + type.toLowerCase() + '.svg';
|
||||||
var content = document.createElement('div');
|
var content = document.createElement('div');
|
||||||
content.setAttribute('hidden', true);
|
content.setAttribute('hidden', true);
|
||||||
var title = document.createElement('h1');
|
var title = document.createElement('h1');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user