diff options
| author | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2015-02-15 19:09:17 +0100 |
|---|---|---|
| committer | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2015-02-15 19:09:17 +0100 |
| commit | d740e7384a95c6a7d80e5f492f4dd7edb312175e (patch) | |
| tree | 9cf8a96ec7d0834603290dde93ef5f45a68ef08a /searx/templates/pix-art/result_templates | |
| parent | 3ff269c84c936a3ffc2e8e3168a4ac017047015b (diff) | |
New Theme, Pix-art.
First commit
Diffstat (limited to 'searx/templates/pix-art/result_templates')
| -rw-r--r-- | searx/templates/pix-art/result_templates/default.html | 13 | ||||
| -rw-r--r-- | searx/templates/pix-art/result_templates/images.html | 6 |
2 files changed, 19 insertions, 0 deletions
diff --git a/searx/templates/pix-art/result_templates/default.html b/searx/templates/pix-art/result_templates/default.html new file mode 100644 index 000000000..b9cbca342 --- /dev/null +++ b/searx/templates/pix-art/result_templates/default.html @@ -0,0 +1,13 @@ +<a href="{{ result.url }}" title="{{ result.title | striptags }}"> + <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); +}; +</script>
\ No newline at end of file diff --git a/searx/templates/pix-art/result_templates/images.html b/searx/templates/pix-art/result_templates/images.html new file mode 100644 index 000000000..e06dcc194 --- /dev/null +++ b/searx/templates/pix-art/result_templates/images.html @@ -0,0 +1,6 @@ +<div class="image_result"> + <p> + <a href="{{ result.img_src }}"><img src="{% if result.thumbnail_src %}{{ image_proxify(result.thumbnail_src) }}{% else %}{{ image_proxify(result.img_src) }}{% endif %}" title="{{ result.title|striptags }}" alt="{{ result.title|striptags }}" /></a> + <span class="url"><a href="{{ result.url }}" class="small_font">{{ _('original context') }}</a></span> + </p> +</div> |