summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/asset-rebuild4
-rwxr-xr-xscripts/update-autocomplete29
2 files changed, 1 insertions, 32 deletions
diff --git a/scripts/asset-rebuild b/scripts/asset-rebuild
index 302cc66..98e5841 100755
--- a/scripts/asset-rebuild
+++ b/scripts/asset-rebuild
@@ -8,9 +8,7 @@ set -ex
sassc -t compressed sass/dark.scss public/static/css/dark.min.css
sassc -t compressed sass/light.scss public/static/css/light.min.css
-scripts/update-autocomplete
-
-uglifyjs public/static/js/autocomplete.js public/static/js/collapse.js -c -m > public/static/js/dbf.min.js
+uglifyjs public/static/js/collapse.js -c -m > public/static/js/dbf.min.js
uglifyjs public/static/js/geostop.js -c -m > public/static/js/geostop.min.js
uglifyjs public/static/js/geotrain.js -c -m > public/static/js/geotrain.min.js
uglifyjs public/static/js/map-refresh.js -c -m > public/static/js/map-refresh.min.js
diff --git a/scripts/update-autocomplete b/scripts/update-autocomplete
deleted file mode 100755
index 22aab91..0000000
--- a/scripts/update-autocomplete
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env perl
-# Copyright (C) 2020 Birte Kristina Friesel
-#
-# SPDX-License-Identifier: CC0-1.0
-
-use strict;
-use warnings;
-use 5.020;
-
-use JSON;
-use File::Slurp qw(write_file);
-use Travel::Status::DE::IRIS::Stations;
-
-my @station_names = map { $_->[1] } Travel::Status::DE::IRIS::Stations::get_stations();
-
-my $station_json = JSON->new->utf8->encode([@station_names]);
-
-my $autocomplete = <<"EOF";
-\$(function() {
- var stations = $station_json;
- \$('input.station').autocomplete({
- delay: 0,
- minLength: 3,
- source: stations
- });
-});
-EOF
-
-write_file("public/static/js/autocomplete.js", $autocomplete);