diff options
author | David A. Madore <david+git@madore.org> | 2014-01-08 15:37:11 +0100 |
---|---|---|
committer | David A. Madore <david+git@madore.org> | 2014-01-08 15:37:11 +0100 |
commit | 75d6af4be399579e709b49bb244f46651889ae4b (patch) | |
tree | bf061a811484084b99ad5a5f774c5599dd06812d /org/madore | |
parent | 799e3332557bd773b021c599008dd1f63cd7d312 (diff) | |
download | damlengine-75d6af4be399579e709b49bb244f46651889ae4b.tar.gz damlengine-75d6af4be399579e709b49bb244f46651889ae4b.tar.bz2 damlengine-75d6af4be399579e709b49bb244f46651889ae4b.zip |
Use data: URLs for smileys rather than external files.
Diffstat (limited to 'org/madore')
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 Binary files differnew file mode 100644 index 0000000..e284b02 --- /dev/null +++ b/org/madore/damlengine/images/smileys/arrow.png diff --git a/org/madore/damlengine/images/smileys/biggrin.png b/org/madore/damlengine/images/smileys/biggrin.png Binary files differnew file mode 100644 index 0000000..ed79d44 --- /dev/null +++ b/org/madore/damlengine/images/smileys/biggrin.png diff --git a/org/madore/damlengine/images/smileys/confused.png b/org/madore/damlengine/images/smileys/confused.png Binary files differnew file mode 100644 index 0000000..6093fe8 --- /dev/null +++ b/org/madore/damlengine/images/smileys/confused.png diff --git a/org/madore/damlengine/images/smileys/cool.png b/org/madore/damlengine/images/smileys/cool.png Binary files differnew file mode 100644 index 0000000..32053e4 --- /dev/null +++ b/org/madore/damlengine/images/smileys/cool.png diff --git a/org/madore/damlengine/images/smileys/crazy.png b/org/madore/damlengine/images/smileys/crazy.png Binary files differnew file mode 100644 index 0000000..7c4d1be --- /dev/null +++ b/org/madore/damlengine/images/smileys/crazy.png diff --git a/org/madore/damlengine/images/smileys/cry.png b/org/madore/damlengine/images/smileys/cry.png Binary files differnew file mode 100644 index 0000000..4c6622d --- /dev/null +++ b/org/madore/damlengine/images/smileys/cry.png diff --git a/org/madore/damlengine/images/smileys/eek.png b/org/madore/damlengine/images/smileys/eek.png Binary files differnew file mode 100644 index 0000000..7a4bb22 --- /dev/null +++ b/org/madore/damlengine/images/smileys/eek.png diff --git a/org/madore/damlengine/images/smileys/evil.png b/org/madore/damlengine/images/smileys/evil.png Binary files differnew file mode 100644 index 0000000..2a14bd4 --- /dev/null +++ b/org/madore/damlengine/images/smileys/evil.png diff --git a/org/madore/damlengine/images/smileys/exclaim.png b/org/madore/damlengine/images/smileys/exclaim.png Binary files differnew file mode 100644 index 0000000..e471afd --- /dev/null +++ b/org/madore/damlengine/images/smileys/exclaim.png diff --git a/org/madore/damlengine/images/smileys/frown.png b/org/madore/damlengine/images/smileys/frown.png Binary files differnew file mode 100644 index 0000000..1ecb697 --- /dev/null +++ b/org/madore/damlengine/images/smileys/frown.png diff --git a/org/madore/damlengine/images/smileys/idea.png b/org/madore/damlengine/images/smileys/idea.png Binary files differnew file mode 100644 index 0000000..7127458 --- /dev/null +++ b/org/madore/damlengine/images/smileys/idea.png diff --git a/org/madore/damlengine/images/smileys/lol.png b/org/madore/damlengine/images/smileys/lol.png Binary files differnew file mode 100644 index 0000000..bad9681 --- /dev/null +++ b/org/madore/damlengine/images/smileys/lol.png diff --git a/org/madore/damlengine/images/smileys/mad.png b/org/madore/damlengine/images/smileys/mad.png Binary files differnew file mode 100644 index 0000000..1229a44 --- /dev/null +++ b/org/madore/damlengine/images/smileys/mad.png diff --git a/org/madore/damlengine/images/smileys/mrgreen.png b/org/madore/damlengine/images/smileys/mrgreen.png Binary files differnew file mode 100644 index 0000000..8c05def --- /dev/null +++ b/org/madore/damlengine/images/smileys/mrgreen.png diff --git a/org/madore/damlengine/images/smileys/neutral.png b/org/madore/damlengine/images/smileys/neutral.png Binary files differnew file mode 100644 index 0000000..4d2483e --- /dev/null +++ b/org/madore/damlengine/images/smileys/neutral.png diff --git a/org/madore/damlengine/images/smileys/question.png b/org/madore/damlengine/images/smileys/question.png Binary files differnew file mode 100644 index 0000000..af2585d --- /dev/null +++ b/org/madore/damlengine/images/smileys/question.png diff --git a/org/madore/damlengine/images/smileys/razz.png b/org/madore/damlengine/images/smileys/razz.png Binary files differnew file mode 100644 index 0000000..82127ee --- /dev/null +++ b/org/madore/damlengine/images/smileys/razz.png diff --git a/org/madore/damlengine/images/smileys/redface.png b/org/madore/damlengine/images/smileys/redface.png Binary files differnew file mode 100644 index 0000000..e4b38bd --- /dev/null +++ b/org/madore/damlengine/images/smileys/redface.png diff --git a/org/madore/damlengine/images/smileys/rolleyes.png b/org/madore/damlengine/images/smileys/rolleyes.png Binary files differnew file mode 100644 index 0000000..1314d02 --- /dev/null +++ b/org/madore/damlengine/images/smileys/rolleyes.png diff --git a/org/madore/damlengine/images/smileys/sad.png b/org/madore/damlengine/images/smileys/sad.png Binary files differnew file mode 100644 index 0000000..1ecb697 --- /dev/null +++ b/org/madore/damlengine/images/smileys/sad.png diff --git a/org/madore/damlengine/images/smileys/smile.png b/org/madore/damlengine/images/smileys/smile.png Binary files differnew file mode 100644 index 0000000..d09436b --- /dev/null +++ b/org/madore/damlengine/images/smileys/smile.png diff --git a/org/madore/damlengine/images/smileys/surprised.png b/org/madore/damlengine/images/smileys/surprised.png Binary files differnew file mode 100644 index 0000000..a43b8d6 --- /dev/null +++ b/org/madore/damlengine/images/smileys/surprised.png diff --git a/org/madore/damlengine/images/smileys/twisted.png b/org/madore/damlengine/images/smileys/twisted.png Binary files differnew file mode 100644 index 0000000..5f6eed1 --- /dev/null +++ b/org/madore/damlengine/images/smileys/twisted.png diff --git a/org/madore/damlengine/images/smileys/wink.png b/org/madore/damlengine/images/smileys/wink.png Binary files differnew file mode 100644 index 0000000..829a80c --- /dev/null +++ b/org/madore/damlengine/images/smileys/wink.png |