Witam znalazłem fajną graficznie galerię - oto link :
http://blog.compsoul.pl/liseblog/prosta-galeria-zdjec-na-strone-internetowa/57.html
I postępowałem zgodnie z instrukcjami ale mi to nie działa. Może ktoś z Was będzie wiedział o co chodzi :)
Z góry dzięki za pomoc .
Poniżej przesyłam kod który wpisałem zgodnie z poleceniami :
<!DOCTYPE HTML>
<html lang="pl">
<head>
<meta charset="utf-8" />
<meta name='viewport' content="width=device-width, initial-scale=1 , shrink-to-fit=no">
<title>Prosta galeria</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<script>
(function ($) {
$(".gallery").gallery({
animation: "slide",
animationPrev: "prev",
animationNext: "next",
album: false,
albumClass: ".gallery-album",
mask: "compsoul-gallery-mask",
maskBefore: "compsoul-gallery-mask-before",
maskBeforeButton: "compsoul-gallery-mask-before-button",
content: "compsoul-gallery",
close: "compsoul-gallery-close",
closeText: "",
nav: true,
prev: "compsoul-gallery-prev",
prevText: "Poprzedni",
next: "compsoul-gallery-next",
nextText: "Następny",
firstElement: "compsoul-gallery-first-element",
secondElement: "compsoul-gallery-second-element",
loader: "compsoul-gallery-loader",
comment: "gallery-comment",
hiddenScroll : true,
hiddenScrollClass : "hidden-scroll",
activeNameClass: "active",
inactiveNameClass: "none",
errorNameClass: "error",
prevNameClass: "prev",
nextNameClass: "next",
parent: false
});
})(Comp);
</script>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<a class="gallery-album" href="http://blog.compsoul.pl/uploads/galeria-album-demo/"><img src="uploads/galeria-album-demo/album.jpg" alt="Miniaturka"></a>
<i class="far fa-times"></i>
<a class="gallery" href="1.jpg">Pierwsza miniaturka</a>
<a class="gallery" href="2.jpg">Druga miniaturka</a>
<a class="gallery" href="3.jpg">Trzecia miniaturka</a>
<a class="gallery" href="4.jpg">Czwarta miniaturka</a>
<a class="gallery" href="5.jpg">Piąta miniaturka</a>
<a class="gallery-image" href="uploads/images/blog/1.jpg"><img src="uploads/images/blog/1-thumb.jpg" alt="Pierwsza miniaturka"></a>
<a class="gallery-image" href="uploads/images/blog/2.jpg"><img src="uploads/images/blog/2-thumb.jpg" alt="Druga miniaturka"></a>
<a class="gallery-image" href="uploads/images/blog/3.jpg"><img src="uploads/images/blog/3-thumb.jpg" alt="Trzecia miniaturka"></a>
<a class="gallery-image" href="uploads/images/blog/4.jpg"><img src="uploads/images/blog/4-thumb.jpg" alt="Czwarta miniaturka"></a>
<a class="gallery-image" href="uploads/images/blog/5.jpg"><img src="uploads/images/blog/5-thumb.jpg" alt="Piąta miniaturka"></a>
<a class="gallery-image" href="uploads/images/blog/6.jpg"><img src="uploads/images/blog/6-thumb.jpg" alt="Szósta miniaturka"></a>
<a class="gallery-image" href="uploads/images/blog/7.jpg"><img src="uploads/images/blog/7-thumb.jpg" alt="Siódma miniaturka"></a>
<a class="gallery-image" href="uploads/images/blog/8.jpg"><img src="uploads/images/blog/8-thumb.jpg" alt="Ósma miniaturka"></a>
<script src="comp.js"></script>
<script src="gallery.js"></script>
<script>
(function ($) {
$(".gallery").gallery();
})(Comp);
</script>
<script>
(function ($) {
$(".gallery-album").gallery({
album: true,
albumClass: ".gallery-album"
});
})(Comp);
</script>
</body>
</html>
i plik css:
.gallery-content {
font-size: 0;
letter-spacing: 0;
line-height: 0;
margin-bottom: 1rem;
text-align: center;
}
.gallery-content a {
background: no-repeat center / cover;
border: 3px solid #737c85;
display: inline-block;
height: 120px;
margin: 5px;
width: 120px;
}
.gallery-content a:hover {
border-color: #ffc000;
}
.compsoul-gallery-mask {
background: rgba(0, 0, 0, 0.8);
display: none;
height: 100vh;
left: 0rem;
position: fixed;
top: 0rem;
width: 100vw;
z-index: 999;
}
.compsoul-gallery-mask.active {
display: block;
}
.compsoul-gallery-mask-before {
height: 100vh;
left: 0rem;
position: fixed;
top: 0rem;
width: 100vw;
}
.compsoul-gallery-mask-before-button {
background: #000;
content: "";
cursor: pointer;
height: 4vw;
right: 0rem;
position: fixed;
top: 0rem;
width: 4vw;
z-index: 1;
}
.compsoul-gallery-mask-before:after {
color: #fff;
content: "\f105\f104";
cursor: pointer;
font-family: "FontAwesome";
font-size: 2vw;
letter-spacing: -0.1875rem;
line-height: 2vw;
right: 2vw;
position: fixed;
top: 2vw;
transform: translate(50%, -50%);
z-index: 1;
}
.compsoul-gallery img {
border: 0;
clip: rect(0 0 0 0);
height: 0.0625rem;
margin: -0.0625rem;
overflow: hidden;
padding: 0;
position: absolute;
width: 0.0625rem;
}
.compsoul-gallery .gallery-comment {
background: rgba(0, 0, 0, 0.6);
box-sizing: border-box;
bottom: 0;
color: #fff;
padding: 10px;
position: absolute;
width: 100%;
}
.compsoul-gallery-prev, .compsoul-gallery-next {
background: #000;
cursor: pointer;
font-size: 0;
height: 4vw;
letter-spacing: 0;
line-height: 0;
right: 0rem;
overflow: hidden;
position: fixed;
text-indent: 100%;
top: 50%;
transform: translateY(-50%);
white-space: nowrap;
width: 4vw;
z-index: 1;
}
.compsoul-gallery-prev {
left: 0rem;
}
.compsoul-gallery-prev:before, .compsoul-gallery-next:before {
display: block;
color: #fff;
content: "\f105";
font-family: "FontAwesome";
font-size: 2vw;
line-height: 4vw;
height: 4vw;
text-align: center;
text-indent: initial;
width: 4vw;
}
.compsoul-gallery-close:after {
float: left;
margin-left: 0.1875rem;
text-align: right;
width: 2vw;
}
.compsoul-gallery-prev:before {
content: "\f104";
}
.compsoul-gallery-first-element, .compsoul-gallery-second-element {
background: no-repeat center / cover;
left: 50%;
max-height: 90vh;
max-width: 90vw;
position: fixed;
top: 50%;
transform: translate(-50%, -50%);
transition: opacity 0.4s;
}
.compsoul-gallery-first-element.active {
animation: active linear 0.4s forwards;
}
.compsoul-gallery-first-element.next, .compsoul-gallery-second-element.next {
animation: next-of linear 0.4s forwards;
}
.compsoul-gallery-first-element.prev, .compsoul-gallery-second-element.prev {
animation: prev-of linear 0.4s forwards;
}
.compsoul-gallery-first-element.next.active, .compsoul-gallery-second-element.next.active {
animation: next linear 0.4s forwards;
}
.compsoul-gallery-first-element.prev.active, .compsoul-gallery-second-element.prev.active {
animation: prev linear 0.4s forwards;
}
.compsoul-gallery-loader {
opacity: 0;
}
.compsoul-gallery-loader.active {
animation: active linear 0.4s forwards 0.4s;
}
.compsoul-gallery-loader.none {
animation: none;
transition: opacity 0.4s;
}
.compsoul-gallery-loader:before, .compsoul-gallery-loader:after {
animation: turn linear 1s infinite;
border: solid #fff;
border-radius: 100%;
content: "";
display: block;
height: 2rem;
left: 50%;
margin: -1rem 0 0 -1rem;
position: fixed;
top: 50%;
width: 2rem;
}
.compsoul-gallery-loader:before {
border-width: 0 0.125rem 0.125rem 0;
}
.compsoul-gallery-loader:after {
animation-direction: reverse;
border-width: 0.125rem 0 0 0.125rem;
height: 4rem;
margin: -2rem 0 0 -2rem;
width: 4rem;
}
@keyframes active {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes next {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes next-of {
0% {
opacity: 1;
transform: translate(-50%, -50%);
}
100% {
opacity: 0;
transform: translate(-100%, -50%);
}
}
@keyframes prev {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes prev-of {
0% {
opacity: 1;
transform: translate(-50%, -50%);
}
100% {
opacity: 0;
transform: translate(0%, -50%);
}
}
@keyframes turn {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
Zciągłem też pliki comp.js i gallery.js
Może ktoś z was będzie wiedział o co chodzi. Z góry dzięki za pomoc