Browse Source

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

kiki 3 years ago
parent
commit
2e80585193
2 changed files with 11 additions and 1 deletions
  1. 2 1
      index.html
  2. 9 0
      software_export/css/main.css

+ 2 - 1
index.html

@@ -135,7 +135,8 @@
 
          function url_mercato() {
            var url = window.location.href;
-           url = url.replace("http://0.0.0.0:8000/#", "")
+           var origin = window.location.origin;
+           url = url.replace(origin+'/#', '');
            //console.log(url);
            $("#search").attr("value", url);
            setTimeout(() => {

+ 9 - 0
software_export/css/main.css

@@ -85,6 +85,7 @@ section.page-body {
   height: 8em;
   background-repeat: no-repeat;
   margin-left: 40%;
+  margin-bottom: 10px;
 }
 
 .descrizione {
@@ -181,6 +182,14 @@ header.page-header.scartati {
   background-color: grey;
 }
 
+/* no print */
+body .noprint button,
+body > center > h2,
+body > p,
+#ingressi, #aziende, #scartati {
+  display: none;
+}
+
 hide {
   display: none !important;
   height: 0;