Skip to content

Commit

Permalink
Merge pull request #188 from sh4rkman/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
sh4rkman authored Aug 18, 2024
2 parents f0d3643 + 6a73feb commit b5d8ec3
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 14 deletions.
22 changes: 11 additions & 11 deletions config/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,39 +89,39 @@ module.exports = {
},
{
"src": "./src/img/github/desktop_ui_1.webp",
"sizes": "799x553",
"sizes": "800x553",
"type": "image/webp",
"form_factor": "wide",
"label": "Map Mode"
},
{
"src": "./src/img/github/desktop_ui_0.webp",
"sizes": "791x547",
"type": "image/webp",
"form_factor": "wide",
"label": "Legacy Mode"
},
{
"src": "./src/img/github/desktop_ui_2.webp",
"sizes": "786x544",
"sizes": "800x553",
"type": "image/webp",
"form_factor": "wide",
"label": "Topographic maps"
},
{
"src": "./src/img/github/desktop_ui_3.webp",
"sizes": "799x553",
"sizes": "800x553",
"type": "image/webp",
"form_factor": "wide",
"label": "Weapon Stats"
},
{
"src": "./src/img/github/desktop_ui_4.webp",
"sizes": "799x553",
"sizes": "800x553",
"type": "image/webp",
"form_factor": "wide",
"label": "Target Stats"
},
{
"src": "./src/img/github/desktop_ui_0.webp",
"sizes": "800x553",
"type": "image/webp",
"form_factor": "wide",
"label": "Legacy Mode"
},
]
}),
new workbox.GenerateSW({
Expand Down
Binary file modified src/img/github/desktop_ui_0.webp
Binary file not shown.
Binary file modified src/img/github/desktop_ui_1.webp
Binary file not shown.
Binary file modified src/img/github/desktop_ui_2.webp
Binary file not shown.
Binary file modified src/img/github/desktop_ui_3.webp
Binary file not shown.
Binary file modified src/img/github/desktop_ui_4.webp
Binary file not shown.
4 changes: 1 addition & 3 deletions src/js/animations.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ export function animateCSS($element, animation, prefix = "animate__") {
return new Promise((resolve) => {
const animationName = `${prefix}${animation}`;

// Assuming $element is a jQuery object, you can add and remove classes like this
$element.addClass(`${prefix}animated ${animationName}`);

function handleAnimationEnd(event) {
event.stopPropagation();

// Remove the classes from the jQuery object
event.stopPropagation();
$element.removeClass(`${prefix}animated ${animationName}`);
resolve("Animation ended");
}
Expand Down

0 comments on commit b5d8ec3

Please sign in to comment.