summaryrefslogtreecommitdiffstats
path: root/org
diff options
context:
space:
mode:
authorDavid A. Madore <david+git@madore.org>2014-01-08 15:37:11 +0100
committerDavid A. Madore <david+git@madore.org>2014-01-08 15:37:11 +0100
commit75d6af4be399579e709b49bb244f46651889ae4b (patch)
treebf061a811484084b99ad5a5f774c5599dd06812d /org
parent799e3332557bd773b021c599008dd1f63cd7d312 (diff)
downloaddamlengine-75d6af4be399579e709b49bb244f46651889ae4b.tar.gz
damlengine-75d6af4be399579e709b49bb244f46651889ae4b.tar.bz2
damlengine-75d6af4be399579e709b49bb244f46651889ae4b.zip
Use data: URLs for smileys rather than external files.
Diffstat (limited to 'org')
-rw-r--r--org/madore/damlengine/TodoSmileyElement.java3
-rw-r--r--org/madore/damlengine/images/smileys/arrow.pngbin0 -> 234 bytes
-rw-r--r--org/madore/damlengine/images/smileys/biggrin.pngbin0 -> 238 bytes
-rw-r--r--org/madore/damlengine/images/smileys/confused.pngbin0 -> 227 bytes
-rw-r--r--org/madore/damlengine/images/smileys/cool.pngbin0 -> 245 bytes
-rw-r--r--org/madore/damlengine/images/smileys/crazy.pngbin0 -> 250 bytes
-rw-r--r--org/madore/damlengine/images/smileys/cry.pngbin0 -> 236 bytes
-rw-r--r--org/madore/damlengine/images/smileys/eek.pngbin0 -> 238 bytes
-rw-r--r--org/madore/damlengine/images/smileys/evil.pngbin0 -> 262 bytes
-rw-r--r--org/madore/damlengine/images/smileys/exclaim.pngbin0 -> 292 bytes
-rw-r--r--org/madore/damlengine/images/smileys/frown.pngbin0 -> 228 bytes
-rw-r--r--org/madore/damlengine/images/smileys/idea.pngbin0 -> 242 bytes
-rw-r--r--org/madore/damlengine/images/smileys/lol.pngbin0 -> 243 bytes
-rw-r--r--org/madore/damlengine/images/smileys/mad.pngbin0 -> 240 bytes
-rw-r--r--org/madore/damlengine/images/smileys/mrgreen.pngbin0 -> 328 bytes
-rw-r--r--org/madore/damlengine/images/smileys/neutral.pngbin0 -> 227 bytes
-rw-r--r--org/madore/damlengine/images/smileys/question.pngbin0 -> 290 bytes
-rw-r--r--org/madore/damlengine/images/smileys/razz.pngbin0 -> 239 bytes
-rw-r--r--org/madore/damlengine/images/smileys/redface.pngbin0 -> 242 bytes
-rw-r--r--org/madore/damlengine/images/smileys/rolleyes.pngbin0 -> 246 bytes
-rw-r--r--org/madore/damlengine/images/smileys/sad.pngbin0 -> 228 bytes
-rw-r--r--org/madore/damlengine/images/smileys/smile.pngbin0 -> 239 bytes
-rw-r--r--org/madore/damlengine/images/smileys/surprised.pngbin0 -> 237 bytes
-rw-r--r--org/madore/damlengine/images/smileys/twisted.pngbin0 -> 267 bytes
-rw-r--r--org/madore/damlengine/images/smileys/wink.pngbin0 -> 232 bytes
25 files changed, 2 insertions, 1 deletions
diff --git a/org/madore/damlengine/TodoSmileyElement.java b/org/madore/damlengine/TodoSmileyElement.java
index 90f848a..72bb638 100644
--- a/org/madore/damlengine/TodoSmileyElement.java
+++ b/org/madore/damlengine/TodoSmileyElement.java
@@ -59,7 +59,8 @@ public final class TodoSmileyElement extends TodoDefaultElement {
String lang = LangHelper.getLangRec(node);
Element img = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "img");
img.setAttributeNS(null, "src",
- (ctx.gc.uriToTop==null?"":ctx.gc.uriToTop)+"images/smileys/"+t.emotion+".png");
+ "data:image/png;base64,"
+ + Base64.encode(DamlEngine.class.getResourceAsStream("images/smileys/"+t.emotion+".png")));
img.setAttributeNS(null, "class",
"smiley");
img.setAttributeNS(null, "alt", t.altText);
diff --git a/org/madore/damlengine/images/smileys/arrow.png b/org/madore/damlengine/images/smileys/arrow.png
new file mode 100644
index 0000000..e284b02
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/arrow.png
Binary files differ
diff --git a/org/madore/damlengine/images/smileys/biggrin.png b/org/madore/damlengine/images/smileys/biggrin.png
new file mode 100644
index 0000000..ed79d44
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/biggrin.png
Binary files differ
diff --git a/org/madore/damlengine/images/smileys/confused.png b/org/madore/damlengine/images/smileys/confused.png
new file mode 100644
index 0000000..6093fe8
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/confused.png
Binary files differ
diff --git a/org/madore/damlengine/images/smileys/cool.png b/org/madore/damlengine/images/smileys/cool.png
new file mode 100644
index 0000000..32053e4
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/cool.png
Binary files differ
diff --git a/org/madore/damlengine/images/smileys/crazy.png b/org/madore/damlengine/images/smileys/crazy.png
new file mode 100644
index 0000000..7c4d1be
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/crazy.png
Binary files differ
diff --git a/org/madore/damlengine/images/smileys/cry.png b/org/madore/damlengine/images/smileys/cry.png
new file mode 100644
index 0000000..4c6622d
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/cry.png
Binary files differ
diff --git a/org/madore/damlengine/images/smileys/eek.png b/org/madore/damlengine/images/smileys/eek.png
new file mode 100644
index 0000000..7a4bb22
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/eek.png
Binary files differ
diff --git a/org/madore/damlengine/images/smileys/evil.png b/org/madore/damlengine/images/smileys/evil.png
new file mode 100644
index 0000000..2a14bd4
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/evil.png
Binary files differ
diff --git a/org/madore/damlengine/images/smileys/exclaim.png b/org/madore/damlengine/images/smileys/exclaim.png
new file mode 100644
index 0000000..e471afd
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/exclaim.png
Binary files differ
diff --git a/org/madore/damlengine/images/smileys/frown.png b/org/madore/damlengine/images/smileys/frown.png
new file mode 100644
index 0000000..1ecb697
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/frown.png
Binary files differ
diff --git a/org/madore/damlengine/images/smileys/idea.png b/org/madore/damlengine/images/smileys/idea.png
new file mode 100644
index 0000000..7127458
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/idea.png
Binary files differ
diff --git a/org/madore/damlengine/images/smileys/lol.png b/org/madore/damlengine/images/smileys/lol.png
new file mode 100644
index 0000000..bad9681
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/lol.png
Binary files differ
diff --git a/org/madore/damlengine/images/smileys/mad.png b/org/madore/damlengine/images/smileys/mad.png
new file mode 100644
index 0000000..1229a44
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/mad.png
Binary files differ
diff --git a/org/madore/damlengine/images/smileys/mrgreen.png b/org/madore/damlengine/images/smileys/mrgreen.png
new file mode 100644
index 0000000..8c05def
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/mrgreen.png
Binary files differ
diff --git a/org/madore/damlengine/images/smileys/neutral.png b/org/madore/damlengine/images/smileys/neutral.png
new file mode 100644
index 0000000..4d2483e
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/neutral.png
Binary files differ
diff --git a/org/madore/damlengine/images/smileys/question.png b/org/madore/damlengine/images/smileys/question.png
new file mode 100644
index 0000000..af2585d
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/question.png
Binary files differ
diff --git a/org/madore/damlengine/images/smileys/razz.png b/org/madore/damlengine/images/smileys/razz.png
new file mode 100644
index 0000000..82127ee
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/razz.png
Binary files differ
diff --git a/org/madore/damlengine/images/smileys/redface.png b/org/madore/damlengine/images/smileys/redface.png
new file mode 100644
index 0000000..e4b38bd
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/redface.png
Binary files differ
diff --git a/org/madore/damlengine/images/smileys/rolleyes.png b/org/madore/damlengine/images/smileys/rolleyes.png
new file mode 100644
index 0000000..1314d02
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/rolleyes.png
Binary files differ
diff --git a/org/madore/damlengine/images/smileys/sad.png b/org/madore/damlengine/images/smileys/sad.png
new file mode 100644
index 0000000..1ecb697
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/sad.png
Binary files differ
diff --git a/org/madore/damlengine/images/smileys/smile.png b/org/madore/damlengine/images/smileys/smile.png
new file mode 100644
index 0000000..d09436b
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/smile.png
Binary files differ
diff --git a/org/madore/damlengine/images/smileys/surprised.png b/org/madore/damlengine/images/smileys/surprised.png
new file mode 100644
index 0000000..a43b8d6
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/surprised.png
Binary files differ
diff --git a/org/madore/damlengine/images/smileys/twisted.png b/org/madore/damlengine/images/smileys/twisted.png
new file mode 100644
index 0000000..5f6eed1
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/twisted.png
Binary files differ
diff --git a/org/madore/damlengine/images/smileys/wink.png b/org/madore/damlengine/images/smileys/wink.png
new file mode 100644
index 0000000..829a80c
--- /dev/null
+++ b/org/madore/damlengine/images/smileys/wink.png
Binary files differ