Update index.html
Browse files- index.html +31 -31
    	
        index.html
    CHANGED
    
    | @@ -90,41 +90,28 @@ | |
| 90 | 
             
                  color: black;
         | 
| 91 | 
             
                }
         | 
| 92 |  | 
| 93 | 
            -
                /*  | 
| 94 | 
             
                .tag.text { background-color: #9c27b0; color: white; }
         | 
| 95 | 
             
                .tag.audio { background-color: #ff9800; color: white; }
         | 
| 96 | 
             
                .tag.vision { background-color: #03a9f4; color: white; }
         | 
| 97 | 
             
                .tag.multimodal { background-color: #795548; color: white; }
         | 
| 98 | 
             
                .tag.video { background-color: #E91E63; color: white; }
         | 
| 99 | 
            -
                .tag.image { background-color: #00BCD4; color: white; }
         | 
| 100 | 
             
                .tag.utility { background-color: #9E9E9E; color: white; }
         | 
| 101 | 
             
                .tag.predict { background-color: #673AB7; color: white; }
         | 
| 102 | 
             
                .tag.game { background-color: #4CAF50; color: white; }
         | 
| 103 | 
             
                .tag.education { background-color: #3F51B5; color: white; }
         | 
| 104 | 
             
                .tag.announcement { background-color: #607d8b; color: white; }
         | 
| 105 |  | 
| 106 | 
            -
                /*  | 
| 107 | 
            -
                .tag. | 
| 108 | 
            -
                  background-color: # | 
| 109 | 
             
                  color: white;
         | 
| 110 | 
             
                }
         | 
| 111 | 
            -
                .tag. | 
| 112 | 
            -
                  background-color: # | 
| 113 | 
             
                  color: white;
         | 
| 114 | 
             
                }
         | 
| 115 |  | 
| 116 | 
            -
                .tag.text { background-color: #9c27b0; color: white; }
         | 
| 117 | 
            -
                .tag.audio { background-color: #ff9800; color: white; }
         | 
| 118 | 
            -
                .tag.vision { background-color: #03a9f4; color: white; }
         | 
| 119 | 
            -
                .tag.multimodal { background-color: #795548; color: white; }
         | 
| 120 | 
            -
                .tag.video { background-color: #E91E63; color: white; }
         | 
| 121 | 
            -
                .tag.image { background-color: #00BCD4; color: white; }
         | 
| 122 | 
            -
                .tag.utility { background-color: #9E9E9E; color: white; }
         | 
| 123 | 
            -
                .tag.predict { background-color: #673AB7; color: white; }
         | 
| 124 | 
            -
                .tag.game { background-color: #4CAF50; color: white; }
         | 
| 125 | 
            -
                .tag.education { background-color: #3F51B5; color: white; }
         | 
| 126 | 
            -
                .tag.announcement { background-color: #607d8b; color: white; }
         | 
| 127 | 
            -
             | 
| 128 | 
             
                .event p a {
         | 
| 129 | 
             
                  color: #4caf50;
         | 
| 130 | 
             
                  text-decoration: none;
         | 
| @@ -185,7 +172,7 @@ | |
| 185 | 
             
                  color: white;
         | 
| 186 | 
             
                }
         | 
| 187 |  | 
| 188 | 
            -
                /*  | 
| 189 | 
             
                .toggle-button[data-filter="best"] { background-color: #FFD700; color: black; }
         | 
| 190 | 
             
                .toggle-button[data-filter="new"] { background-color: #FF4081; color: white; }
         | 
| 191 | 
             
                .toggle-button[data-filter="popular"] { background-color: #ffa500; color: black; }
         | 
| @@ -194,15 +181,17 @@ | |
| 194 | 
             
                .toggle-button[data-filter="vision"] { background-color: #03a9f4; color: white; }
         | 
| 195 | 
             
                .toggle-button[data-filter="multimodal"] { background-color: #795548; color: white; }
         | 
| 196 | 
             
                .toggle-button[data-filter="video"] { background-color: #E91E63; color: white; }
         | 
| 197 | 
            -
                .toggle-button[data-filter="image"] { background-color: #00BCD4; color: white; }
         | 
| 198 | 
             
                .toggle-button[data-filter="utility"] { background-color: #9E9E9E; color: white; }
         | 
| 199 | 
             
                .toggle-button[data-filter="predict"] { background-color: #673AB7; color: white; }
         | 
| 200 | 
             
                .toggle-button[data-filter="game"] { background-color: #4CAF50; color: white; }
         | 
| 201 | 
             
                .toggle-button[data-filter="education"] { background-color: #3F51B5; color: white; }
         | 
| 202 |  | 
| 203 | 
            -
                /*  | 
| 204 | 
            -
                .toggle-button[data-filter=" | 
| 205 | 
            -
                .toggle-button[data-filter=" | 
|  | |
|  | |
|  | |
| 206 |  | 
| 207 | 
             
                .counter-container {
         | 
| 208 | 
             
                  text-align: center;
         | 
| @@ -250,14 +239,14 @@ | |
| 250 | 
             
                  <button class="toggle-button" data-filter="vision">Vision</button>
         | 
| 251 | 
             
                  <button class="toggle-button" data-filter="multimodal">Multimodal</button>
         | 
| 252 | 
             
                  <button class="toggle-button" data-filter="video">Video</button>
         | 
| 253 | 
            -
                  <button class="toggle-button" data-filter="image">Image</button>
         | 
| 254 | 
             
                  <button class="toggle-button" data-filter="utility">Utility</button>
         | 
| 255 | 
             
                  <button class="toggle-button" data-filter="predict">Predict</button>
         | 
| 256 | 
             
                  <button class="toggle-button" data-filter="game">Game</button>
         | 
| 257 | 
             
                  <button class="toggle-button" data-filter="education">Education</button>
         | 
| 258 |  | 
| 259 | 
            -
                  <!--  | 
| 260 | 
            -
                  <button class="toggle-button" data-filter=" | 
|  | |
| 261 | 
             
                </div>
         | 
| 262 | 
             
              </div>
         | 
| 263 |  | 
| @@ -1339,6 +1328,7 @@ | |
| 1339 |  | 
| 1340 |  | 
| 1341 |  | 
|  | |
| 1342 | 
             
              <script>
         | 
| 1343 | 
             
                function updateCounts() {
         | 
| 1344 | 
             
                  const bestCount = document.querySelectorAll('.tag.best').length;
         | 
| @@ -1369,10 +1359,20 @@ | |
| 1369 | 
             
                function applyFilters() {
         | 
| 1370 | 
             
                  const events = document.querySelectorAll('.event');
         | 
| 1371 | 
             
                  events.forEach(event => {
         | 
| 1372 | 
            -
                    const  | 
| 1373 | 
            -
             | 
| 1374 | 
            -
             | 
| 1375 | 
            -
                     | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 1376 | 
             
                  });
         | 
| 1377 | 
             
                  updateCounts();
         | 
| 1378 | 
             
                }
         | 
|  | |
| 90 | 
             
                  color: black;
         | 
| 91 | 
             
                }
         | 
| 92 |  | 
| 93 | 
            +
                /* 기존 태그 스타일 */
         | 
| 94 | 
             
                .tag.text { background-color: #9c27b0; color: white; }
         | 
| 95 | 
             
                .tag.audio { background-color: #ff9800; color: white; }
         | 
| 96 | 
             
                .tag.vision { background-color: #03a9f4; color: white; }
         | 
| 97 | 
             
                .tag.multimodal { background-color: #795548; color: white; }
         | 
| 98 | 
             
                .tag.video { background-color: #E91E63; color: white; }
         | 
|  | |
| 99 | 
             
                .tag.utility { background-color: #9E9E9E; color: white; }
         | 
| 100 | 
             
                .tag.predict { background-color: #673AB7; color: white; }
         | 
| 101 | 
             
                .tag.game { background-color: #4CAF50; color: white; }
         | 
| 102 | 
             
                .tag.education { background-color: #3F51B5; color: white; }
         | 
| 103 | 
             
                .tag.announcement { background-color: #607d8b; color: white; }
         | 
| 104 |  | 
| 105 | 
            +
                /* 새로운 하위 카테고리 태그 스타일 */
         | 
| 106 | 
            +
                .tag.image-gen {
         | 
| 107 | 
            +
                  background-color: #4CAF50; /* 녹색 */
         | 
| 108 | 
             
                  color: white;
         | 
| 109 | 
             
                }
         | 
| 110 | 
            +
                .tag.image-edit {
         | 
| 111 | 
            +
                  background-color: #FF5722; /* 주황색 */
         | 
| 112 | 
             
                  color: white;
         | 
| 113 | 
             
                }
         | 
| 114 |  | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 115 | 
             
                .event p a {
         | 
| 116 | 
             
                  color: #4caf50;
         | 
| 117 | 
             
                  text-decoration: none;
         | 
|  | |
| 172 | 
             
                  color: white;
         | 
| 173 | 
             
                }
         | 
| 174 |  | 
| 175 | 
            +
                /* 기존 필터 버튼 스타일 */
         | 
| 176 | 
             
                .toggle-button[data-filter="best"] { background-color: #FFD700; color: black; }
         | 
| 177 | 
             
                .toggle-button[data-filter="new"] { background-color: #FF4081; color: white; }
         | 
| 178 | 
             
                .toggle-button[data-filter="popular"] { background-color: #ffa500; color: black; }
         | 
|  | |
| 181 | 
             
                .toggle-button[data-filter="vision"] { background-color: #03a9f4; color: white; }
         | 
| 182 | 
             
                .toggle-button[data-filter="multimodal"] { background-color: #795548; color: white; }
         | 
| 183 | 
             
                .toggle-button[data-filter="video"] { background-color: #E91E63; color: white; }
         | 
|  | |
| 184 | 
             
                .toggle-button[data-filter="utility"] { background-color: #9E9E9E; color: white; }
         | 
| 185 | 
             
                .toggle-button[data-filter="predict"] { background-color: #673AB7; color: white; }
         | 
| 186 | 
             
                .toggle-button[data-filter="game"] { background-color: #4CAF50; color: white; }
         | 
| 187 | 
             
                .toggle-button[data-filter="education"] { background-color: #3F51B5; color: white; }
         | 
| 188 |  | 
| 189 | 
            +
                /* 새로운 하위 카테고리 필터 버튼 스타일 */
         | 
| 190 | 
            +
                .toggle-button[data-filter="image-gen"] { background-color: #4CAF50; color: white; }
         | 
| 191 | 
            +
                .toggle-button[data-filter="image-edit"] { background-color: #FF5722; color: white; }
         | 
| 192 | 
            +
             | 
| 193 | 
            +
                .toggle-button[data-filter="image-gen"].active { background-color: #388E3C; border-color: #388E3C; }
         | 
| 194 | 
            +
                .toggle-button[data-filter="image-edit"].active { background-color: #E64A19; border-color: #E64A19; }
         | 
| 195 |  | 
| 196 | 
             
                .counter-container {
         | 
| 197 | 
             
                  text-align: center;
         | 
|  | |
| 239 | 
             
                  <button class="toggle-button" data-filter="vision">Vision</button>
         | 
| 240 | 
             
                  <button class="toggle-button" data-filter="multimodal">Multimodal</button>
         | 
| 241 | 
             
                  <button class="toggle-button" data-filter="video">Video</button>
         | 
|  | |
| 242 | 
             
                  <button class="toggle-button" data-filter="utility">Utility</button>
         | 
| 243 | 
             
                  <button class="toggle-button" data-filter="predict">Predict</button>
         | 
| 244 | 
             
                  <button class="toggle-button" data-filter="game">Game</button>
         | 
| 245 | 
             
                  <button class="toggle-button" data-filter="education">Education</button>
         | 
| 246 |  | 
| 247 | 
            +
                  <!-- 새로운 하위 카테고리 필터 버튼 -->
         | 
| 248 | 
            +
                  <button class="toggle-button" data-filter="image-gen">Image Gen</button>
         | 
| 249 | 
            +
                  <button class="toggle-button" data-filter="image-edit">Image Edit</button>
         | 
| 250 | 
             
                </div>
         | 
| 251 | 
             
              </div>
         | 
| 252 |  | 
|  | |
| 1328 |  | 
| 1329 |  | 
| 1330 |  | 
| 1331 | 
            +
             | 
| 1332 | 
             
              <script>
         | 
| 1333 | 
             
                function updateCounts() {
         | 
| 1334 | 
             
                  const bestCount = document.querySelectorAll('.tag.best').length;
         | 
|  | |
| 1359 | 
             
                function applyFilters() {
         | 
| 1360 | 
             
                  const events = document.querySelectorAll('.event');
         | 
| 1361 | 
             
                  events.forEach(event => {
         | 
| 1362 | 
            +
                    const activeFilters = Array.from(document.querySelectorAll('.toggle-button.active')).map(button => button.getAttribute('data-filter'));
         | 
| 1363 | 
            +
             | 
| 1364 | 
            +
                    // 'all' 필터가 활성화된 경우 모든 이벤트 표시
         | 
| 1365 | 
            +
                    if (activeFilters.includes('all')) {
         | 
| 1366 | 
            +
                      event.style.display = 'block';
         | 
| 1367 | 
            +
                      return;
         | 
| 1368 | 
            +
                    }
         | 
| 1369 | 
            +
             | 
| 1370 | 
            +
                    // 활성화된 필터 중 하나라도 일치하는 경우 이벤트 표시
         | 
| 1371 | 
            +
                    const matches = activeFilters.some(filter => {
         | 
| 1372 | 
            +
                      return event.querySelector(`.tag.${filter}`);
         | 
| 1373 | 
            +
                    });
         | 
| 1374 | 
            +
             | 
| 1375 | 
            +
                    event.style.display = matches ? 'block' : 'none';
         | 
| 1376 | 
             
                  });
         | 
| 1377 | 
             
                  updateCounts();
         | 
| 1378 | 
             
                }
         | 
