As a beginner in the world of JQuery, I am currently working on creating a customizable carousel where users can select pictures to add to the carousel with just one click.
On the left side of the page, there is a selection of images to choose from, while the carousel itself is displayed on the right side. Below is an example of the code used for the list of images:
<div class="pics">
<div class="col-sm-4 iu">
<img src="img/iu.png" alt="IU" class="img-thumbnail" style="width:150px; height:150px;">
</div>
<div class="col-sm-4 hyuna">
<img src="img/hyuna.png" alt="hyuna" class="img-thumbnail" style="width:150px; height:150px;">
</div>
Here is the code for the carousel slides:
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="img/minah.png" alt="minah" />
<div class="carousel-caption">
<h1>This is Minah.</h1>
</div>
</div>
<div class="item">
<img src="img/juwoo.png" alt="juwoo" />
<div class="carousel-caption">
<h1>This is Juwoo.</h1>
</div>
Upon loading the page, a default carousel is already present and it's designed to clear out completely when an image from the list is clicked.