Browse Source

hide produzioni move provenienza mangimi

Your Name 4 years ago
parent
commit
8717452aa0
2 changed files with 18 additions and 14 deletions
  1. 8 4
      software_export/css/main.css
  2. 10 10
      software_export/js/main.js

+ 8 - 4
software_export/css/main.css

@@ -79,8 +79,9 @@ section.page-body {
   max-width: 50%;
   padding: 2em;
 }
+
 .logo {
-  background-image: url("../../images/campiapertilogo.png");
+  background-image: url("/images/campiapertilogo.png");
   height: 8em;
   width: 100%;
   background-repeat: no-repeat;
@@ -95,9 +96,9 @@ section.page-body {
   font-weight: 600;
 }
 
-p.descrive::first-letter {
-    color: gold;
-    font-size: 2.6em;
+p.descrive:first-letter {
+  color: gold;
+  font-size: 2.6em;
 }
 
 .card-header {
@@ -105,6 +106,9 @@ p.descrive::first-letter {
   min-width: 35%;
 }
 
+.card-hidden {
+}
+
 h1 {
   margin: 1em 0em 0.1em 0em;;
   font-weight: 600;

+ 10 - 10
software_export/js/main.js

@@ -199,7 +199,14 @@ function Aziende(stringexel) {
         return " " + d["textarea-491"].replace(/"/g, "");
       });
 
-
+    header_schede.append("p")
+      .append("span")
+      .attr("class", "")
+      .text("Provenienza mangimi e foraggi qualora non autoprodotti:")
+      .append("span")
+      .html(function(d) {
+        return " " + d["textarea-474"].replace(/"/g, "");
+      });
 
     /*Parte descrizione, collaborazioni e produzione (forse)*/
 
@@ -226,7 +233,7 @@ function Aziende(stringexel) {
       });
 
     schede_info.append("p")
-      .append("span")
+      .attr("class", "card-hidden hide")
       .text("Produzioni (in ettari o capi o arnie o zone di raccolta):")
       .append("span")
       .text(function(d) {
@@ -274,14 +281,7 @@ function Aziende(stringexel) {
                 Checkbox-841		checkbox-332	checkbox-81	checkbox-552	Checkbox-978	checkbox-57	checkbox-106
 */
       });
-    schede_info.append("p")
-      .append("span")
-      .attr("class", "")
-      .text("Provenienza mangimi e foraggi qualora non autoprodotti:")
-      .append("span")
-      .html(function(d) {
-        return " " + d["textarea-474"].replace(/"/g, "");
-      });
+
 
     /*parte info aggiuntive, alcune da togliere dal csv*/
     schede_infoprivate.append("p")