Skip to content

Commit

Permalink
CONCD-985 still trying to pass precommit checks
Browse files Browse the repository at this point in the history
  • Loading branch information
rasarkar committed Jan 23, 2025
1 parent 67733fa commit 589b722
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions concordia/static/js/src/homepage-carousel.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* global $ */

import * as bootstrap from 'https://cdn.skypack.dev/bootstrap@5.3.0/dist/js/bootstrap.esm.js';
import {Carousel} from '/static/bootstrap/dist/js/bootstrap.esm.js';

// initialization
var carouselElement = document.getElementById('homepage-carousel');
var carousel = new bootstrap.Carousel(carouselElement, {
var carousel = new Carousel(carouselElement, {
interval: 5000,
pause: false,
});
Expand Down
8 changes: 8 additions & 0 deletions concordia/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
{% block title %}Home{% endblock title %}

{% block head_content %}
<script type="importmap">
{
"imports": {
"@popperjs/core": "{% static 'popper.js/dist/popper.min.js' %}",
"bootstrap": "{% static 'bootstrap/dist/js/bootstrap.esm.js' %}"
}
}
</script>
<script type="module" src="{% static 'js/homepage-carousel.js' %}"></script>
{% endblock head_content %}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"js-cookie": "^2.2.1",
"openseadragon": "^2.4.2",
"openseadragon-filtering": "^1.0.0",
"popper.js": "^1.16.1",
"@popperjs/core": "^2.11.8",
"prettier": "^2.8.8",
"redom": "^3.27.1",
"remarkable": "^2.0.1",
Expand Down

0 comments on commit 589b722

Please sign in to comment.