From 33e8d988c46bd9419f5a67b1ad8422802e7c5444 Mon Sep 17 00:00:00 2001 From: Saebekassebil Date: Thu, 22 Dec 2011 14:44:08 +0100 Subject: [PATCH] Image directory as a constant, adding myself to LICENSE file --- LICENSE | 1 + web/viewer.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/LICENSE b/LICENSE index f8a848205..db52dec8e 100644 --- a/LICENSE +++ b/LICENSE @@ -9,6 +9,7 @@ Yury Delendik Kalervo Kujala Adil Allawi <@ironymark> + Jakob Miland Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/web/viewer.js b/web/viewer.js index 1c8f6c03d..e2ffcef29 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -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 = []; @@ -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');