Browse Source

Merge branch 'master' of https://git.lattuga.net/campiaperti/viz_produttori into HEAD

Your Name 3 years ago
parent
commit
b4c6c77dca
2 changed files with 29 additions and 0 deletions
  1. 15 0
      index.html
  2. 14 0
      software_export/js/main.js

+ 15 - 0
index.html

@@ -128,7 +128,22 @@
         function exportCsvP(){
             console.log("click");
          };
+         $(function() {
+           url_mercato();
 
+         });
+
+         function url_mercato() {
+           var url = window.location.href;
+           url = url.replace("http://0.0.0.0:8000/#", "")
+           //console.log(url);
+           $("#search").attr("value", url);
+           setTimeout(() => {
+             $("#search").keyup();
+           }, 10)
+
+         scriviQuanti();
+         };
     </script>
 </body>
 

+ 14 - 0
software_export/js/main.js

@@ -470,3 +470,17 @@ function scriviQuanti() {
   quanti = quanti.length;
   $("#quanti").append(quanti);
 };
+
+$(function() {
+  url_mercato();
+
+});
+
+function url_mercato() {
+  var url = window.location.href;
+  url = url.replace("http://0.0.0.0:8000/#", "")
+  console.log(url);
+  $("#search").attr("value", url);
+  $("#search").keyup();
+scriviQuanti();
+};