mirror of
https://github.com/qurator-spk/sbb_ner.git
synced 2025-07-28 04:09:53 +02:00
add demo url text parameter
This commit is contained in:
parent
a93385a4f8
commit
8752403746
1 changed files with 4 additions and 1 deletions
|
@ -52,7 +52,7 @@ function update() {
|
||||||
var model_id = $('#model').val();
|
var model_id = $('#model').val();
|
||||||
var input_text = $('#inputtext').val()
|
var input_text = $('#inputtext').val()
|
||||||
|
|
||||||
if (input_text.length < 200) {
|
if (input_text.length < 30000) {
|
||||||
|
|
||||||
var url_params = new URLSearchParams(window.location.search);
|
var url_params = new URLSearchParams(window.location.search);
|
||||||
|
|
||||||
|
@ -60,6 +60,9 @@ function update() {
|
||||||
|
|
||||||
window.history.replaceState({}, '', `${location.pathname}?${url_params}`);
|
window.history.replaceState({}, '', `${location.pathname}?${url_params}`);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
window.history.replaceState({}, '', `${location.pathname}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue