Hide by default responsibilities and click to show them
This commit is contained in:
parent
3b8d0348c8
commit
dd6fecf5b5
4 changed files with 23 additions and 2 deletions
|
@ -18,7 +18,7 @@
|
||||||
{{ range $index,$position:= .positions }}
|
{{ range $index,$position:= .positions }}
|
||||||
<div class="company-timeline-item position">
|
<div class="company-timeline-item position">
|
||||||
<h6 class="designation">{{ $position.designation }}</h6>
|
<h6 class="designation">{{ $position.designation }}</h6>
|
||||||
<p class="text-muted">{{ $position.start }} - {{if $position.end }} {{ $position.end }} {{else}} Present {{end}}</p>
|
<span class="text-muted company-period">{{ $position.start }} - {{ $position.end }} </span>
|
||||||
<ul class="justify-content-around responsabilities">
|
<ul class="justify-content-around responsabilities">
|
||||||
{{ range $position.responsibilities }}
|
{{ range $position.responsibilities }}
|
||||||
<li>{{ . | markdownify }}</li>
|
<li>{{ . | markdownify }}</li>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<div class="company-info">
|
<div class="company-info">
|
||||||
<h5>{{ .designation }}</h5>
|
<h5>{{ .designation }}</h5>
|
||||||
<h6>{{ if .company.url }}<a href={{.company.url}}>{{ .company.name }}</a>{{ else }}{{ .company.name }}{{ end }}</h6>
|
<h6>{{ if .company.url }}<a href={{.company.url}}>{{ .company.name }}</a>{{ else }}{{ .company.name }}{{ end }}</h6>
|
||||||
<span class="text-muted">{{ .start }} - {{ .end }},
|
<span class="text-muted company-period">{{ .start }} - {{ .end }},
|
||||||
{{ .company.location }}
|
{{ .company.location }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
.experiences-section .designation{
|
.experiences-section .designation{
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
margin-bottom: 0.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.company{
|
.company{
|
||||||
|
@ -158,6 +159,15 @@
|
||||||
.company-timeline-item.position::after {
|
.company-timeline-item.position::after {
|
||||||
left: 20px;
|
left: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.responsabilities {
|
||||||
|
margin-top: 0.5em;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.company-period {
|
||||||
|
color: #808080 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* iPhoneX, iPhone 6,7,8 */
|
/* iPhoneX, iPhone 6,7,8 */
|
||||||
|
|
|
@ -373,6 +373,17 @@ var projectCards;
|
||||||
adjustRecentPostsHeight();
|
adjustRecentPostsHeight();
|
||||||
showAchievements();
|
showAchievements();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (isMobile) {
|
||||||
|
$(".position").click(function() {
|
||||||
|
let responsabilities = $(this).find('.responsabilities');
|
||||||
|
if (responsabilities.is(":visible")) {
|
||||||
|
responsabilities.slideUp( "slow");
|
||||||
|
}
|
||||||
|
else responsabilities.slideDown("slow");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue