Есть сайт, написанный на html c библиотекой bootstrap 5. Предполагается что на нем будет блок с портфолио. В этом блоке будут в горизонтали 3 и в вертикале 2 прямоугольные картинки с закругленными краями, при наведении на которые будет эффект блюра и слегка увеличение картинки и слева внизу на картинке будет надпись с любым названием, например: "курс 1", "курс 2" и т.д. Так же предполагается, что при нажатии на любую из картинок будет выскакивать модальное окно, в которой будет отображаться нужная нам html страница со scorm курсом. Важно что бы была кнопка закрытия этого модального окна.
Мне сказали, что только ты можешь написать код этого блока.
Assistant
User
Ничего не работает
Assistant
User
Не отображается картинка
Assistant
Если картинка не отображается, возможны несколько причин:
Неверный путь к файлу: убедитесь, что путь к изображению верный и изображение доступно в этом пути.
Изображение отсутствует на сервере: проверьте, был ли файл изображения загружен на сервер или в нужную директорию.
Ошибка в названии файла: убедитесь, что путь к изображению в атрибуте src в точности совпадает с именем и расширением файла на сервере, включая регистр символов.
В примере HTML выше нужно заменить "курс1.jpg" на путь к вашему реальному изображению. Например:
Чтобы создать блок портфолио с описанными эффектами и функциональностью, я предоставлю вам исходный код. Ниже приведены инструкции и коды для вставки на страницу с использованием Bootstrap 5 и немного дополнительного CSS для стилей и JavaScript для управления модальным окном.
CSS:
CSS стили уже встроены в пример выше в теге <style>. Это минимальный набор для создания закругленных картинок с эффектом блюра и увеличением при наведении курсора.
JavaScript:
В примере используется Bootstrap для управления модальным окном, поэтому дополнительный JavaScript код не требуется. Всё работает благодаря атрибутам data-bs-toggle и data-bs-target.
Пожалуйста, обратите внимание, что вам необходимо заменить path_to_your_image.jpg и path_to_your_SCORM_course.html на фактические пути к вашим изображениям и HTML страницам SCORM курсов соответственно. Вы также должны будете дублировать блоки .portfolio-item для каждого элемента в портфолио, устанавливая для каждого элемента своё уникальное data-bs-target и соответствующее модальное окно.
Этот код создаст блок портфолио на вашей странице и модальное окно, которое открывается при клике на каждый элемент портфолио.
Прошу прощения за неудобства. Давайте пошагово проверим, что все части кода на месте и корректны. Убедитесь, что вы:
Правильно вставили код HTML, CSS и привязали JavaScript библиотеки.
Замените "path_to_your_image.jpg" и "path_to_your_SCORM_course.html" на ваши реальные пути.
Убедитесь, что у вас есть Bootstrap 5 CSS и JS подключенные к вашей странице.
Убедитесь, что ваш браузер не блокирует попапы и скрипты.
Давайте попробуем упрощенный пример, который должен работать.
Убедитесь, что все эти пути к картинке курс1.jpg, и если используете iFrame, правильно указаны. IMapper указывается фактический URL к экземпляру SCORM.
Если что-то все равно не работает, попробуйте уточнить, что именно не функционирует, чтобы я мог вам лучше помочь. Проверьте также консоль браузера (нажмите F12 и перейдите в вкладку "Console") на наличие ошибок JavaScript, которые могут дать более конкретное представление о том, что идет не так.
В этом примере предполагается, что картинка находится в папке images и имеет имя course1.jpg. Убедитесь, что такая папка существует и в ней есть картинка с таким именем.
Если проблема не в этом, возможно, у вас проблемы с правами доступа к файлу изображения на вашем сервере. Проверьте права доступа и убедитесь, что веб-сервер может их читать.
Если у вас все ещё возникают сложности, приведите, пожалуйста, более детальное описание проблемы или конкретные сообщения об ошибках, которые вы видите, чтобы я мог предоставить более точные рекомендации.
Как можно в этом коде
code
</div>
</section>
</div>
</div>
<!---header-and-banner-section-->
<!-- portfolio section -->
<section class="w-100 float-left portfolio-con padding-top" id="Portfolio">
<div class="container">
<div class="generic-title text-center">
<h2 class="mb-0 text-white">Мои работы с курсами</h2>
</div>
</div>
</section>
<!-- portfolio section -->
<!-- portfolio section -->
<section class="w-100 float-left portfolio-body-con">
<div class="container">
<div class="portfolio-img-con position-relative w-100 float-left wow fadeInUp" >
<div class="filterDiv cars position-relative">
<a href="/index.html" data-toggle="modal" data-target="#modalWPWAF">
<div class="portfolio-img position-relative">
<figure>
<img src="assets/image/portfolio-img1.png" alt="portfolio-img1" class="img-fluid">
</figure>
</div>
</a>
<div class="portfolio-img-content text-left">
<div class="portfolio-img-title d-inline-block">
<h4>Application UI Design</h4>
<p>Dolar repellendus temporibus...</p>
</div>
<a href="#" class="float-lg-right" data-toggle="modal" data-target="#modalWPWAF-icon">
<i class="fas fa-arrow-right d-flex align-items-center justify-content-center"></i>
</a>
</div>
</div>
<div class="filterDiv colors fruits position-relative">
<a href="#" data-toggle="modal" data-target="#modalporfolio2">
<div class="portfolio-img position-relative">
<figure>
<img src="assets/image/portfolio-img2.png" alt="portfolio-img1" class="img-fluid">
</figure>
</div>
</a>
<div class="portfolio-img-content text-left">
<div class="portfolio-img-title d-inline-block">
<h4 >Furni furniture UI Design</h4>
<p >Dolar repellendus temporibus...</p>
</div>
<a href="#" class="float-lg-right" data-toggle="modal" data-target="#modalporfolio2-icon">
<i class="fas fa-arrow-right d-flex align-items-center justify-content-center"></i>
</a>
</div>
</div>
<div class="filterDiv cars position-relative">
<a href="#" data-toggle="modal" data-target="#modalporfolio3">
<div class="portfolio-img position-relative">
<figure>
<img src="assets/image/portfolio-img3.png" alt="portfolio-img1" class="img-fluid">
</figure>
</div>
</a>
<div class="portfolio-img-content text-left">
<div class="portfolio-img-title d-inline-block">
<h4 >Mobile UI Design</h4>
<p >Dolar repellendus temporibus...</p>
</div>
<a href="#" class="float-lg-right" data-toggle="modal" data-target="#modalporfolio3-icon"><i class="fas fa-arrow-right d-flex align-items-center justify-content-center"></i></a>
</div>
</div>
<div class="filterDiv colors position-relative">
<a href="#" data-toggle="modal" data-target="#modalporfolio4">
<div class="portfolio-img position-relative">
<figure>
<img src="assets/image/portfolio-img4.png" alt="portfolio-img1" class="img-fluid">
</figure>
</div>
</a>
<div class="portfolio-img-content text-left">
<div class="portfolio-img-title d-inline-block">
<h4 >Businesscard UI Design</h4>
<p >Dolar repellendus temporibus...</p>
</div>
<a href="#" class="float-lg-right" data-toggle="modal" data-target="#modalporfolio4-icon"><i class="fas fa-arrow-right d-flex align-items-center justify-content-center"></i></a>
</div>
</div>
<div class="filterDiv cars animals position-relative">
<a href="#" data-toggle="modal" data-target="#modalporfolio5">
<div class="portfolio-img position-relative">
<figure>
<img src="assets/image/portfolio-img5.png" alt="portfolio-img1" class="img-fluid">
</figure>
</div>
</a>
<div class="portfolio-img-content text-left">
<div class="portfolio-img-title d-inline-block">
<h4 >Real estate UI Design</h4>
<p >Dolar repellendus temporibus...</p>
</div>
<a href="#" class="float-lg-right" data-toggle="modal" data-target="#modalporfolio5-icon"><i class="fas fa-arrow-right d-flex align-items-center justify-content-center"></i></a>
</div>
</div>
</div>
</div>
</section>
<!-- portfolio section -->
<!-- service section -->
<section class="w-100 float-left service-con padding-top padding-bottom position-relative" id="service-con" >
<div class="container">
<div class="service-inner-con position-relative">
<div class="generic-title text-center">
<h6>My Expertise</h6>
<h2 class="mb-0">Provide Wide Range of<br>
Digital Services
</h2>
</div>
<div class="service-box wow fadeInUp">
<div class="row">
<div class="col-lg-6 col-md-6">
<div class="service-box-item">
<figure class="mb-0">
<img src="assets/image/service-icon1.png" alt="service-icon" class="img-fluid">
</figure>
<div class="service-box-item-content">
<h4>Ui/Ux Design</h4>
<p>Dolor repellendus temporibus autem
quibusdam officiis debitis rerum neces
aibus minima veniam.
</p>
<a href="#" data-toggle="modal" data-target="#Ui-Design">Read More</a>
</div>
</div>
</div>
<div class="col-lg-6 col-md-6">
<div class="service-box-item">
<figure class="mb-0">
<img src="assets/image/service-icon2.png" alt="service-icon" class="img-fluid">
</figure>
<div class="service-box-item-content">
<h4>Web Design</h4>
<p>Dolor repellendus temporibus autem
quibusdam officiis debitis rerum neces
aibus minima veniam.
</p>
<a href="#" data-toggle="modal" data-target="#web-design">Read More</a>
</div>
</div>
</div>
</div>
<div class="row mb-0">
<div class="col-lg-6 col-md-6">
<div class="service-box-item">
<figure class="mb-0">
<img src="assets/image/service-icon3.png" alt="service-icon" class="img-fluid">
</figure>
<div class="service-box-item-content">
<h4>Web Development</h4>
<p>Dolor repellendus temporibus autem
quibusdam officiis debitis rerum neces
aibus minima veniam.
</p>
<a href="#" data-toggle="modal" data-target="#web-development">Read More</a>
</div>
</div>
</div>
<div class="col-lg-6 col-md-6">
<div class="service-box-item mb-0">
<figure class="mb-0">
<img src="assets/image/service-icon4.png" alt="service-icon" class="img-fluid">
</figure>
<div class="service-box-item-content">
<h4>App Development</h4>
<p>Dolor repellendus temporibus autem
quibusdam officiis debitis rerum neces
aibus minima veniam.
</p>
<a href="#" data-toggle="modal" data-target="#app-development">Read More</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- service section -->
<!-- weight footer section -->
<div class="w-100 float-left weight-footer-con position-relative">
<div class="container">
<div class="weight-footer-content text-center wow fadeInUp" >
<figure class="">
<img src="assets/image/footer-logo.png" alt="footer-logo" class="img-fluid">
</figure>
<div class="footer-navbar">
<ul class="list-unstyled">
<li class="d-inline-block border-left-0 pl-0"><a href="#home">Home</a></li>
<li class="d-inline-block"><a href="#about-con">About</a></li>
<li class="d-inline-block"><a href="#service-con">Services</a></li>
<li class="d-inline-block"><a href="#Portfolio">Portfolio</a></li>
<li class="d-inline-block"><a href="#testimonials">Blog</a></li>
<li class="d-inline-block pr-0"><a href="#Contact">Contact</a></li>
</ul>
</div>
<div class="footer-social-icon">
<ul class="mb-0">
<li class="d-inline-block">
<a href="https://www.behance.net/"><i class="fab fa-behance d-flex align-items-center justify-content-center"></i></a>
</li>
<li class="d-inline-block">
<a href="https://dribbble.com/"><i class="fab fa-dribbble d-flex align-items-center justify-content-center"></i></a>
</li>
<li class="d-inline-block">
<a href="https://www.linkedin.com/"><i class="fab fa-linkedin-in d-flex align-items-center justify-content-center"></i></a>
</li>
</ul>
</div>
</div>
<div class="copy-right-content text-center">
<p class="mb-0">Copyright 2022 FolioFlix.com | All Rights Reserved.</p>
</div>
</div>
</div>
<a id="button"></a>
<div id="modalWPWAF" class="modal fade" tabindex="-1" style="display: none;" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" ><i class="far fa-times"></i></span></button>
</div>
<div class="modal-body service-model-content">
<figure class="mb-0">
<img src="assets/image/portfolio-model-img1.jfif" alt="portfolio-model-img1" class="img-fluid">
</figure>
<h4>Application UI Design</h4>
<p class="mb-md-4 mb-2">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release .</p>
<ul class="list-unstyled model-list mb-md-3 mb-2">
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
</ul>
<p class="mb-0">Lorem Ipsum is simply dummy text of the printing and typesetting industry. when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
</div>
</div>
<div id="modalWPWAF-icon" class="modal fade" tabindex="-1" style="display: none;" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" ><i class="far fa-times"></i></span></button>
</div>
<div class="modal-body service-model-content">
<figure class="mb-0">
<img src="assets/image/portfolio-model-img1.jfif" alt="portfolio-model-img1" class="img-fluid">
</figure>
<h4>Application UI Design</h4>
<p class="mb-md-4 mb-2">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release .</p>
<ul class="list-unstyled model-list mb-md-3 mb-2">
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
</ul>
<p class="mb-0">Lorem Ipsum is simply dummy text of the printing and typesetting industry. when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
</div>
</div>
<div id="modalporfolio2" class="modal fade" tabindex="-1" style="display: none;" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" ><i class="far fa-times"></i></span></button>
</div>
<div class="modal-body service-model-content">
<figure class="mb-0">
<img src="assets/image/portfolio-model-img2.jfif" alt="portfolio-model-img1" class="img-fluid">
</figure>
<h4>Furni furniture UI Design</h4>
<p class="mb-md-4 mb-2">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release .</p>
<ul class="list-unstyled model-list mb-md-3 mb-2">
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
</ul>
<p class="mb-0">Lorem Ipsum is simply dummy text of the printing and typesetting industry. when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
</div>
</div>
<div id="modalporfolio2-icon" class="modal fade" tabindex="-1" style="display: none;" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" ><i class="far fa-times"></i></span></button>
</div>
<div class="modal-body service-model-content">
<figure class="mb-0">
<img src="assets/image/portfolio-model-img2.jfif" alt="portfolio-model-img1" class="img-fluid">
</figure>
<h4>Furni furniture UI Design</h4>
<p class="mb-md-4 mb-2">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release .</p>
<ul class="list-unstyled model-list mb-md-3 mb-2">
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
</ul>
<p class="mb-0">Lorem Ipsum is simply dummy text of the printing and typesetting industry. when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
</div>
</div>
<div id="modalporfolio3" class="modal fade" tabindex="-1" style="display: none;" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" ><i class="far fa-times"></i></span></button>
</div>
<div class="modal-body service-model-content">
<figure class="mb-0">
<img src="assets/image/portfolio-model-img3.jfif" alt="portfolio-model-img1" class="img-fluid">
</figure>
<h4>Mobile UI Design</h4>
<p class="mb-md-4 mb-2">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release .</p>
<ul class="list-unstyled model-list mb-md-3 mb-2">
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
</ul>
<p class="mb-0">Lorem Ipsum is simply dummy text of the printing and typesetting industry. when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
</div>
</div>
<div id="modalporfolio3-icon" class="modal fade" tabindex="-1" style="display: none;" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" ><i class="far fa-times"></i></span></button>
</div>
<div class="modal-body service-model-content">
<figure class="mb-0">
<img src="assets/image/portfolio-model-img3.jfif" alt="portfolio-model-img1" class="img-fluid">
</figure>
<h4>Mobile UI Design</h4>
<p class="mb-md-4 mb-2">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release .</p>
<ul class="list-unstyled model-list mb-md-3 mb-2">
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
</ul>
<p class="mb-0">Lorem Ipsum is simply dummy text of the printing and typesetting industry. when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
</div>
</div>
<div id="modalporfolio4" class="modal fade" tabindex="-1" style="display: none;" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" ><i class="far fa-times"></i></span></button>
</div>
<div class="modal-body service-model-content">
<figure class="mb-0">
<img src="assets/image/portfolio-model-img4.jfif" alt="portfolio-model-img1" class="img-fluid">
</figure>
<h4>Businesscard UI Design</h4>
<p class="mb-md-4 mb-2">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release .</p>
<ul class="list-unstyled model-list mb-md-3 mb-2">
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
</ul>
<p class="mb-0">Lorem Ipsum is simply dummy text of the printing and typesetting industry. when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
</div>
</div>
<div id="modalporfolio4-icon" class="modal fade" tabindex="-1" style="display: none;" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" ><i class="far fa-times"></i></span></button>
</div>
<div class="modal-body service-model-content">
<figure class="mb-0">
<img src="assets/image/portfolio-model-img4.jfif" alt="portfolio-model-img1" class="img-fluid">
</figure>
<h4>Businesscard UI Design</h4>
<p class="mb-md-4 mb-2">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release .</p>
<ul class="list-unstyled model-list mb-md-3 mb-2">
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
</ul>
<p class="mb-0">Lorem Ipsum is simply dummy text of the printing and typesetting industry. when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
</div>
</div>
<div id="modalporfolio5" class="modal fade" tabindex="-1" style="display: none;" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" ><i class="far fa-times"></i></span></button>
</div>
<div class="modal-body service-model-content">
<figure class="mb-0">
<img src="assets/image/portfolio-model-img5.png" alt="portfolio-model-img1" class="img-fluid">
</figure>
<h4>Real estate UI Design</h4>
<p class="mb-4">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release .</p>
<ul class="list-unstyled model-list mb-md-3 mb-2">
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
</ul>
<p class="mb-0">Lorem Ipsum is simply dummy text of the printing and typesetting industry. when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
</div>
</div>
<div id="modalporfolio5-icon" class="modal fade" tabindex="-1" style="display: none;" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" ><i class="far fa-times"></i></span></button>
</div>
<div class="modal-body service-model-content">
<figure class="mb-0">
<img src="assets/image/portfolio-model-img5.jfif" alt="portfolio-model-img1" class="img-fluid">
</figure>
<h4>Real estate UI Design</h4>
<p class="mb-md-4 mb-2">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release .</p>
<ul class="list-unstyled model-list mb-md-3 mb-2">
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
</ul>
<p class="mb-0">Lorem Ipsum is simply dummy text of the printing and typesetting industry. when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
</div>
</div>
<div id="Ui-Design" class="modal fade" tabindex="-1" style="display: none;" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" ><i class="far fa-times"></i></span></button>
</div>
<div class="modal-body service-model-content">
<figure class="mb-0">
<img src="assets/image/ui-ux-model-img.jpg" alt="ui-ux-model-img" class="img-fluid">
</figure>
<h4>Ui/Ux Design</h4>
<p class="mb-md-4 mb-2">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
<ul class="list-unstyled model-list mb-md-3 mb-2">
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
</ul>
<p class="mb-0">Lorem Ipsum is simply dummy text of the printing and typesetting industry. when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
</div>
</div>
<div id="web-design" class="modal fade" tabindex="-1" style="display: none;" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" ><i class="far fa-times"></i></span></button>
</div>
<div class="modal-body service-model-content">
<figure class="mb-0">
<img src="assets/image/web-designer-model-img.jpg" alt="web-designer-model-img" class="img-fluid">
</figure>
<h4>Web Design</h4>
<p class="mb-md-4 mb-2">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
<ul class="list-unstyled model-list mb-md-3 mb-2">
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
</ul>
<p class="mb-0">Lorem Ipsum is simply dummy text of the printing and typesetting industry. when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
</div>
</div>
<div id="web-development" class="modal fade" tabindex="-1" style="display: none;" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" ><i class="far fa-times"></i></span></button>
</div>
<div class="modal-body service-model-content">
<figure class="mb-0">
<img src="assets/image/web-development-model-img.jpg" alt="web-development-model-img" class="img-fluid">
</figure>
<h4>Web Development</h4>
<p class="mb-md-4 mb-2">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
<ul class="list-unstyled model-list mb-md-3 mb-2">
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
</ul>
<p class="mb-0">Lorem Ipsum is simply dummy text of the printing and typesetting industry. when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
</div>
</div>
<div id="app-development" class="modal fade" tabindex="-1" style="display: none;" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" ><i class="far fa-times"></i></span></button>
</div>
<div class="modal-body service-model-content">
<figure class="mb-0">
<img src="assets/image/App-development-model-img.JPG" alt="App-development-model-img" class="img-fluid">
</figure>
<h4>App Development</h4>
<p class="mb-md-4 mb-2">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
<ul class="list-unstyled model-list mb-md-3 mb-2">
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
<li><i class="fas fa-check-circle"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
</ul>
<p class="mb-0">Lorem Ipsum is simply dummy text of the printing and typesetting industry. when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
</div>
</div>
<div id="blog-model-1" class="modal fade blog-model-con" tabindex="-1" style="display: none;" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" ><i class="far fa-times"></i></span></button>
</div>
<div class="modal-body">
<div class="blog-box-item mb-0">
<div class="blog-img">
<figure class="mb-0">
<img src="assets/image/blog-model-img1.png" alt="blog-img" class="img-fluid">
</figure>
</div>
<div class="blog-content pl-0 pr-0">
<div class="blog-auteher-title">
<span>By Elina Parker</span>
<span class="float-lg-right">Mar 8, 2022</span>
</div>
<h4>Quis autem vea eum
iure reprehenderit
</h4>
<div class="footer-social-icon mb-0">
<ul>
<li class="d-inline-block">
<a href="https://www.behance.net/"><i class="fab fa-behance d-flex align-items-center justify-content-center"></i></a>
</li>
<li class="d-inline-block">
<a href="https://dribbble.com/"><i class="fab fa-dribbble d-flex align-items-center justify-content-center"></i></a>
</li>
<li class="d-inline-block">
<a href="https://www.linkedin.com/"><i class="fab fa-linkedin-in d-flex align-items-center justify-content-center"></i></a>
</li>
</ul>
</div>
<p class="mb-md-4 mb-2">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam tempor eros a tellus auctor, nec suscipit nunc dignissim. Ut suscipit gravida augue sed elementum. Sed sed luctus nisl. Donec scelerisque nisi in sodales mattis. Vestibulum suscipit odio ac enim blandit sollicitudin. Aliquam ultrices sem quis urna placerat interdum. Etiam rutrum, quam sagittis tristique mollis, libero arcu scelerisque erat, eget tincidunt eros diam quis nunc.</p>
<h4 class="comment-title">LEAVE A COMMENT</h4>
<form class="contact-form blog-model-form">
<div class="row">
<div class="col-lg-6 col-md-6">
<div class="form-group mb-0">
<input type="text" placeholder="Name" name="name">
</div>
</div>
<div class="col-lg-6 col-md-6">
<div class="form-group mb-0">
<input type="email" placeholder="Email">
<small class="form-text text-muted"></small>
</div>
</div>
<div class="col-lg-6 col-md-6">
<div class="form-group mb-0">
<input type="tel" placeholder="Phone">
</div>
</div>
<div class="col-lg-6 col-md-6">
<div class="form-group mb-0">
<input type="text" placeholder="Subject">
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class=" form-group mb-0">
<textarea placeholder="Message" rows="3" name="comments"></textarea>
</div>
</div>
</div>
<button type="submit" class="appointment-btn">Submit</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="blog-model-2" class="modal fade blog-model-con" tabindex="-1" style="display: none;" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" ><i class="far fa-times"></i></span></button>
</div>
<div class="modal-body">
<div class="blog-box-item mb-0">
<div class="blog-img">
<figure class="mb-0">
<img src="assets/image/blog-model-img2.png" alt="blog-img" class="img-fluid">
</figure>
</div>
<div class="blog-content pl-0 pr-0">
<div class="blog-auteher-title">
<span>By Elina Parker</span>
<span class="float-lg-right">Mar 9, 2022</span>
</div>
<h4>Reprehenderit in vouta
velit esse cillum
</h4>
<div class="footer-social-icon mb-0">
<ul>
<li class="d-inline-block">
<a href="https://www.behance.net/"><i class="fab fa-behance d-flex align-items-center justify-content-center"></i></a>
</li>
<li class="d-inline-block">
<a href="https://dribbble.com/"><i class="fab fa-dribbble d-flex align-items-center justify-content-center"></i></a>
</li>
<li class="d-inline-block">
<a href="https://www.linkedin.com/"><i class="fab fa-linkedin-in d-flex align-items-center justify-content-center"></i></a>
</li>
</ul>
</div>
<p class="mb-md-4 mb-2">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam tempor eros a tellus auctor, nec suscipit nunc dignissim. Ut suscipit gravida augue sed elementum. Sed sed luctus nisl. Donec scelerisque nisi in sodales mattis. Vestibulum suscipit odio ac enim blandit sollicitudin. Aliquam ultrices sem quis urna placerat interdum. Etiam rutrum, quam sagittis tristique mollis, libero arcu scelerisque erat, eget tincidunt eros diam quis nunc.</p>
<h4 class="comment-title">LEAVE A COMMENT</h4>
<form class="contact-form blog-model-form">
<div class="row">
<div class="col-lg-6 col-md-6">
<div class="form-group mb-0">
<input type="text" placeholder="Name" name="name">
</div>
</div>
<div class="col-lg-6 col-md-6">
<div class="form-group mb-0">
<input type="email" placeholder="Email">
<small class="form-text text-muted"></small>
</div>
</div>
<div class="col-lg-6 col-md-6">
<div class="form-group mb-0">
<input type="tel" placeholder="Phone">
</div>
</div>
<div class="col-lg-6 col-md-6">
<div class="form-group mb-0">
<input type="text" placeholder="Subject">
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class=" form-group mb-0">
<textarea placeholder="Message" rows="3" name="comments"></textarea>
</div>
</div>
</div>
<button type="submit" class="appointment-btn">Submit</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="blog-model-3" class="modal fade blog-model-con" tabindex="-1" style="display: none;" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" ><i class="far fa-times"></i></span></button>
</div>
<div class="modal-body">
<div class="blog-box-item mb-0">
<div class="blog-img">
<figure class="mb-0">
<img src="assets/image/blog-model-img1.png" alt="blog-img" class="img-fluid">
</figure>
</div>
<div class="blog-content pl-0 pr-0">
<div class="blog-auteher-title">
<span>By Elina Parker</span>
<span class="float-lg-right">Mar 10, 2022</span>
</div>
<h4>Soluta nobis ose aligen
optio cumue
</h4>
<div class="footer-social-icon mb-0">
<ul>
<li class="d-inline-block">
<a href="https://www.behance.net/"><i class="fab fa-behance d-flex align-items-center justify-content-center"></i></a>
</li>
<li class="d-inline-block">
<a href="https://dribbble.com/"><i class="fab fa-dribbble d-flex align-items-center justify-content-center"></i></a>
</li>
<li class="d-inline-block">
<a href="https://www.linkedin.com/"><i class="fab fa-linkedin-in d-flex align-items-center justify-content-center"></i></a>
</li>
</ul>
</div>
<p class="mb-md-4 mb-2">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam tempor eros a tellus auctor, nec suscipit nunc dignissim. Ut suscipit gravida augue sed elementum. Sed sed luctus nisl. Donec scelerisque nisi in sodales mattis. Vestibulum suscipit odio ac enim blandit sollicitudin. Aliquam ultrices sem quis urna placerat interdum. Etiam rutrum, quam sagittis tristique mollis, libero arcu scelerisque erat, eget tincidunt eros diam quis nunc.</p>
<h4 class="comment-title">LEAVE A COMMENT</h4>
<form class="contact-form blog-model-form">
<div class="row">
<div class="col-lg-6 col-md-6">
<div class="form-group mb-0">
<input type="text" placeholder="Name" name="name">
</div>
</div>
<div class="col-lg-6 col-md-6">
<div class="form-group mb-0">
<input type="email" placeholder="Email">
<small class="form-text text-muted"></small>
</div>
</div>
<div class="col-lg-6 col-md-6">
<div class="form-group mb-0">
<input type="tel" placeholder="Phone">
</div>
</div>
<div class="col-lg-6 col-md-6">
<div class="form-group mb-0">
<input type="text" placeholder="Subject">
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class=" form-group mb-0">
<textarea placeholder="Message" rows="3" name="comments"></textarea>
</div>
</div>
</div>
<button type="submit" class="appointment-btn">Submit</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- weight footer section -->
<script src="assets/js/wow.js"></script>
<script>
new WOW().init();
</script>
<script src="assets/js/jquery-3.6.0.min.js"> </script>
<script src="assets/js/popper.min.js"> </script>
<script src="assets/js/bootstrap.min.js"> </script>
<script src="assets/js/custom-script.js"> </script>
<script>
filterSelection("all")
function filterSelection(c) {
var x, i;
x = document.getElementsByClassName("filterDiv");
if (c == "all") c = "";
for (i = 0; i < x.length; i++) {
w3RemoveClass(x[i], "show");
if (x[i].className.indexOf(c) > -1) w3AddClass(x[i], "show");
}
}
function w3AddClass(element, name) {
var i, arr1, arr2;
arr1 = element.className.split(" ");
arr2 = name.split(" ");
for (i = 0; i < arr2.length; i++) {
if (arr1.indexOf(arr2[i]) == -1) {element.className += " " + arr2[i];}
}
}
function w3RemoveClass(element, name) {
var i, arr1, arr2;
arr1 = element.className.split(" ");
arr2 = name.split(" ");
for (i = 0; i < arr2.length; i++) {
while (arr1.indexOf(arr2[i]) > -1) {
arr1.splice(arr1.indexOf(arr2[i]), 1);
}
}
element.className = arr1.join(" ");
}
// Add active class to the current button (highlight it)
var btnContainer = document.getElementById("myBtnContainer");
var btns = btnContainer.getElementsByClassName("btn");
for (var i = 0; i < btns.length; i++) {
btns[i].addEventListener("click", function(){
var current = document.getElementsByClassName("active");
current[0].className = current[0].className.replace(" active", "");
this.className += " active";
});
}
</script>
<script>
var btn = $('#button');
$(window).scroll(function() {
if ($(window).scrollTop() > 300) {
btn.addClass('show');
} else {
btn.removeClass('show');
}
});
btn.on('click', function(e) {
e.preventDefault();
$('html, body').animate({scrollTop:0}, '300');
});
</script>
<script>
$(window).scroll(function(){
if ($(window).scrollTop() >= 113) {
$('header').addClass('fixed-header');
$('.banner-main-con').addClass('banner-main-con2');
}
else {
$('header').removeClass('fixed-header');
$('.banner-main-con').removeClass('banner-main-con2');
}
});
</script>
code
<script>
function downloadImage() {
source = 'assets/image/cv-img.png';
const fileName = 'test-image.png';
var el = document.createElement("a");
el.setAttribute("href", source);
el.setAttribute("download", fileName);
document.body.appendChild(el);
el.click();
el.remove();
}
</script>
<script>
// Получаем ссылку на элемент iframe
var scorm_content = document.getElementById("scorm_content");
// Создаем объект SCORM, используя библиотеку SCORM API Wrapper
var scorm = pipwerks.SCORM;
// Устанавливаем версию SCORM, которую поддерживает ваш курс (обычно 1.2 или 2004)
scorm.version = "1.2";
// Инициализируем SCORM-сессию
var success = scorm.init();
// Проверяем, успешно ли прошла инициализация
if (success) {
// Получаем URL-адрес первого ресурса в SCORM-курсе из файла imsmanifest.xml
var launchPage = scorm.get("cmi.core.lesson_location") || scorm.get("cmi.launch_data");
// Если URL-адрес получен, то загружаем его в элемент iframe
if (launchPage) {
scorm_content.src = launchPage;
} else {
// Если URL-адрес не получен, то выводим сообщение об ошибке
alert("Не удалось получить URL-адрес ресурса для запуска SCORM-курса.");
}
} else {
// Если инициализация не прошла, то выводим сообщение об ошибке
alert("Не удалось инициализировать SCORM-сессию.");
}
</script>
Чтобы в коде открывалось модальное окно с SCORM-курсом вместо другой HTML страницы, вам потребуется сделать несколько изменений:
Измените привязки для кнопок, которые активируют модальное окно, чтобы они указывали на правильное модальное окно с содержимым SCORM-курса.
При создании модального окна добавьте в него iframe, который будет указывать на SCORM-курс. Это можно сделать в нижней части вашего HTML, под <body>.
Убедитесь, что при закрытии модального окна происходит корректное завершение SCORM-сессии.
Давайте просмотрим шаги, которые вам нужно предпринять:
Шаг 1: Выберите одну из ссылок, которая будет открывать модальное окно с SCORM-курсом.
Шаг 2: Удалите атрибуты data-toggle и data-target, которые связаны со старым модальным окном, и замените их на атрибуты, которые будут ссылаться на модальное окно с SCORM-курсом.
Шаг 4: Настройте инициализацию и завершение SCORM-сессии.
Это будет зависеть от того, как SCORM API работает для вашего конкретного курса. Когда пользователь открывает модальное окно, он начинает сессию SCORM. Когда он закрывает модальное окно, сессия должна завершаться корректно. Эти вызовы API обычно осуществляются через JavaScript и должны быть скоординированы с вашей SCORM-системой.
Пример:
javascript
// Код для инициализации SCORM-сессии
function startScormSession() {
// Инициализировать SCORM-сессию
}
// Код для завершения SCORM-сессии
function endScormSession() {
// Завершить SCORM-сессию
}
// Слушатель события открытия модального окна
$('#scormCourseModal').on('shown.bs.modal', function (e) {
startScormSession(); // Запускаем SCORM-сессию
})
// Слушатель события закрытия модального окна
$('#scormCourseModal').on('hidden.bs.modal', function (e) {
endScormSession(); // Завершаем SCORM-сессию
})
Вставьте этот код в соответствующие места вашего HTML и JavaScript файлов. Не забудьте изменить в iframe идентификатор и URL-адрес, чтобы он ссылался на курс SCORM, который вы предполагаете загрузить.