Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 17 additions & 15 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,25 +572,27 @@
/*
Resize
*/
var resizeTimer;
$(window).resize(function () {
clearTimeout(resizeTimer);
resizeTimer = setTimeout(function() {
/* Set full height in blocks */
var width = $(window).width();
var height = $(window).height();

/* Set full height in blocks */
var width = $(window).width();
var height = $(window).height();

/* Set full height in started blocks */
$('.section.started').not('.section-title').css({ 'height': height });
if (width < 783) {
/* Set full height in started blocks */
$('.section.started').not('.section-title').css({ 'height': height });
}

/* Dotted skills line on resize */
var skills_dotted = $('.skills-list.dotted .progress');
var skills_dotted_w = skills_dotted.width();
if (skills_dotted.length) {
skills_dotted.find('.percentage .da').css({ 'width': skills_dotted_w + 1 });
}
if (width < 783) {
$('.section.started').not('.section-title').css({ 'height': height });
}

/* Dotted skills line on resize */
var skills_dotted = $('.skills-list.dotted .progress');
var skills_dotted_w = skills_dotted.width();
if (skills_dotted.length) {
skills_dotted.find('.percentage .da').css({ 'width': skills_dotted_w + 1 });
}
}, 250);
});

/*
Expand Down