浏览代码

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

kiki 4 年之前
父节点
当前提交
2e80585193
共有 2 个文件被更改,包括 11 次插入1 次删除
  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;