summaryrefslogtreecommitdiff
path: root/searx/templates/pix-art/result_templates/default.html
diff options
context:
space:
mode:
authorCqoicebordel <Cqoicebordel@users.noreply.github.com>2015-02-17 01:07:14 +0100
committerCqoicebordel <Cqoicebordel@users.noreply.github.com>2015-02-17 01:07:14 +0100
commite181041f11f612937299d440ccb090d3a78cf740 (patch)
tree6cbd329785ac90ecec5787c1bc3bc0cae1afd733 /searx/templates/pix-art/result_templates/default.html
parentd740e7384a95c6a7d80e5f492f4dd7edb312175e (diff)
Ajax loading + Tweaks of CSS
Diffstat (limited to 'searx/templates/pix-art/result_templates/default.html')
-rw-r--r--searx/templates/pix-art/result_templates/default.html9
1 files changed, 1 insertions, 8 deletions
diff --git a/searx/templates/pix-art/result_templates/default.html b/searx/templates/pix-art/result_templates/default.html
index b9cbca342..60ff502c8 100644
--- a/searx/templates/pix-art/result_templates/default.html
+++ b/searx/templates/pix-art/result_templates/default.html
@@ -2,12 +2,5 @@
<canvas id="canvas-{{ pageno }}-{{ index }}" class="icon" width="16" height="16"></canvas>
</a>
<script type="text/javascript">
-var img{{ pageno }}_{{ index }} = new Image();
-img{{ pageno }}_{{ index }}.src = 'http://{{ result.url | extract_domain }}/favicon.ico';
-
-img{{ pageno }}_{{ index }}.onload = function () {
- var can{{ pageno }}_{{ index }} = document.getElementById('canvas-{{ pageno }}-{{ index }}');
- var ctx = can{{ pageno }}_{{ index }}.getContext("2d");
- ctx.drawImage(img{{ pageno }}_{{ index }}, 0, 0, 16, 16);
-};
+favicons[{{ pageno }}][{{ index }}] = 'http://{{ result.url | extract_domain }}/favicon.ico';
</script> \ No newline at end of file