MKE0108 commited on
Commit
9c334c6
·
1 Parent(s): 734576a

update_image_ani

Browse files
app/admin/__pycache__/home_page.cpython-39.pyc CHANGED
Binary files a/app/admin/__pycache__/home_page.cpython-39.pyc and b/app/admin/__pycache__/home_page.cpython-39.pyc differ
 
app/templates/survey_question.html CHANGED
@@ -76,13 +76,11 @@
76
  align-items: center;
77
  }
78
  .pokemon-image {
79
- width: 150px;
80
- height: 150px;
81
- margin-bottom: 10px;
82
- }
83
- .pokemon-image {
84
- width: 300px; /* Adjust the width as needed */
85
- height: auto; /* Maintain aspect ratio */
86
  }
87
  </style>
88
  </head>
@@ -113,6 +111,12 @@
113
  </form>
114
  <script>
115
  let question_id = String({{ question_id }});
 
 
 
 
 
 
116
  function submitForm(fieldName, fieldValue) {
117
  // disable all buttons
118
  let buttons = document.querySelectorAll('.options button');
 
76
  align-items: center;
77
  }
78
  .pokemon-image {
79
+ width: auto; /* Adjust the width as needed */
80
+ height: 300px; /* Maintain aspect ratio */
81
+ background-color: #ffffff; /* White background fill */
82
+ opacity: 0; /* Initially hide the image */
83
+ transition: opacity 0.5s ease-in-out; /* Smooth transition for showing the image */
 
 
84
  }
85
  </style>
86
  </head>
 
111
  </form>
112
  <script>
113
  let question_id = String({{ question_id }});
114
+
115
+ document.getElementById('pokemonImage').addEventListener('load', function() {
116
+ this.style.opacity = '1';
117
+ this.style.backgroundColor = 'transparent'; // Remove the background color after image loads
118
+ });
119
+
120
  function submitForm(fieldName, fieldValue) {
121
  // disable all buttons
122
  let buttons = document.querySelectorAll('.options button');
dataset/心情量表/records.csv CHANGED
@@ -1 +1,4 @@
1
-
 
 
 
 
1
+ 使用者,score
2
+ o6qodHgL3ebtJg2iNbEsC2dBQUFBQUJtdkdEd0xoaTJDTE9wVnJvN0RtakJwYWJJMmVWaERDVE5Jci13WDZjdmNVZVBVcTlmYkZsVTZrRGlMSTZ3MXJHYnNuZ1ZBQXc4SVYyLVZpd2tyNl9fX2JJU0JBPT0=,15
3
+ lsLaA_aYUoUYz2XUvRtpBWdBQUFBQUJtdkdENmhZeVFqWmZaWjN3MEJaYXVQS2ZMZC0xeWYwbi13Y2pmTk94MTJ3RHd6bElPUUNwSTFqMlUzUWNxdkNMRXlJVWNleVFTS2hwWUZqN0ZTcHNPWkk2U1lRPT0=,15
4
+ 1fGsOGI5YR-AznOiiA1h9GdBQUFBQUJtdkdFeFlTRk1RRG5DMURlVnlMNWptLXdOeHRES29rMzE0RG1SX1VKOVU1OEd5OGtia0FJaVl2T3FfZWFENUkxZGdYQjZYQ3dMVWlSV1JzVW5lTmVlN0tha3dRPT0=,16