Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
aliorhun authored Jul 29, 2023
1 parent 4cfebd2 commit f2747e3
Showing 1 changed file with 166 additions and 13 deletions.
179 changes: 166 additions & 13 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,189 @@
<link rel=stylesheet href=/fonts/feather.css>
<link rel=stylesheet href=https://aciklab.org/scss/main.min.css>


<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>


<style>

#popup {
display:none;
position:absolute;
margin-left: 100px;
width: 1200px;


.sipu-model-main {
text-align: center;
overflow: hidden;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0; /* z-index: 1050; */
-webkit-overflow-scrolling: touch;
outline: 0;
opacity: 0;
-webkit-transition: opacity 0.15s linear, z-index 0.15;
-o-transition: opacity 0.15s linear, z-index 0.15;
transition: opacity 0.15s linear, z-index 0.15;
z-index: -1;
overflow-x: hidden;
overflow-y: auto;
}

.model-open {
z-index: 99999;
opacity: 1;
overflow: hidden;
}
.sipu-model-inner {
-webkit-transform: translate(0, -25%);
-ms-transform: translate(0, -25%);
transform: translate(0, -25%);
-webkit-transition: -webkit-transform 0.3s ease-out;
-o-transition: -o-transform 0.3s ease-out;
transition: -webkit-transform 0.3s ease-out;
-o-transition: transform 0.3s ease-out;
transition: transform 0.3s ease-out;
transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
display: inline-block;
vertical-align: middle;
max-width: 1200px;
margin: 30px auto;
}
.sipu-model-wrap {
display: block;
width: 100%;
position: relative;
background-color: #fff;
border: 1px solid #999;
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 6px;
-webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
background-clip: padding-box;
outline: 0;
text-align: left;
padding: 20px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
max-height: calc(100vh - 70px);
overflow-y: auto;
}
.model-open .sipu-model-inner {
-webkit-transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
position: relative;
z-index: 999;
}
.model-open .sipu-bg-overlay {
background: rgba(0, 0, 0, 0.3);
z-index: 99;
}
.sipu-bg-overlay {
background: rgba(0, 0, 0, 0.7);
height: 100vh;
width: 100%;
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
z-index: 0;
-webkit-transition: background 0.15s linear;
-o-transition: background 0.15s linear;
transition: background 0.15s linear;
}
.sipu-close-btn {
position: absolute;
right: 0;
top: -30px;
cursor: pointer;
z-index: 99;
font-size: 30px;
color: #fff;
}

@media screen and (min-width: 1200px) {
.sipu-model-main:before {
content: "";
display: inline-block;
height: auto;
vertical-align: middle;
margin-right: -0px;
height: 100%;
}
}
@media screen and (max-width: 1200px) {
.sipu-model-inner {
margin-top: 45px;
}
}


</style>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<script>

(function ($) {
$.fn.singleImagePopup = function (options) {
const defaults = {
width: "1024px",
imageUrl: "https://aciklab.org/images/cbddo-hazir.jpeg",
stop: false,
};

let settings = $.extend({}, defaults, options);

function doNotShow() {
return !settings.stop ? "model-open" : "";
}

let showPopup = doNotShow();

return $(this)
.html(
`<div class="sipu-model-main ${showPopup}">
<div class="sipu-model-inner">
<div class="sipu-close-btn">×</div>
<div class="sipu-model-wrap">
<div class="sipu-pop-up-content-wrap">
<a href="https://aciklab.org/iletisim/"> <img src="${settings.imageUrl}" width="${settings.width}" height="${settings.height}" /></a>
</div>
</div>
</div>
<div class="sipu-bg-overlay"></div>
</div>`
)
.find(
$(".sipu-close-btn").on("click", function () {
$(".sipu-model-main").removeClass("model-open");
})
);
};
})(jQuery);


</script>




<script>
$(document).ready(function () {
$("#popup").hide().fadeIn(1000);
$("#singleimagepopup").singleImagePopup({
imageUrl: "https://aciklab.org/images/cbddo-hazir.jpeg",
width: "1024px",
});
});
</script>
</head>
</html>
<body>


<div id="singleimagepopup"></div>



<header id=header>
<div class="container-fluid nav-bg" data-aos=fade-down>
Expand Down Expand Up @@ -79,11 +237,6 @@
</div>
<section id=hero class="pt-lg-5 pt-0 pb-5">


<div id="popup" class="popup panel panel-primary">
<a href="https://aciklab.org/iletisim/"> <img width="1200px" src="https://aciklab.org/images/cbddo-hazir.jpeg" alt="popup"></a>
</div>


<div id=hero-carousel class="carousel container slide pb-5" data-ride=carousel>
<div class="carousel-inner row">
Expand Down

0 comments on commit f2747e3

Please sign in to comment.