Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Carrousel adi 24 #1679

Open
wants to merge 146 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
08cf7fe
test adrian
exigibil Oct 30, 2023
a827359
Merge pull request #1 from exigibil/project_setup
exigibil Oct 30, 2023
07a936f
add html
exigibil Oct 31, 2023
f10acc3
Victor a testat setupul
VictorEvozon Oct 31, 2023
94072f2
Topa Adrian Test
exigibil Oct 31, 2023
9a4f317
Victor a testat setupul
VictorEvozon Oct 31, 2023
cfbd68e
Merge pull request #3 from exigibil/Test-update-branch
Achilesseb Oct 31, 2023
2bed106
Merge pull request #2 from exigibil/Project_Setup
exigibil Oct 31, 2023
ac2cf82
test zsuzsi
czke33 Nov 1, 2023
5c4c990
test zsuzsi
czke33 Nov 1, 2023
aff7c20
footer-html-first-steps
czke33 Nov 1, 2023
0d7a3ce
Merge pull request #4 from exigibil/test-zsuzsi
exigibil Nov 1, 2023
fc12423
footer
czke33 Nov 1, 2023
0ff5d06
test-1
IStefoi Nov 1, 2023
7e615b4
Merge pull request #5 from exigibil/Iosif-test-1
exigibil Nov 1, 2023
15de364
test-daria
DariaMatis Nov 1, 2023
9d0280e
add sccss link to footet.hmlt
czke33 Nov 1, 2023
3369b4d
Merge pull request #7 from exigibil/test-daria
exigibil Nov 1, 2023
17906d8
Update _footer.scss
czke33 Nov 1, 2023
47768e9
Update _footer.scss
czke33 Nov 1, 2023
0a82c7b
add footer container
czke33 Nov 2, 2023
51759d7
add some html parts to footer
czke33 Nov 2, 2023
72dfc44
footer scss start
czke33 Nov 2, 2023
4acb8d9
add some style
czke33 Nov 2, 2023
d84d763
footer style done
czke33 Nov 2, 2023
00bc80e
done
czke33 Nov 2, 2023
7beafff
.
DariaMatis Nov 2, 2023
440a46c
under line id add
czke33 Nov 2, 2023
01f55cf
green and sale section
DariaMatis Nov 2, 2023
0632dee
test
cristinamacicasan Nov 2, 2023
040f402
Merge pull request #10 from exigibil/test/cristina
exigibil Nov 2, 2023
54dea59
add some new style to footer
czke33 Nov 2, 2023
184694d
npm install
DariaMatis Nov 2, 2023
278b74d
npm-start-again
DariaMatis Nov 2, 2023
8d9d7f5
Test Maria
mcmariaaa11 Nov 3, 2023
91fdf12
Merge pull request #12 from exigibil/Maria-test
exigibil Nov 3, 2023
530cee1
anca-test
GheorgheAnca Nov 3, 2023
f9f3db4
Merge pull request #13 from exigibil/Anca-test
exigibil Nov 3, 2023
b106e6b
add html,scss,gif
cristinamacicasan Nov 3, 2023
b055c1d
Catalog section first commit
mcmariaaa11 Nov 4, 2023
085a99a
commit catalog section
mcmariaaa11 Nov 4, 2023
3cd4297
Merge pull request #14 from exigibil/about-us/cristina
exigibil Nov 4, 2023
de179c9
.
DariaMatis Nov 4, 2023
363a81b
changes-in-scss
DariaMatis Nov 4, 2023
f2507c5
minus
DariaMatis Nov 5, 2023
ace6ea9
update descktop
cristinamacicasan Nov 5, 2023
9570a16
version-for-all-almost-done
DariaMatis Nov 5, 2023
ab54c3b
finish-padding
cristinamacicasan Nov 5, 2023
b04aab3
add footer svg to html
czke33 Nov 6, 2023
38efaf7
Merge branch 'develop' of https://github.com/exigibil/parcel-project-…
czke33 Nov 6, 2023
868e814
finalizare footer
czke33 Nov 6, 2023
683ae4b
border color
czke33 Nov 6, 2023
ab93cf2
Merge pull request #8 from exigibil/footer1
exigibil Nov 6, 2023
0b867ac
Add images
mcmariaaa11 Nov 6, 2023
2c95518
update
cristinamacicasan Nov 6, 2023
c592f6f
Add content for catalog section
mcmariaaa11 Nov 6, 2023
18c58ed
Add styles to my content
mcmariaaa11 Nov 6, 2023
8f781fb
Merge branch 'develop' of https://github.com/exigibil/parcel-project-…
cristinamacicasan Nov 6, 2023
2183188
ok update
exigibil Nov 6, 2023
2f06be2
updape
DariaMatis Nov 6, 2023
afec9c3
Merge branch 'develop' of https://github.com/exigibil/parcel-project-…
DariaMatis Nov 6, 2023
d7858fe
push
DariaMatis Nov 6, 2023
42b438e
Merge pull request #9 from exigibil/green-sale-section
exigibil Nov 6, 2023
e5b8335
add include
exigibil Nov 6, 2023
a28022c
Merge branch 'develop' of https://github.com/exigibil/parcel-project-…
mcmariaaa11 Nov 6, 2023
19acf04
Merge pull request #15 from exigibil/catalog-section
exigibil Nov 6, 2023
40a7958
start-project
IStefoi Nov 6, 2023
f1a2963
Merge branch 'develop' of https://github.com/exigibil/parcel-project-…
IStefoi Nov 6, 2023
c9c4ff1
start
IStefoi Nov 6, 2023
da6ca44
start 1
IStefoi Nov 7, 2023
9ceb2d5
Add padding to section
mcmariaaa11 Nov 7, 2023
183aa2e
Add styles for button
mcmariaaa11 Nov 7, 2023
15e3bfa
Merge branch 'about-us/cristina' of github.com:exigibil/parcel-projec…
VictorEvozon Nov 7, 2023
6f3ec2e
Add class for list
mcmariaaa11 Nov 7, 2023
1160925
Add styles for tablet
mcmariaaa11 Nov 7, 2023
25e9c08
Fix:Fix styles on desktop and mobile
VictorEvozon Nov 7, 2023
eb323e5
Merge pull request #16 from exigibil/about-us/cristina
Achilesseb Nov 7, 2023
1744902
add html and scss
IStefoi Nov 7, 2023
c3f3fd4
resolve conflict
IStefoi Nov 7, 2023
e3b7705
Add images in html for laptop
mcmariaaa11 Nov 7, 2023
ec48388
Add styles for laptop
mcmariaaa11 Nov 7, 2023
aee0ef2
FIX: Refactored layout on about use for mobile/desktop
VictorEvozon Nov 7, 2023
938b8a1
Merge pull request #21 from exigibil/FIX_About-us
Achilesseb Nov 7, 2023
2b45cb6
Merge branch 'develop' into welcome-section
exigibil Nov 7, 2023
a49f6be
Merge pull request #20 from exigibil/welcome-section
exigibil Nov 7, 2023
fa5d779
Merge pull request #18 from exigibil/catalog-section
exigibil Nov 7, 2023
3366151
index.html corect
exigibil Nov 7, 2023
e906992
Fix: Fixed mobile/ desktop styles for sales/ new watches section
VictorEvozon Nov 8, 2023
95613c7
Fix styles for sales/ new watches
VictorEvozon Nov 8, 2023
2d6d607
Merge pull request #22 from exigibil/Sale_Newwatches_Section
exigibil Nov 9, 2023
2ce5743
create nav html
exigibil Nov 9, 2023
6cb49da
nav bar
exigibil Nov 10, 2023
df35f9c
menu mobile
exigibil Nov 10, 2023
dd71233
js menu
exigibil Nov 10, 2023
ade3dd4
nothing
exigibil Nov 10, 2023
5a5f483
Merge pull request #23 from exigibil/NavBar-Section-Adrian
exigibil Nov 10, 2023
db8d5eb
Update _about-us.scss
cristinamacicasan Nov 11, 2023
074bf9e
js mobile menu
exigibil Nov 11, 2023
66de607
Deleted the old sections for catalog
mcmariaaa11 Nov 11, 2023
cdf3fb6
Add code for catalog section second time
mcmariaaa11 Nov 11, 2023
6de45cc
finish nav bar mobile
exigibil Nov 11, 2023
1ded51c
Merge pull request #27 from exigibil/NavBar-Section-Adrian
exigibil Nov 11, 2023
39a4172
Merge pull request #25 from exigibil/about-us-second
exigibil Nov 11, 2023
c032b97
Merge pull request #26 from exigibil/catalog-section-2
exigibil Nov 11, 2023
2b0cd8c
welcom page
exigibil Nov 11, 2023
41be586
carousel
exigibil Nov 12, 2023
fa0ae9b
another try for desktop
cristinamacicasan Nov 13, 2023
7d14b4f
Merge pull request #28 from exigibil/new-about-us
exigibil Nov 13, 2023
871086d
Merge branch 'develop' of https://github.com/exigibil/parcel-project-…
exigibil Nov 13, 2023
76e7a04
welcome section css + about
exigibil Nov 14, 2023
69e5f2b
Merge pull request #29 from exigibil/welcome-section-adrian
exigibil Nov 14, 2023
dccafe4
modal new
exigibil Dec 7, 2023
93ecf30
finish modal
exigibil Dec 7, 2023
23d102f
Merge pull request #30 from exigibil/moda/ADI
exigibil Dec 7, 2023
19c9aef
modal update
exigibil Dec 7, 2023
9f3ae8a
finish-last
cristinamacicasan Dec 13, 2023
8a4008b
Merge pull request #31 from exigibil/about-us-last
exigibil Dec 13, 2023
47461a3
finish green and bronze
cristinamacicasan Dec 14, 2023
1343af6
finish green and bronze
cristinamacicasan Dec 14, 2023
b402f03
Merge pull request #32 from exigibil/green-zone-last
exigibil Dec 16, 2023
056d887
add new pic format png
cristinamacicasan Dec 26, 2023
b288ed7
add new class
cristinamacicasan Dec 26, 2023
a732b94
add some css styles
cristinamacicasan Dec 26, 2023
1854309
wellcome
exigibil Dec 26, 2023
85c1778
add some pic
cristinamacicasan Dec 27, 2023
a0c5721
add some style
cristinamacicasan Dec 27, 2023
412239c
Merge pull request #33 from exigibil/catalog-finish
exigibil Dec 27, 2023
19d7249
add JS
cristinamacicasan Dec 28, 2023
c0ef141
finish
cristinamacicasan Dec 28, 2023
7e7d8a3
add sales-cris
cristinamacicasan Dec 28, 2023
b3383ce
add sales-cris css
cristinamacicasan Dec 28, 2023
5f36f56
add sales
cristinamacicasan Dec 28, 2023
7bcd235
add css
cristinamacicasan Dec 28, 2023
8276c9d
css
cristinamacicasan Dec 28, 2023
8347a0e
Merge pull request #36 from exigibil/sales-cris
exigibil Dec 29, 2023
b068073
Merge pull request #35 from exigibil/welcome-finish
exigibil Dec 29, 2023
a71d1bf
move js script to index
exigibil Dec 29, 2023
107dc88
fishish modal
exigibil Dec 29, 2023
176bb3f
fishish modal
exigibil Dec 29, 2023
c3737eb
finish modal
exigibil Dec 29, 2023
4ade579
Merge pull request #37 from exigibil/last-modal-carousel
exigibil Dec 29, 2023
a9e9eec
finish sales container Adi-Cris
cristinamacicasan Feb 12, 2024
2189a2b
Merge pull request #39 from exigibil/sale-cris
exigibil Feb 12, 2024
e2cb918
Update package.json
exigibil Feb 12, 2024
42d308a
fishi carousele
exigibil Feb 19, 2024
334e66a
update links
exigibil Feb 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .parcelrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
"parcel-reporter-clean-dist"
]
}

8 changes: 8 additions & 0 deletions assets/test
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Victor Prisacariu Test
Topa Adrian Test
Molnar Aczel Zsuzsanna
Stefoi Iosif
Matis Daria
Cristina Macicasan
Manea Maria
Gheorghe Anca
1 change: 1 addition & 0 deletions assets/victor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Victor a testat ceva.
51 changes: 33 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "parcel-project-template",
"version": "2.0.0",
"description": "",
"homepage": "https://goitacademy.github.io/parcel-project-template",
"homepage": "https://exigibil.github.io/parcel-project-team8/",
"scripts": {
"start": "parcel src/*.html",
"build": "parcel build src/*.html --public-url /parcel-project-template/"
"build": "parcel build src/*.html --public-url /parcel-project-team8/"
},
"repository": {
"type": "git",
Expand All @@ -18,6 +18,7 @@
"url": "https://github.com/goitacademy/parcel-project-template/issues"
},
"dependencies": {
"body-scroll-lock": "^4.0.0-beta.0",
"modern-normalize": "^1.1.0"
},
"devDependencies": {
Expand Down
64 changes: 64 additions & 0 deletions src/carousel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
$(function () {
new Slider({
images: '.slider-1 img',
btnPrev: '.slider-1 .buttons .prev',
btnNext: '.slider-1 .buttons .next',
auto: false,
});

new Slider({
images: '.slider-2 img',
btnPrev: '.slider-2 .buttons .prev',
btnNext: '.slider-2 .buttons .next',
auto: true,
rate: 2000,
});
});

function Slider(obj) {
this.images = $(obj.images);
this.auto = obj.auto;
this.btnPrev = obj.btnPrev;
this.btnNext = obj.btnNext;
this.rate = obj.rate || 1000;

var i = 0;
var slider = this;

// The "Previous" button: to remove the class .shown, to show the previous image and to add the .shown class
this.prev = function () {
slider.images.eq(i).removeClass('shown');
i--;

if (i < 0) {
i = slider.images.length - 1;
}

slider.images.eq(i).addClass('shown');
};

// The "Next" button: to remove the class .shown, to show the next image and to add the .shown class
this.next = function () {
slider.images.eq(i).removeClass('shown');
i++;

if (i >= slider.images.length) {
i = 0;
}

slider.images.eq(i).addClass('shown');
};

// To add next and prev functions when clicking on the corresponding buttons
$(slider.btnPrev).on('click', function () {
slider.prev();
});
$(slider.btnNext).on('click', function () {
slider.next();
});

// For the automatic slider: this method calls the next function at the set rate
if (slider.auto) {
setInterval(slider.next, slider.rate);
}
}
45 changes: 45 additions & 0 deletions src/icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/Rectangle 8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/Rectangle 9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/arm-watches_d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/arm-watches_m.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/arm-watches_t.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/armani-exchange-watch.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/avondale-watch.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/big-plan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/catalog-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/catalog-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/catalog-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/catalog-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/catalog-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/catalog-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/catalog-8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/catalog-9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/citizen-watch.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/diver-300m-co-axial.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/diver-300m-master.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/diver-300m.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/diver-master-watch.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/editorconfig.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/green-watch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/greenlane-watch.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/hand-green-desktop-2x.jpg
Binary file added src/images/hand-green-desktop.jpg
Binary file added src/images/hand-green-mobile-2x.jpg
Binary file added src/images/hand-green-mobile.jpg
Binary file added src/images/hand-green-table-2x.jpg
Binary file added src/images/hand-green-tableta.jpg
Binary file added src/images/image 64.jpg
Binary file added src/images/image 65.jpg
10 changes: 10 additions & 0 deletions src/images/image 65.svg

Large diffs are not rendered by default.

Binary file added src/images/image 66.jpg
10 changes: 10 additions & 0 deletions src/images/image 66.svg

Large diffs are not rendered by default.

Binary file added src/images/image 67-big.jpg
Binary file added src/images/image 67.jpg
10 changes: 10 additions & 0 deletions src/images/image 67.svg

Large diffs are not rendered by default.

Binary file added src/images/malawi-watch.jpg
Binary file added src/images/man-s-hand.png
Binary file added src/images/minus.png
Binary file added src/images/modalwatch.png
Binary file added src/images/nou-catalog.png
Binary file added src/images/omaega-watch.png
Binary file added src/images/omega-black-watch.png
Binary file added src/images/omega-blau-watch.png
Binary file added src/images/representation-1.png
10 changes: 10 additions & 0 deletions src/images/representation-1.svg

Large diffs are not rendered by default.

Binary file added src/images/representation-2.png
Binary file added src/images/representation-3.png
Binary file added src/images/representation-4.png
Binary file added src/images/squardrc-watch.jpg
Binary file added src/images/taman-watch.jpg
34 changes: 34 additions & 0 deletions src/images/team8svg.svg
Binary file added src/images/timex-watch.png
Binary file added src/images/tube-watch.jpg
Binary file added src/images/watch--green-mobile-2x.jpg
Binary file added src/images/watch-green-desktop-2x.jpg
Binary file added src/images/watch-green-desktop.jpg
Binary file added src/images/watch-green-mobile.jpg
Binary file added src/images/watch-green-tablet-2x.jpg
Binary file added src/images/watch-green-tableta.jpg
Binary file added src/images/watch.gif
Binary file added src/images/withe-img.png
48 changes: 44 additions & 4 deletions src/index.html
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,14 +1,54 @@
<!DOCTYPE html>
<html lang="ru">
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Page title</title>
<title>The Watch Spot</title>
<meta name="description" content="Discover a wide range of high-quality watches at The Watch Spot. Explore our collection, learn about us, and enjoy exclusive sales.">

<meta property="og:title" content="The Watch Spot - Finest Watches Online">
<meta property="og:description" content="Discover a wide range of high-quality watches at The Watch Spot. Explore our collection, learn about us, and enjoy exclusive sales.">
<meta property="og:url" content="https://exigibil.github.io/parcel-project-team8/">
<meta name="twitter:title" content="The Watch Spot - Finest Watches Online">
<meta name="twitter:description" content="Discover a wide range of high-quality watches at The Watch Spot. Explore our collection, learn about us, and enjoy exclusive sales.">
<meta name="twitter:card" content="summary_large_image">

<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Epilogue:wght@300;600&family=Open+Sans:wght@400;600&family=Raleway:wght@700&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/modern-normalize/1.0.0/modern-normalize.min.css"
/>

<link rel="stylesheet" href="./sass/index.scss" />
<link rel="stylesheet" href="./sass/_about-us.scss" />
<link rel="stylesheet" href="./sass/_navbar.scss" />
<script type="module" src="./index.js"></script>
</head>

<body>
<!-- ❗️❗️❗️ Add partials like so for every page -->
<include src="./partials/example.html"></include>
<include src="./partials/navbar.html"></include>
<include src="./partials/welcom.html"></include>
<include src="./partials/about-us.html"></include>
<include src="partials/catalog-section-2.html"></include>
<include src="./partials/green-sale.html"></include>
<include src="./partials/footer.html"></include>


<script
defer
src="https://cdnjs.cloudflare.com/ajax/libs/body-scroll-lock/3.1.5/bodyScrollLock.min.js"
integrity="sha512-HowizSDbQl7UPEAsPnvJHlQsnBmU2YMrv7KkTBulTLEGz9chfBoWYyZJL+MUO6p/yBuuMO/8jI7O29YRZ2uBlA=="
crossorigin="anonymous"
></script>
<script src="/src/mobile-menu.js"></script>
<script src="/src/modal.js"></script>
<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
<script defer src="./carousel.js"></script>
<script defer src="./newcarrousel.js"></script>
</body>
</html>
21 changes: 21 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

let currentSlide = 0;
const slides = document.querySelectorAll(".image");
const imageCountElement = document.getElementById("imageCount");

function showSlide(index) {
slides[currentSlide].style.transform = "translateX(-100%)";
currentSlide = (index + slides.length) % slides.length;
slides[currentSlide].style.transform = "translateX(0)";
updateIndicator();
}

function updateIndicator() {
imageCountElement.textContent = `Imagine ${currentSlide + 1} din ${slides.length}`;
}

function plusSlides(n) {
showSlide(currentSlide + n);
}

updateIndicator();
Loading