-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
136 additions
and
6 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
function includeHTML(cb) { | ||
let z; | ||
let i; | ||
let elmnt; | ||
let file; | ||
let xhttp; | ||
z = document.getElementsByTagName("*"); | ||
for (i = 0; i < z.length; i++) { | ||
elmnt = z[i]; | ||
file = elmnt.getAttribute("w3-include-html"); | ||
if (file) { | ||
xhttp = new XMLHttpRequest(); | ||
xhttp.onreadystatechange = function () { | ||
if (this.readyState == 4) { | ||
if (this.status == 200) { | ||
$(`#${elmnt.id}`).html(this.responseText); | ||
} | ||
if (this.status == 404) { | ||
$(`#${elmnt.id}`).html("Page not found."); | ||
} | ||
elmnt.removeAttribute("w3-include-html"); | ||
includeHTML(cb); | ||
} | ||
}; | ||
xhttp.open("GET", file, true); | ||
xhttp.send(); | ||
return; | ||
} | ||
} | ||
if (cb) { | ||
cb(); | ||
} | ||
} | ||
|
||
function enableCarousel(e) { | ||
e.target.removeEventListener("html-included", enableCarousel, false); | ||
$(".owl-carousel").owlCarousel({ | ||
stagePadding: 30, | ||
loop: false, | ||
autoplay: false, | ||
margin: 15, | ||
nav: true, | ||
navText: [ | ||
'<span class="uk-margin-small-right uk-icon" uk-icon="icon: chevron-left"></span>', | ||
'<span class="uk-margin-small-left uk-icon" uk-icon="icon: chevron-right"></span>', | ||
], | ||
responsive: { | ||
0: { | ||
items: 1, | ||
loop: true, | ||
}, | ||
600: { | ||
items: 2, | ||
loop: true, | ||
}, | ||
1000: { | ||
items: 3, | ||
}, | ||
1400: { | ||
items: 4, | ||
}, | ||
1600: { | ||
items: 4, | ||
}, | ||
}, | ||
}); | ||
} | ||
|
||
document.addEventListener("html-included", enableCarousel); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{{#each this}} | ||
<div id="item-{{@index}}" class="grid-item {{createClass company}} {{createClass country}} {{createClass department}} {{createClasses filters}} {{createClass domain}}"> | ||
<div class='f-cat active'> | ||
{{#if bio}} | ||
<div class='cat-bio' data-modal='{{@index}}'> | ||
{{/if}} | ||
<div class='city-photo-container'> | ||
<picture> | ||
<source srcset="{{webp img}}" type="image/webp"/> | ||
<img alt="" class="city-photo" src="{{img}}" loading="lazy" /> | ||
</picture> | ||
</div> | ||
{{#if bio}} | ||
</div> | ||
{{/if}} | ||
<div class='profile-details'> | ||
{{#if bio}} | ||
<div class='cat-bio' data-modal='{{@index}}'> | ||
{{/if}} | ||
<h6 class='name'>{{title}}{{name}}</h6> | ||
<h4 class='position'>{{job}}</h4> | ||
<a target='_blank' href='{{website}}' rel='noopener'> | ||
<h5 class='company-link'>{{company}}{{companyType}}</h5> | ||
</a> | ||
{{#if team}} | ||
<div class='department'>{{team}}</div> | ||
{{else}} | ||
{{#if department}} | ||
<div class='department'>{{department}}</div> | ||
{{/if}} | ||
{{/if}} | ||
{{#if domain}} | ||
<div class='chip-domain'>{{domain}}</div> | ||
{{/if}} | ||
</div> | ||
{{#if bio}} | ||
</div> | ||
{{/if}} | ||
<div class='icons'> | ||
{{#if linkedIn}} | ||
<a class='cat-linkedin' target='_blank' href='{{linkedIn}}' rel='noopener'><span | ||
class='icon linkedin' | ||
></span></a> | ||
{{/if}} | ||
{{#if twitter}} | ||
<a class='cat-twitter' target='_blank' href='{{twitter}}' rel='noopener'><span | ||
class='icon twitter' | ||
></span></a> | ||
{{/if}} | ||
{{#if country}} | ||
<div class='cat-location'><span class='location-label'>{{country}}</span><img | ||
alt='{{country}}' | ||
class='flag' | ||
src='{{flagUrl}}' | ||
loading='lazy' | ||
/></div> | ||
{{/if}} | ||
</div> | ||
</div> | ||
</div> | ||
{{/each}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters