Skip to content

Commit

Permalink
Image directory as a constant, adding myself to LICENSE file
Browse files Browse the repository at this point in the history
  • Loading branch information
saebekassebil committed Dec 22, 2011
1 parent 12e2dcd commit 33e8d98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
Yury Delendik
Kalervo Kujala
Adil Allawi <@ironymark>
Jakob Miland <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
4 changes: 2 additions & 2 deletions web/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var kCssUnits = 96.0 / 72.0;
var kScrollbarPadding = 40;
var kMinScale = 0.25;
var kMaxScale = 4.0;

var kImageDirectory = './images/';

var Cache = function cacheCache(size) {
var data = [];
Expand Down Expand Up @@ -480,7 +480,7 @@ var PageView = function pageView(container, content, id, pageWidth, pageHeight,
container.className = 'annotComment';

var image = createElementWithStyle('img', item);
image.src = './images/' + type.toLowerCase() + '.svg';
image.src = kImageDirectory + type.toLowerCase() + '.svg';
var content = document.createElement('div');
content.setAttribute('hidden', true);
var title = document.createElement('h1');
Expand Down

0 comments on commit 33e8d98

Please sign in to comment.