Skip to content

Commit

Permalink
Merge pull request #164 from salim-b/no-tabs
Browse files Browse the repository at this point in the history
Replace tabs with two spaces
  • Loading branch information
somratpro authored May 19, 2021
2 parents 849c9f3 + 341fce1 commit 3d086e7
Show file tree
Hide file tree
Showing 19 changed files with 972 additions and 972 deletions.
164 changes: 82 additions & 82 deletions assets/js/script.js
Original file line number Diff line number Diff line change
@@ -1,99 +1,99 @@
// Preloader js
$(window).on('load', function () {
$('.preloader').fadeOut(100);
$('.preloader').fadeOut(100);
});

$(document).ready(function () {
'use strict';
'use strict';

// Shuffle js filter and masonry
var containerEl = document.querySelector('.shuffle-wrapper');
if (containerEl) {
var Shuffle = window.Shuffle;
var myShuffle = new Shuffle(document.querySelector('.shuffle-wrapper'), {
itemSelector: '.shuffle-item',
buffer: 1
});
// Shuffle js filter and masonry
var containerEl = document.querySelector('.shuffle-wrapper');
if (containerEl) {
var Shuffle = window.Shuffle;
var myShuffle = new Shuffle(document.querySelector('.shuffle-wrapper'), {
itemSelector: '.shuffle-item',
buffer: 1
});

jQuery('input[name="shuffle-filter"]').on('change', function (evt) {
var input = evt.currentTarget;
if (input.checked) {
myShuffle.filter(input.value);
}
});
}
jQuery('input[name="shuffle-filter"]').on('change', function (evt) {
var input = evt.currentTarget;
if (input.checked) {
myShuffle.filter(input.value);
}
});
}

$('.portfolio-single-slider').slick({
infinite: true,
arrows: false,
autoplay: true,
autoplaySpeed: 2000
$('.portfolio-single-slider').slick({
infinite: true,
arrows: false,
autoplay: true,
autoplaySpeed: 2000

});
});

$('.clients-logo').slick({
infinite: true,
arrows: false,
autoplay: true,
autoplaySpeed: 2000
});
$('.clients-logo').slick({
infinite: true,
arrows: false,
autoplay: true,
autoplaySpeed: 2000
});

$('.testimonial-slider').slick({
slidesToShow: 1,
infinite: true,
arrows: false,
autoplay: true,
autoplaySpeed: 2000
});
$('.testimonial-slider').slick({
slidesToShow: 1,
infinite: true,
arrows: false,
autoplay: true,
autoplaySpeed: 2000
});


// Magnific Popup Image
$('.portfolio-popup').magnificPopup({
type: 'image',
removalDelay: 160, //delay removal by X to allow out-animation
callbacks: {
beforeOpen: function () {
// just a hack that adds mfp-anim class to markup
this.st.image.markup = this.st.image.markup.replace('mfp-figure', 'mfp-figure mfp-with-anim');
this.st.mainClass = this.st.el.attr('data-effect');
}
},
closeOnContentClick: true,
midClick: true,
fixedContentPos: true,
fixedBgPos: true
});
// Magnific Popup Image
$('.portfolio-popup').magnificPopup({
type: 'image',
removalDelay: 160, //delay removal by X to allow out-animation
callbacks: {
beforeOpen: function () {
// just a hack that adds mfp-anim class to markup
this.st.image.markup = this.st.image.markup.replace('mfp-figure', 'mfp-figure mfp-with-anim');
this.st.mainClass = this.st.el.attr('data-effect');
}
},
closeOnContentClick: true,
midClick: true,
fixedContentPos: true,
fixedBgPos: true
});

// Count Up
function counter() {
var oTop;
if ($('.count').length !== 0) {
oTop = $('.count').offset().top - window.innerHeight;
}
if ($(window).scrollTop() > oTop) {
$('.count').each(function () {
var $this = $(this),
countTo = $this.attr('data-count');
$({
countNum: $this.text()
}).animate({
countNum: countTo
}, {
duration: 1000,
easing: 'swing',
step: function () {
$this.text(Math.floor(this.countNum));
},
complete: function () {
$this.text(this.countNum);
}
});
});
}
}
$(window).on('scroll', function () {
counter();
});
// Count Up
function counter() {
var oTop;
if ($('.count').length !== 0) {
oTop = $('.count').offset().top - window.innerHeight;
}
if ($(window).scrollTop() > oTop) {
$('.count').each(function () {
var $this = $(this),
countTo = $this.attr('data-count');
$({
countNum: $this.text()
}).animate({
countNum: countTo
}, {
duration: 1000,
easing: 'swing',
step: function () {
$this.text(Math.floor(this.countNum));
},
complete: function () {
$this.text(this.countNum);
}
});
});
}
}
$(window).on('scroll', function () {
counter();
});

// Turn cloaked e-mail addresses into clickable mailto links
let emailSpans = document.getElementsByClassName("cloaked-e-mail");
Expand Down
120 changes: 60 additions & 60 deletions assets/scss/_main.scss
Original file line number Diff line number Diff line change
@@ -1,76 +1,76 @@
#wrapper-work {
overflow: hidden;
padding-top: 100px;
overflow: hidden;
padding-top: 100px;

ul {
li {
width: 50%;
float: left;
position: relative;
ul {
li {
width: 50%;
float: left;
position: relative;

img {
width: 100%;
height: 100%;
}
img {
width: 100%;
height: 100%;
}

.items-text {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
width: 100%;
height: 100%;
color: #fff;
background: rgba(0, 0, 0, 0.60);
padding-left: 44px;
padding-top: 140px;
.items-text {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
width: 100%;
height: 100%;
color: #fff;
background: rgba(0, 0, 0, 0.60);
padding-left: 44px;
padding-top: 140px;

h2 {
padding-bottom: 28px;
padding-top: 75px;
position: relative;
h2 {
padding-bottom: 28px;
padding-top: 75px;
position: relative;

&:before {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 75px;
height: 3px;
background: #fff;
}
}
&:before {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 75px;
height: 3px;
background: #fff;
}
}

p {
padding-top: 30px;
font-size: 16px;
line-height: 27px;
font-weight: 300;
padding-right: 80px;
}
}
}
}
p {
padding-top: 30px;
font-size: 16px;
line-height: 27px;
font-weight: 300;
padding-right: 80px;
}
}
}
}
}


/*--
features-work Start
features-work Start
--*/

#features-work {
padding-top: 50px;
padding-bottom: 75px;
padding-top: 50px;
padding-bottom: 75px;

.block {
ul {
li {
width: 19%;
text-align: center;
display: inline-block;
padding: 40px 0px;
}
}
}
.block {
ul {
li {
width: 19%;
text-align: center;
display: inline-block;
padding: 40px 0px;
}
}
}
}
54 changes: 27 additions & 27 deletions assets/scss/templates/_404.scss
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
.page-404 {
display: flex;
align-items: center;
min-height: calc(100vh - (100px + 205px));
display: flex;
align-items: center;
min-height: calc(100vh - (100px + 205px));
@include desktop {
min-height: calc(100vh - (90px + 205px));
}
text-align: center;
h1 {
font-size: 300px;
font-weight: bold;
@include tablet {
font-size: 150px;
}
@include mobile {
font-size: 130px;
}
@include mobile-xs {
font-size: 90px;
}
}
h2 {
text-transform:uppercase;
font-size: 20px;
letter-spacing: 4px;
font-weight: bold;
margin-top: 30px;
}
.btn-main {
margin-top: 40px;
text-align: center;
h1 {
font-size: 300px;
font-weight: bold;
@include tablet {
font-size: 150px;
}
@include mobile {
font-size: 130px;
}
@include mobile-xs {
font-size: 90px;
}
}
h2 {
text-transform:uppercase;
font-size: 20px;
letter-spacing: 4px;
font-weight: bold;
margin-top: 30px;
}
.btn-main {
margin-top: 40px;
margin-bottom: 50px;
}
}
}
Loading

0 comments on commit 3d086e7

Please sign in to comment.