2022-07-21 12:45:28 +00:00
|
|
|
{% extends "base.html" %}
|
2022-07-21 12:46:48 +00:00
|
|
|
{% load static %}
|
2022-07-21 12:45:28 +00:00
|
|
|
{% block content %}
|
2022-07-21 12:51:01 +00:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
2022-08-03 06:20:30 +00:00
|
|
|
<div>
|
2022-07-21 12:49:01 +00:00
|
|
|
<form method="POST">
|
2022-07-21 12:49:11 +00:00
|
|
|
{% csrf_token %}
|
2022-08-03 06:20:30 +00:00
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
<div class="field has-addons">
|
2022-07-21 12:49:11 +00:00
|
|
|
<div class="control is-expanded has-icons-left">
|
2022-07-21 12:51:12 +00:00
|
|
|
<input name="query" class="input" type="text" placeholder="msg: science AND nick: BillNye AND channel: #science">
|
2022-07-21 12:49:11 +00:00
|
|
|
<span class="icon is-small is-left">
|
|
|
|
<i class="fas fa-magnifying-glass"></i>
|
|
|
|
</span>
|
2022-07-21 12:47:16 +00:00
|
|
|
</div>
|
2022-08-03 06:20:30 +00:00
|
|
|
<div class="control">
|
|
|
|
<div class="field">
|
|
|
|
<button
|
2022-08-03 06:20:30 +00:00
|
|
|
class="button is-info is-fullwidth"
|
2022-08-03 06:20:30 +00:00
|
|
|
hx-post="{% url 'search_drilldown' %}"
|
|
|
|
hx-trigger="click"
|
|
|
|
hx-target="#results"
|
|
|
|
hx-swap="innerHTML">
|
|
|
|
Search
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-21 12:46:48 +00:00
|
|
|
</div>
|
2022-07-21 12:49:01 +00:00
|
|
|
</div>
|
2022-08-03 06:20:30 +00:00
|
|
|
<div class="column is-2">
|
|
|
|
<div
|
|
|
|
_="on click toggle .is-hidden on #options"
|
2022-08-03 06:20:30 +00:00
|
|
|
class="button is-light has-text-link is-right">
|
2022-08-03 06:20:30 +00:00
|
|
|
Options
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-21 12:49:11 +00:00
|
|
|
|
2022-08-03 06:20:30 +00:00
|
|
|
<div id="options" class="columns is-hidden">
|
2022-07-21 12:49:22 +00:00
|
|
|
<div class="column">
|
2022-08-03 06:20:30 +00:00
|
|
|
<div class="field has-addons">
|
2022-08-03 06:20:30 +00:00
|
|
|
<div class="control has-icons-left">
|
|
|
|
<span class="select">
|
2022-07-21 12:49:32 +00:00
|
|
|
<select name="size">
|
|
|
|
{% for size in sizes %}
|
|
|
|
<option value="{{ size }}">{{ size }}</option>
|
|
|
|
{% endfor %}
|
2022-07-21 12:49:11 +00:00
|
|
|
</select>
|
|
|
|
<span class="icon is-small is-left">
|
|
|
|
<i class="fas fa-magnifying-glass"></i>
|
|
|
|
</span>
|
2022-08-03 06:20:30 +00:00
|
|
|
</span>
|
2022-07-21 12:49:11 +00:00
|
|
|
</div>
|
2022-08-03 06:20:30 +00:00
|
|
|
<p class="control">
|
|
|
|
<a class="button is-static">
|
|
|
|
results
|
|
|
|
</a>
|
|
|
|
</p>
|
2022-07-21 12:49:11 +00:00
|
|
|
</div>
|
2022-07-21 12:49:01 +00:00
|
|
|
</div>
|
2022-08-03 06:20:30 +00:00
|
|
|
<div class="column">
|
|
|
|
<div class="field has-addons">
|
|
|
|
<div class="control has-icons-left">
|
|
|
|
<span class="select">
|
|
|
|
<select name="source">
|
2022-08-03 22:26:22 +00:00
|
|
|
<option selected value="all">All</option>
|
2022-08-03 06:20:30 +00:00
|
|
|
<option value="irc">IRC</option>
|
|
|
|
<option value="dis">Discord</option>
|
|
|
|
</select>
|
|
|
|
<span class="icon is-small is-left">
|
|
|
|
<i class="fas fa-magnifying-glass"></i>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<p class="control">
|
|
|
|
<a class="button is-static">
|
|
|
|
source
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="column">
|
2022-08-03 22:26:22 +00:00
|
|
|
<div class="field has-addons" id="sentiment">
|
2022-08-03 06:20:30 +00:00
|
|
|
<div class="control">
|
2022-08-03 22:26:22 +00:00
|
|
|
<input disabled="undefined" name="sentiment" id="sliderWithValue" class="slider has-output-tooltip is-fullwidth" min="-1" max="1" value="0" step="0.05" type="range">
|
2022-08-03 06:20:30 +00:00
|
|
|
<output for="sliderWithValue" class="slider-output">0</output>
|
|
|
|
<script>bulmaSlider.attach();</script>
|
|
|
|
</div>
|
|
|
|
<p class="control">
|
|
|
|
<a class="button is-static">
|
|
|
|
sentiment
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
2022-08-03 22:26:22 +00:00
|
|
|
<label class="checkbox">
|
|
|
|
<input type="checkbox" name="check-sentiment"
|
|
|
|
_="on click toggle @disabled on #sliderWithValue">
|
|
|
|
Check sentiment
|
|
|
|
</label>
|
2022-08-03 06:20:30 +00:00
|
|
|
</div>
|
2022-07-21 12:49:01 +00:00
|
|
|
</div>
|
2022-08-03 06:20:30 +00:00
|
|
|
<div class="is-hidden"></div>
|
2022-07-21 12:49:11 +00:00
|
|
|
</form>
|
2022-07-21 12:46:05 +00:00
|
|
|
</div>
|
2022-08-03 06:20:30 +00:00
|
|
|
<div class="block">
|
2022-08-03 22:26:22 +00:00
|
|
|
<div id="results">
|
|
|
|
</div>
|
2022-07-21 12:50:51 +00:00
|
|
|
</div>
|
2022-07-21 12:52:06 +00:00
|
|
|
<div id="modals-here">
|
|
|
|
</div>
|
2022-07-21 12:45:28 +00:00
|
|
|
{% endblock %}
|