Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
searx-engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
searx-engine
Commits
cec4487c
Commit
cec4487c
authored
Jul 29, 2020
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[iframe] add iframe postMessage on input change
parent
2d4d0bdc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
gargantext.js
searx/static/js/gargantext.js
+16
-0
base.html
searx/templates/oscar/base.html
+1
-0
No files found.
searx/static/js/gargantext.js
0 → 100644
View file @
cec4487c
'use strict'
;
(()
=>
{
$
(
document
).
on
(
'ready'
,
function
()
{
$
(
'#q'
).
on
(
'change'
,
function
()
{
if
(
document
.
referrer
==
''
)
{
return
;
}
var
$el
=
$
(
this
);
window
.
parent
.
postMessage
({
url
:
window
.
location
.
href
,
term
:
$el
.
val
()
},
document
.
referrer
);
});
});
})();
searx/templates/oscar/base.html
View file @
cec4487c
...
...
@@ -98,6 +98,7 @@
{% if autocomplete %}
<script
src=
"{{ url_for('static', filename='js/typeahead.bundle.min.js') }}"
></script>
{% endif %}
<script
src=
"{{ url_for('static', filename='js/require-2.1.15.min.js') }}"
></script>
<script
src=
"{{ url_for('static', filename='js/gargantext.js') }}"
></script>
<script
src=
"{{ url_for('static', filename='js/searx.min.js') }}"
data-method=
"{{ method or 'POST' }}"
data-autocompleter=
"{% if autocomplete %}true{% else %}false{% endif %}"
></script>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment