HOME SHELL

NULLCOMMUNITY
 LiteSpeed
 Linux server2.poyrazhosting.com 3.10.0-962.3.2.lve1.5.77.el7.x86_64 #1 SMP Mon Dec 12 07:06:14 EST 2022 x86_64
 safemode : OFF
 MySQL: OFF | Perl: OFF | cURL: ON | WGet: OFF
  >  / home / cuneytsener53 / kurumsal3.snrsoft.com.tr / js /

Server Ip : 104.21.78.54




Filename/home/cuneytsener53/kurumsal3.snrsoft.com.tr/js/main.js
Size7.34 kb
Permissionrw-r--r--
Owner
Create time02-Mar-2025 05:46
Last modified06-Feb-2020 15:42
Last accessed05-Apr-2025 08:48
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
window.jQuery(document).ready(function($){

'use strict';

if ($(document).width() >= 769) {
$(window).on("resize", function () {
if ($(window).width() < 769) {
$('.header-content').height("auto");
}
else {
var height = $(window).height();
$('.header-content').height(height -250);
}
}).resize();
} else {
}


$('a[href*="#"]').on('click',function(e) {
e.preventDefault();
var target = this.hash;
var $target = $(target);
$('html, body').stop().animate({
'scrollTop': $target.offset().top
}, 900, 'swing', function () {
window.location.hash = target;
});
});

jQuery(document).ready(function($) {
var offset = 300,
offset_opacity = 1200,
scroll_top_duration = 700,
$back_to_top = $('.cd-top');
$(window).scroll(function() {
($(this).scrollTop() > offset) ? $back_to_top.addClass('cd-is-visible') : $back_to_top.removeClass('cd-is-visible cd-fade-out');
if ($(this).scrollTop() > offset_opacity) {
$back_to_top.addClass('cd-fade-out');
}
});
$back_to_top.on('click', function(event) {
event.preventDefault();
$('body,html').animate({
scrollTop: 0,
}, scroll_top_duration
);
});
$('#header .navbar-default li.subnav ul').after('<div class="nav__expand"><i class="fa fa-chevron-down"></i></div>');
$("#header .navbar-default li.subnav .nav__expand").on('click',function(){
$(this).prev("ul").slideToggle("slow");
});
});


$('body').scrollspy({
target: '#navigation .navbar-collapse',
offset: parseInt($('#navigation').height(), 0)
});

$(window).on('scroll', function () {
var scroll = $(window).scrollTop();
if (scroll < 245) {
$("#header").removeClass("sticky-menu");
} else {
$("#header").addClass("sticky-menu");
}
});

$('.popup-image').magnificPopup({
type: 'image',
gallery: {
enabled: true
}
});


$('.popup-video').magnificPopup({
type: 'iframe',
gallery: {
enabled: true
}
});


$('.btn-tooltip').tooltip();
$('.btn-popover').popover();

var sliderBgSetting = $(".bck");
sliderBgSetting.each(function(indx){
if ($(this).attr("data-background")){
$(this).css("background-image", "url(" + $(this).data("background") + ")");
}
});

$('.carousel-slider.gallery-slider').slick({
arrows: false,
dots: true,
slidesToShow: 4,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 5000,
draggable: true,
responsive: [
{
breakpoint: 1250,
settings: {
slidesToShow: 3,
draggable: true
}
},
{
breakpoint: 990,
settings: {
slidesToShow: 1,
draggable: true
}
},
{
breakpoint: 767,
settings: {
slidesToShow: 1,
draggable: true
}

}
]
});


$('.carousel-slider.projects-slider').slick({
arrows: false,
dots: true,
slidesToShow: 4,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 5000,
draggable: true,
responsive: [
{
breakpoint: 1200,
settings: {
slidesToShow: 3,
draggable: true
}
},
{
breakpoint: 990,
settings: {
slidesToShow: 2,
draggable: true
}
},
{
breakpoint: 767,
settings: {
slidesToShow: 1,
draggable: true
}

}
]
});

$('.carousel-slider.sponsor-slider').slick({
arrows: false,
dots: false,
margin: 10,
slidesToShow: 6,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 5000,
draggable: true,
responsive: [
{
breakpoint: 1200,
settings: {
slidesToShow: 6,
draggable: true
}
},
{
breakpoint: 990,
settings: {
slidesToShow: 4,
draggable: true
}
},
{
breakpoint: 767,
settings: {
slidesToShow: 3,
draggable: true
}

}
]
});
$('.carousel-slider.blog-slider').slick({
arrows: false,
dots: false,
slidesToShow: 3,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 5000,
draggable: true,
responsive: [
{
breakpoint: 1200,
settings: {
slidesToShow: 3,
draggable: true
}
},
{
breakpoint: 990,
settings: {
slidesToShow: 2,
draggable: true
}
},
{
breakpoint: 767,
settings: {
slidesToShow: 1,
draggable: true
}

}
]
});

$('.carousel-slider.general-slider').each(function() {
$(this).slick({
arrows: false,
dots: false,
slidesToShow: 1,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 5000,
draggable: true,
responsive: [{
breakpoint: 767,
settings: {
slidesToShow: 1,
draggable: true
}
}]
});
});


$('.fancybox').fancybox({
loop: false
});

$('.themeioan_counter > h4').counterUp ({
delay: 10,
time: 3000
});

$('.burger-icon').on('click touchstart', function(e) {
$(this).toggleClass('change');
$("#navbarCollapse").slideToggle();
e.preventDefault();
});


$('#contact-us-form').submit(function() {
var form = $(this),
hasError = false;

form.find('.error-msg, .success-msg').remove();

form.find('.required-field').each(function() {
$(this).removeClass('not-valid');
if($.trim($(this).val()) === '') {
$(this).addClass('not-valid').parent().append('<div class="error-msg">This is a required field.</div>');
hasError = true;
} else if($(this).hasClass('email-field')) {
var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
if(!emailReg.test($.trim($(this).val()))) {
$(this).addClass('not-valid').parent().append('<div class="error-msg">You entered an invalid Email.</div>');
hasError = true;
}
}
});
if(!hasError) {
var formData = $(this).serialize();
$.post('contact-process.php', formData, function(data) {
form.find('.required-field').val('');
form.append('<div class="success-msg">Thank you! We will contact you shortly.</div>');
}).fail(function() {
form.append('<div class="error-msg">Error occurred. Please try again later.</div>');
});
}
return false;
});

$('.owl-navigation ').owlCarousel({
loop:true,
margin:0,
nav:true,
touchDrag:true,
mouseDrag:true,
autoplay:true,
autoplayTimeout:5000,
smartSpeed: 1000,
autoplayHoverPause:true,
responsive:{
0:{
items:1
}
}
});

$('.owl-carousel').owlCarousel({
loop:true,
margin:0,
nav:false,
touchDrag:true,
mouseDrag:true,
autoplay:true,
autoplayTimeout:5000,
smartSpeed: 1000,
autoplayHoverPause:true,
responsive:{
0:{
items:1
}
}
});
});

document.addEventListener('DOMContentLoaded', function() {

'use strict';

if ($("#typed")[0]){
var typed = new Typed('#typed', {
stringsElement: '#typed-strings',
typeSpeed: 60,
backSpeed: 60,
startDelay: 1000,
loop: true,
loopCount: Infinity,
onComplete: function(self) {
prettyLog('onComplete ' + self);
},
preStringTyped: function(pos, self) {
prettyLog('preStringTyped ' + pos + ' ' + self);
},
onStringTyped: function(pos, self) {
prettyLog('onStringTyped ' + pos + ' ' + self);
},
onLastStringBackspaced: function(self) {
prettyLog('onLastStringBackspaced ' + self);
},
onTypingPaused: function(pos, self) {
prettyLog('onTypingPaused ' + pos + ' ' + self);
},
onTypingResumed: function(pos, self) {
prettyLog('onTypingResumed ' + pos + ' ' + self);
},
onReset: function(self) {
prettyLog('onReset ' + self);
},
onStop: function(pos, self) {
prettyLog('onStop ' + pos + ' ' + self);
},
onStart: function(pos, self) {
prettyLog('onStart ' + pos + ' ' + self);
},
onDestroy: function(self) {
prettyLog('onDestroy ' + self);
}
});
} else {
}
});

function prettyLog(str) {
}