Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hanifzekri committed Jun 27, 2024
1 parent 140c9ec commit 9f1932a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 65 deletions.
65 changes: 1 addition & 64 deletions asset/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ $(document).ready(function() {
$(this).removeClass('exptypetop');
$(this).removeClass('exptypebottom');
});
$("[id^='explist_']").each(function(){
$(this).slideUp();
});
}

if (hashid == aid) {
Expand Down Expand Up @@ -107,70 +104,10 @@ $(document).ready(function() {
}
});

//
$("[id^='exptype_']").click(function(){

var exptype = $(this).attr('id');
var explist = 'explist_' + exptype.substr(8);

$("[id^='explist_']").each(function(){
var selectid = $(this).attr('id');
if (selectid != explist) $(this).slideUp();
});

$("[id^='exptype_']").each(function(){
var selectid = $(this).attr('id');
if (selectid != exptype) {
$(this).addClass('exptypebottom');
$(this).removeClass('exptypetop');
}
else $(this).removeClass('exptypebottom');
});

if ($('#'+explist).is(':visible')) {
$('#'+explist).slideUp().promise().done(function(){
$("[id^='exptype_']").each(function(){
$(this).removeClass('exptypetop');
$(this).removeClass('exptypebottom');
});
});
} else {
$("#"+exptype).removeClass('exptypetop').promise().done(function(){
$("[id^='expitem_']").each(function(){
var expitemid = '#'+$(this).attr('id');
$(expitemid+' p').removeClass('active');
$(expitemid+' a').html('<u> » </u> more');
}).promise().done(function(){
$("#"+exptype).addClass('exptypetop');
$('#'+explist).slideDown();
});
});
}
});

//
$("[id^='expitem_']").click(function(){
var expitemid = '#'+$(this).attr('id');
$(expitemid+' p').toggleClass('active').promise().done(function(){
if ($(expitemid+' p').hasClass('active')) {
$(expitemid+' a').animate({'font-size': 0}).promise().done(function(){
$(expitemid+' a').html('<u> x </u> close').promise().done(function(){
$(expitemid+' a').animate({'font-size': '18px'});
});
});
} else {
$(expitemid+' a').animate({'font-size': 0}).promise().done(function(){
$(expitemid+' a').html('<u> » </u> more').promise().done(function(){
$(expitemid+' a').animate({'font-size': '18px'});
});
});
}
});
});

//
var startimg_width = $('.start img').height();
if (startimg_width <= 200) $('.start img').hide();
else $('.start img').show();

//
var splide1 = new Splide('#slide_fsd', {autoplay: true, rewind: true, arrow: false, type: 'loop'});
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<span> Hi there ! </span>
<span> I'm Hanif <small> Zekri Astaneh, </small></span>
<h2> Full Stack Web&nbsp;Developer </h2>
<a id="nav_skills"> Proficient in PHP, JavaScript, CSS, MySQL, SEO, UI/UX design, Ecommerce</a>
<a id="nav_skills"> Proficient in Backend, Frontend, Ecommerce,... </a>
</aside>
<label>
<a href="/asset/static/cv.pdf" target="_blank"><icon class="cv"></icon>CV</a>
Expand Down

0 comments on commit 9f1932a

Please sign in to comment.