Spaces:
Running
Running
File size: 29,780 Bytes
259d0f3 c2e4746 259d0f3 c2e4746 259d0f3 c2e4746 259d0f3 c2e4746 259d0f3 c2e4746 259d0f3 c2e4746 259d0f3 c2e4746 259d0f3 c2e4746 259d0f3 c2e4746 259d0f3 c2e4746 259d0f3 c2e4746 259d0f3 c2e4746 259d0f3 c2e4746 259d0f3 c2e4746 259d0f3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 |
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<!--Page Title-->
<title>Image Generator</title>
<!--Meta Keywords and Description-->
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<!--Favicon-->
<link rel="shortcut icon" href="/static/images/favicon.ico" title="Favicon" />
<!-- Main CSS Files -->
<link rel="stylesheet" href="/static/css/style.css">
<!-- Color CSS -->
<link rel="stylesheet" href="/static/css/color.css">
<!--Icon Fonts - Font Awesome Icons-->
<link rel="stylesheet" href="/static/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0//static/css/all.min.css">
<!-- Animate CSS-->
<link href="/static/css/animate.css" rel="stylesheet" type="text/css">
<!--Google Webfonts-->
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'>
<style>
body {
margin: 15px;
display: flex;
align-items: center;
justify-content: center;
height: 95vh;
background-color: #F0F0F0;
overflow-y: hidden;
}
.animated-border {
position: relative;
width: 100%;
/* Set your desired width */
height: 100%;
/* Set your desired height */
border-radius: 20px;
/* Set your desired border radius */
overflow: hidden;
}
.inner-fill {
position: absolute;
top: 6px;
/* Adjust based on borderWidth */
left: 6px;
/* Adjust based on borderWidth */
right: 6px;
/* Adjust based on borderWidth */
bottom: 6px;
/* Adjust based on borderWidth */
background-image: url('/static/images/bg.jpg');
background-color: rgba(255, 255, 255, 0.8);
/* Set your desired image path */
background-size: cover;
/* Adjust based on how you want the image to be displayed */
border-radius: 14px;
/* Adjust based on radius and borderWidth */
}
.gradient-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 20px;
background: linear-gradient(45deg, #6019FA 0%, #EDEDED 100%);
background-size: 200% 200%;
animation: moveGradient 4s linear infinite;
}
@keyframes moveGradient {
0% {
background-position: 0% 0%;
}
25% {
background-position: 100% 0%;
}
50% {
background-position: 100% 100%;
}
75% {
background-position: 0% 100%;
}
100% {
background-position: 0% 0%;
}
75% {
background-position: 0% 100%;
}
50% {
background-position: 100% 100%;
}
25% {
background-position: 100% 0%;
}
0% {
background-position: 0% 0%;
}
}
.avatar {
height: 10vh;
width: 10vw;
}
#generated-image-container {
border-radius: 25px;
max-width: 100%;
/* Ensure the image doesn't exceed the container width */
height: auto;
/* Allow the height to adjust proportionally */
display: block;
/* Ensure it's a block element to take up the full width */
}
#generated-image-container img {
height: 250px;
padding: 20px 0px;
}
.loaderx {
width: 6em;
height: 6em;
}
.loader-ring {
animation: ringA 2s linear infinite;
}
.loader-ring-a {
stroke: #9708F4;
}
.loader-ring-b {
animation-name: ringB;
stroke: #5E14E4;
}
.loader-ring-c {
animation-name: ringC;
stroke: #9708F4;
}
.loader-ring-d {
animation-name: ringD;
stroke: #5E14E4;
}
/* Animations */
@keyframes ringA {
from,
4% {
stroke-dasharray: 0 660;
stroke-width: 20;
stroke-dashoffset: -330;
}
12% {
stroke-dasharray: 60 600;
stroke-width: 30;
stroke-dashoffset: -335;
}
32% {
stroke-dasharray: 60 600;
stroke-width: 30;
stroke-dashoffset: -595;
}
40%,
54% {
stroke-dasharray: 0 660;
stroke-width: 20;
stroke-dashoffset: -660;
}
62% {
stroke-dasharray: 60 600;
stroke-width: 30;
stroke-dashoffset: -665;
}
82% {
stroke-dasharray: 60 600;
stroke-width: 30;
stroke-dashoffset: -925;
}
90%,
to {
stroke-dasharray: 0 660;
stroke-width: 20;
stroke-dashoffset: -990;
}
}
@keyframes ringB {
from,
12% {
stroke-dasharray: 0 220;
stroke-width: 20;
stroke-dashoffset: -110;
}
20% {
stroke-dasharray: 20 200;
stroke-width: 30;
stroke-dashoffset: -115;
}
40% {
stroke-dasharray: 20 200;
stroke-width: 30;
stroke-dashoffset: -195;
}
48%,
62% {
stroke-dasharray: 0 220;
stroke-width: 20;
stroke-dashoffset: -220;
}
70% {
stroke-dasharray: 20 200;
stroke-width: 30;
stroke-dashoffset: -225;
}
90% {
stroke-dasharray: 20 200;
stroke-width: 30;
stroke-dashoffset: -305;
}
98%,
to {
stroke-dasharray: 0 220;
stroke-width: 20;
stroke-dashoffset: -330;
}
}
@keyframes ringC {
from {
stroke-dasharray: 0 440;
stroke-width: 20;
stroke-dashoffset: 0;
}
8% {
stroke-dasharray: 40 400;
stroke-width: 30;
stroke-dashoffset: -5;
}
28% {
stroke-dasharray: 40 400;
stroke-width: 30;
stroke-dashoffset: -175;
}
36%,
58% {
stroke-dasharray: 0 440;
stroke-width: 20;
stroke-dashoffset: -220;
}
66% {
stroke-dasharray: 40 400;
stroke-width: 30;
stroke-dashoffset: -225;
}
86% {
stroke-dasharray: 40 400;
stroke-width: 30;
stroke-dashoffset: -395;
}
94%,
to {
stroke-dasharray: 0 440;
stroke-width: 20;
stroke-dashoffset: -440;
}
}
@keyframes ringD {
from,
8% {
stroke-dasharray: 0 440;
stroke-width: 20;
stroke-dashoffset: 0;
}
16% {
stroke-dasharray: 40 400;
stroke-width: 30;
stroke-dashoffset: -5;
}
36% {
stroke-dasharray: 40 400;
stroke-width: 30;
stroke-dashoffset: -175;
}
44%,
50% {
stroke-dasharray: 0 440;
stroke-width: 20;
stroke-dashoffset: -220;
}
58% {
stroke-dasharray: 40 400;
stroke-width: 30;
stroke-dashoffset: -225;
}
78% {
stroke-dasharray: 40 400;
stroke-width: 30;
stroke-dashoffset: -395;
}
86%,
to {
stroke-dasharray: 0 440;
stroke-width: 20;
stroke-dashoffset: -440;
}
}
.disabled-button {
background: linear-gradient(45deg, #6b486b, #7100a1);
opacity: 0.5;
cursor: not-allowed;
box-shadow: 0 0 0 #7a65878c;
pointer-events: none;
}
.zoom-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
justify-content: center;
align-items: center;
}
.zoom-content {
max-width: 80%;
max-height: 80%;
text-align: center;
/* Center the content horizontally */
position: relative;
}
.zoom-image {
position: relative;
max-width: 40%;
max-height: 40%;
margin: 0 auto;
/* Center the image horizontally */
display: block;
/* Remove default inline styling */
border-radius: 10px;
}
.image-container {
position: relative;
}
.exit-modal-button-top-right {
position: sticky;
right: 0;
left: 67%;
z-index: 1;
background-color: #de2d2d9e;
color: #ffffff;
border: none;
padding: 5px 10px;
cursor: pointer;
border-radius: 5px 5px 5px 0px;
}
.label {
display: block;
/* Display the label as a block to force it on top */
margin-bottom: 10px;
/* Add some spacing between label and input/button */
}
.input-button-container {
display: inline-block;
/* Display the input and button on the same line */
}
.footer {
padding: 10px;
text-align: center;
position: sticky;
bottom: 0;
width: 100%;
}
</style>
</head>
<body>
<div class="animated-border">
<div class="gradient-overlay" id="gradientOverlay"></div>
<div class="inner-fill">
<div id="wrapper">
<header id="banner" class="scrollto clearfix" data-enllax-ratio=".5">
<div id="header" class="nav-collapse">
<div class="row clearfix">
<div class="col-1">
<div id="nav-trigger"><span></span></div>
<nav id="nav-mobile"></nav>
</div>
</div>
</div>
<!-- Banner Content -->
<div id="banner-content" class="row clearfix">
<!-- Left column -->
<h2>
<br><br>
</h2>
<div class="col-lg-3 wow bounceInUp" data-wow-offset="2" data-wow-duration="1.5s" data-wow-delay="0.2s">
<h1>Welcome to<br> <span class="easytext">FIFA Player Avatar</span> Generator!</h1>
<h2>Our cutting-edge graphics ensure that your FIFA player avatar looks as lifelike as possible, bringing an unparalleled level of realism to your virtual soccer experience.</h2>
</div>
<!-- right (wider) -->
<div class="col-lg-6">
<div class="uploadbuttons wow bounceInUp" data-wow-offset="5" data-wow-duration="1.5s" data-wow-delay="0.4s">
<form id="generate-form" action="/generate" method="POST">
<div class="container">
<div class="drag-area" id="container">
<div id="generated-image-container">
{% if success %}
<img src="data:image/png;base64,{{ generated_image }}" alt="Generated Image"> {% endif %}
</div>
<div class="icon" id="icon-container">
<img src="/static/images/avatar.gif">
</div>
<div id="loader" style="display: none;"><svg class="loaderx" width="240" height="240" viewBox="0 0 240 240">
<circle class="loader-ring loader-ring-a" cx="120" cy="120" r="105" fill="none" stroke="#000" stroke-width="20" stroke-dasharray="0 660" stroke-dashoffset="-330" stroke-linecap="round"></circle>
<circle class="loader-ring loader-ring-b" cx="120" cy="120" r="35" fill="none" stroke="#000" stroke-width="20" stroke-dasharray="0 220" stroke-dashoffset="-110" stroke-linecap="round"></circle>
<circle class="loader-ring loader-ring-c" cx="85" cy="120" r="70" fill="none" stroke="#000" stroke-width="20" stroke-dasharray="0 440" stroke-linecap="round"></circle>
<circle class="loader-ring loader-ring-d" cx="155" cy="120" r="70" fill="none" stroke="#000" stroke-width="20" stroke-dasharray="0 440" stroke-linecap="round"></circle>
</svg></div>
<p id="instructions">ⓘ Click the button to generate your FiFa Player Avatar. Generated images will shown here, you can click the picture to zoom.</p>
</div>
</div>
<div class="buttondiv">
<label for="n_samples">Choose or enter the desired number of samples (4-20):</label>
<input type="number" id="n_samples" name="n_samples" value="4" min="4" max="20">
<button class="uploadbutton wow bounceInUp" data-wow-offset="3" data-wow-duration="1.5s" data-wow-delay="0.5s" type="submit" value="Upload" onclick="handleGenerateClick()">Generate
<div class="star-1">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 784.11 815.53" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd" version="1.1" xml:space="preserve"
xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="myGradient" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style="stop-color:#9400D3" /> <!-- Dark Violet -->
<stop offset="100%" style="stop-color:#8A2BE2" /> <!-- Blue Violet -->
</linearGradient>
</defs>
<g id="Layer_x0020_1">
<metadata id="CorelCorpID_0Corel-Layer"></metadata>
<!-- Apply the gradient to the fill attribute of the path -->
<path d="M392.05 0c-20.9,210.08 -184.06,378.41 -392.05,407.78 207.96,29.37 371.12,197.68 392.05,407.74 20.93,-210.06 184.09,-378.37 392.05,-407.74 -207.98,-29.38 -371.16,-197.69 -392.06,-407.78z" class="fil0" fill="url(#myGradient)"></path>
</g>
</svg>
</div>
<div class="star-2">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 784.11 815.53" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd" version="1.1" xml:space="preserve"
xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="myGradient" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style="stop-color:#9400D3" /> <!-- Dark Violet -->
<stop offset="100%" style="stop-color:#8A2BE2" /> <!-- Blue Violet -->
</linearGradient>
</defs>
<g id="Layer_x0020_1">
<metadata id="CorelCorpID_0Corel-Layer"></metadata>
<!-- Apply the gradient to the fill attribute of the path -->
<path d="M392.05 0c-20.9,210.08 -184.06,378.41 -392.05,407.78 207.96,29.37 371.12,197.68 392.05,407.74 20.93,-210.06 184.09,-378.37 392.05,-407.74 -207.98,-29.38 -371.16,-197.69 -392.06,-407.78z" class="fil0" fill="url(#myGradient)"></path>
</g>
</svg>
</div>
<div class="star-3">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 784.11 815.53" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd" version="1.1" xml:space="preserve"
xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="myGradient" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style="stop-color:#9400D3" /> <!-- Dark Violet -->
<stop offset="100%" style="stop-color:#8A2BE2" /> <!-- Blue Violet -->
</linearGradient>
</defs>
<g id="Layer_x0020_1">
<metadata id="CorelCorpID_0Corel-Layer"></metadata>
<!-- Apply the gradient to the fill attribute of the path -->
<path d="M392.05 0c-20.9,210.08 -184.06,378.41 -392.05,407.78 207.96,29.37 371.12,197.68 392.05,407.74 20.93,-210.06 184.09,-378.37 392.05,-407.74 -207.98,-29.38 -371.16,-197.69 -392.06,-407.78z" class="fil0" fill="url(#myGradient)"></path>
</g>
</svg>
</div>
<div class="star-4">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 784.11 815.53" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd" version="1.1" xml:space="preserve"
xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="myGradient" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style="stop-color:#9400D3" /> <!-- Dark Violet -->
<stop offset="100%" style="stop-color:#8A2BE2" /> <!-- Blue Violet -->
</linearGradient>
</defs>
<g id="Layer_x0020_1">
<metadata id="CorelCorpID_0Corel-Layer"></metadata>
<!-- Apply the gradient to the fill attribute of the path -->
<path d="M392.05 0c-20.9,210.08 -184.06,378.41 -392.05,407.78 207.96,29.37 371.12,197.68 392.05,407.74 20.93,-210.06 184.09,-378.37 392.05,-407.74 -207.98,-29.38 -371.16,-197.69 -392.06,-407.78z" class="fil0" fill="url(#myGradient)"></path>
</g>
</svg>
</div>
<div class="star-5">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 784.11 815.53" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd" version="1.1" xml:space="preserve"
xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="myGradient" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style="stop-color:#FFA07A" />
<stop offset="100%" style="stop-color:#FF6347" />
</linearGradient>
</defs>
<g id="Layer_x0020_1">
<metadata id="CorelCorpID_0Corel-Layer"></metadata>
<!-- Apply the gradient to the fill attribute of the path -->
<path d="M392.05 0c-20.9,210.08 -184.06,378.41 -392.05,407.78 207.96,29.37 371.12,197.68 392.05,407.74 20.93,-210.06 184.09,-378.37 392.05,-407.74 -207.98,-29.38 -371.16,-197.69 -392.06,-407.78z" class="fil0" fill="url(#myGradient)"></path>
</g>
</svg>
</div>
<div class="star-6">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 784.11 815.53" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd" version="1.1" xml:space="preserve"
xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="myGradient" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style="stop-color:#FFA07A" />
<stop offset="100%" style="stop-color:#FF6347" />
</linearGradient>
</defs>
<g id="Layer_x0020_1">
<metadata id="CorelCorpID_0Corel-Layer"></metadata>
<!-- Apply the gradient to the fill attribute of the path -->
<path d="M392.05 0c-20.9,210.08 -184.06,378.41 -392.05,407.78 207.96,29.37 371.12,197.68 392.05,407.74 20.93,-210.06 184.09,-378.37 392.05,-407.74 -207.98,-29.38 -371.16,-197.69 -392.06,-407.78z" class="fil0" fill="url(#myGradient)"></path>
</g>
</svg>
</button>
</div>
</div>
</form>
</div>
</div>
<!--End of Row-->
</header>
<div class="footer wow bounceInUp" data-wow-offset="3" data-wow-duration="2s" data-wow-delay="0.5s">
<p>Developed by Dave Fagarita | Jimuel Servandil | Jannica Mae Magno | Jeziah Lois Catanus</p>
</div>
</div>
</div>
</div>
<div id="zoomModal" class="zoom-modal">
<div class="zoom-content">
<div id="zoomedImageContainer" class="image-container">
<button class="exit-modal-button-top-right" onclick="closeZoomModal()">x</button>
<img id="zoomedImage" class="zoom-image" alt="Zoomed Image">
</div>
</div>
</div>
<!-- index_ajax.html -->
<script>
function handleGenerateClick() {
// Get the generated image container
var generatedImageContainer = document.getElementById("generated-image-container");
// Get the generate button
var generateButton = document.querySelector(".uploadbutton");
// Disable the button and apply the disabled style
generateButton.disabled = true;
generateButton.classList.add("disabled-button");
// Change the button text to "Generating..."
generateButton.innerText = "Generating...";
// Hide the generated image
generatedImageContainer.style.display = "none";
// Hide icon and instructions
document.getElementById("icon-container").style.display = "none";
document.getElementById("instructions").style.display = "none";
// Display loader
document.getElementById("loader").style.display = "block";
// Make an AJAX request to update the generated image
fetch("/generate", {
method: "POST",
body: new URLSearchParams({
n_samples: document.querySelector("input[name='n_samples']").value,
}),
})
.then(response => response.json())
.then(data => {
if (data.success) {
// Update the generated image directly
generatedImageContainer.innerHTML = '<img src="data:image/png;base64,' + data.generated_image + '" alt="Generated Image" onclick="openZoomModal(this)">';
// Enable the button, remove the disabled style, and restore the original text
generateButton.disabled = false;
generateButton.classList.remove("disabled-button");
generateButton.innerText = "Generate";
} else {
// Handle error if needed
console.error("Image generation failed");
}
// Hide loader after updating
document.getElementById("loader").style.display = "none";
// Show the generated image
generatedImageContainer.style.display = "block";
})
.catch(error => {
// Handle error if needed
console.error("Error:", error);
document.getElementById("loader").style.display = "none";
// Show the generated image even in case of an error
generatedImageContainer.style.display = "block";
// Enable the button, remove the disabled style, and restore the original text
generateButton.disabled = false;
generateButton.classList.remove("disabled-button");
generateButton.innerText = "Generate";
});
}
// Function to open the zoom modal
function openZoomModal(imageElement) {
var zoomedImage = document.getElementById("zoomedImage");
zoomedImage.src = imageElement.src;
document.getElementById("zoomModal").style.display = "flex";
}
// Function to close the zoom modal
function closeZoomModal() {
document.getElementById("zoomModal").style.display = "none";
}
</script>
<!-- Include JavaScript resources -->
<script src="/static/js/jquery.1.8.3.min.js"></script>
<script src="/static/js/wow.min.js"></script>
<script src="/static/js/featherlight.min.js"></script>
<script src="/static/js/featherlight.gallery.min.js"></script>
<script src="/static/js/jquery.enllax.min.js"></script>
<script src="/static/js/jquery.scrollUp.min.js"></script>
<script src="/static/js/jquery.easing.min.js"></script>
<script src="/static/static/js/jquery.stickyNavbar.min.js"></script>
<script src="/static/js/jquery.waypoints.min.js"></script>
<script src="/static/js/images-loaded.min.js"></script>
<script src="/static/js/lightbox.min.js"></script>
<script src="/static/js/site.js"></script>
</body>
</html> |