mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Merge 2d0e102a15 into 0379856712
This commit is contained in:
commit
5d0303d62e
13 changed files with 124 additions and 11 deletions
|
|
@ -1,6 +1,7 @@
|
|||
{# this file was generated by searx/static/themes/simple/gruntfile.js #}
|
||||
{%- set icons = {
|
||||
'warning':'<svg class="ionicon" viewBox="0 0 512 512" aria-hidden="true"><path d="M256 80c-8.66 0-16.58 7.36-16 16l8 216a8 8 0 008 8h0a8 8 0 008-8l8-216c.58-8.64-7.34-16-16-16z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><circle cx="256" cy="416" r="16" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/></svg>',
|
||||
'calculator-outline':'<svg class="ionicon" viewBox="0 0 512 512" aria-hidden="true"><rect x="112" y="48" width="288" height="416" rx="32" ry="32" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M160.01 112H352v64H160.01z"/><circle cx="168" cy="248" r="24"/><circle cx="256" cy="248" r="24"/><circle cx="344" cy="248" r="24"/><circle cx="168" cy="328" r="24"/><circle cx="256" cy="328" r="24"/><circle cx="168" cy="408" r="24"/><circle cx="256" cy="408" r="24"/><rect x="320" y="304" width="48" height="128" rx="24" ry="24"/></svg>',
|
||||
'close':'<svg class="ionicon" viewBox="0 0 512 512" aria-hidden="true"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M368 368L144 144M368 144L144 368"/></svg>',
|
||||
'chevron-up-outline':'<svg class="ionicon" viewBox="0 0 512 512" aria-hidden="true"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="48" d="M112 328l144-144 144 144"/></svg>',
|
||||
'chevron-right':'<svg class="ionicon" viewBox="0 0 512 512" aria-hidden="true"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="48" d="M184 112l144 144-144 144"/></svg>',
|
||||
|
|
|
|||
|
|
@ -19,6 +19,62 @@
|
|||
{% endif %}
|
||||
|
||||
<div id="results" class="{{ only_template }}">
|
||||
{% if is_math == True %}
|
||||
<div id="calculator">
|
||||
<div id="calc_header">
|
||||
<div id="calc_title">
|
||||
<div id="calc_icon">{{ icon_big('calculator-outline') }}</div>
|
||||
<span id="calc_title_text">{{ _('Calculator') }}</span>
|
||||
</div>
|
||||
<div id="calc_query"> {{ q }} =</div>
|
||||
</div>
|
||||
|
||||
<div id="calc_input">
|
||||
<div id="calc_switch"></div>
|
||||
<div id="calc_answer"></div>
|
||||
</div>
|
||||
|
||||
<div id="calc_keypad">
|
||||
<div id="keypad_group numbers">
|
||||
<button value="(">(</button>
|
||||
<button value=")">)</button>
|
||||
<button value="%">%</button>
|
||||
<button value="7">7</button>
|
||||
<button value="8">8</button>
|
||||
<button value="9">9</button>
|
||||
<button value="4">4</button>
|
||||
<button value="5">5</button>
|
||||
<button value="6">6</button>
|
||||
<button value="1">1</button>
|
||||
<button value="2">2</button>
|
||||
<button value="3">3</button>
|
||||
<button value="0">0</button>
|
||||
<button value=".">.</button>
|
||||
<button value="=">=</button>
|
||||
</div>
|
||||
<div id="keypad_group operators">
|
||||
<button class="clear"></button>
|
||||
<button value="/">/</button>
|
||||
<button value="*">*</button>
|
||||
<button value="-">-</button>
|
||||
<button value="+">+</button>
|
||||
</div>
|
||||
<div id="keypad_group advanced">
|
||||
<button value="e">e</button>
|
||||
<button value="p">π</button>
|
||||
<button value="s">sin</button>
|
||||
<button value="c">cos</button>
|
||||
<button value="l">ln</button>
|
||||
<button value="g">log</button>
|
||||
<button value="t">tan</button>
|
||||
<button value="q">√</button>
|
||||
<button value="!">x!</button>
|
||||
<button value="^"></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if answers -%}
|
||||
<div id="answers" role="complementary" aria-labelledby="answers-title"><h4 class="title" id="answers-title">{{ _('Answers') }} : </h4>
|
||||
{%- for answer in answers.values() -%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue