Skip to content
Merged
Show file tree
Hide file tree
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
138 changes: 71 additions & 67 deletions core/static/core/main_style/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,11 @@ document.addEventListener('DOMContentLoaded', () => {
/**
* Initiate glightbox
*/
const glightbox = GLightbox({
selector: '.glightbox'
});
if (typeof GLightbox !== 'undefined') {
GLightbox({
selector: '.glightbox'
});
}

/**
* Porfolio isotope and filter
Expand Down Expand Up @@ -216,69 +218,71 @@ document.addEventListener('DOMContentLoaded', () => {
/**
* Clients Slider
*/
new Swiper('.clients-slider', {
speed: 400,
loop: true,
autoplay: {
delay: 5000,
disableOnInteraction: false
},
slidesPerView: 'auto',
breakpoints: {
320: {
slidesPerView: 2,
spaceBetween: 40
},
480: {
slidesPerView: 3,
spaceBetween: 60
},
640: {
slidesPerView: 4,
spaceBetween: 80
},
992: {
slidesPerView: 6,
spaceBetween: 120
}
}
});

/**
* Testimonials Slider
*/
new Swiper('.testimonials-slider', {
speed: 600,
loop: true,
autoplay: {
delay: 5000,
disableOnInteraction: false
},
slidesPerView: 'auto',
pagination: {
el: '.swiper-pagination',
type: 'bullets',
clickable: true
}
});

/**
* Testimonials Slider
*/
new Swiper('.portfolio-details-slider', {
speed: 600,
loop: true,
autoplay: {
delay: 5000,
disableOnInteraction: false
},
slidesPerView: 'auto',
pagination: {
el: '.swiper-pagination',
type: 'bullets',
clickable: true
}
});
if (typeof Swiper !== 'undefined') {
new Swiper('.clients-slider', {
speed: 400,
loop: true,
autoplay: {
delay: 5000,
disableOnInteraction: false
},
slidesPerView: 'auto',
breakpoints: {
320: {
slidesPerView: 2,
spaceBetween: 40
},
480: {
slidesPerView: 3,
spaceBetween: 60
},
640: {
slidesPerView: 4,
spaceBetween: 80
},
992: {
slidesPerView: 6,
spaceBetween: 120
}
}
});

/**
* Testimonials Slider
*/
new Swiper('.testimonials-slider', {
speed: 600,
loop: true,
autoplay: {
delay: 5000,
disableOnInteraction: false
},
slidesPerView: 'auto',
pagination: {
el: '.swiper-pagination',
type: 'bullets',
clickable: true
}
});

/**
* Portfolio details slider
*/
new Swiper('.portfolio-details-slider', {
speed: 600,
loop: true,
autoplay: {
delay: 5000,
disableOnInteraction: false
},
slidesPerView: 'auto',
pagination: {
el: '.swiper-pagination',
type: 'bullets',
clickable: true
}
});
}

/**
* Animation on scroll function and init
Expand All @@ -295,4 +299,4 @@ document.addEventListener('DOMContentLoaded', () => {
aos_init();
});

});
});
3 changes: 2 additions & 1 deletion core/templates/core/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
<!-- Bootstrap -->
<link href="{% static 'core/vendor/bootstrap/css/bootstrap.min.css' %}" rel="stylesheet">
<link href="{% static 'core/vendor/bootstrap-icons/bootstrap-icons.css' %}" rel="stylesheet">
<link href="{% static 'core/vendor/aos/aos.css" rel="stylesheet' %}">
<link href="{% static 'core/vendor/aos/aos.css' %}" rel="stylesheet">
<link href="{% static 'core/vendor/glightbox/css/glightbox.min.css' %}" rel="stylesheet">

<!-- Variables CSS Files. Uncomment your preferred color scheme -->
<link href="{% static 'core/main_style/css/variables-green2.css' %}" rel="stylesheet">

<!-- Template Main CSS File -->
<link href="{% static 'core/main_style/css/main.css' %}" rel="stylesheet">
<style>
table.dataTable thead tr:first-child th {
position: relative;
padding-right: 2.3rem;
Expand Down
53 changes: 28 additions & 25 deletions core/templates/core/searchSample.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,34 @@

{% load static %}

{% block extra_css %}
<style>
#sample_list {
width: 100% !important;
table-layout: auto;
}
#sample_list a.sample-browser-link {
color: var(--color-blue);
font-weight: 500;
text-decoration: underline;
text-underline-offset: 0.12em;
}
#sample_list a.sample-browser-link:hover,
#sample_list a.sample-browser-link:focus {
color: var(--color-primary);
}
#sample_list thead tr.filter-row th select {
min-width: 150px;
width: 100%;
box-sizing: border-box;
}
#sample_card .card {
width: 100%;
max-width: 100%;
}
</style>
{% endblock %}

{% block content %}
{% include "core/cdnTableFunctionality.html" %}

Expand Down Expand Up @@ -77,31 +105,6 @@ <h1>Sample Browser</h1>
<th></th>
<th></th>
</tr>
<style>
#sample_list {
width: 100% !important;
table-layout: auto;
}
#sample_list a.sample-browser-link {
color: var(--color-blue);
font-weight: 500;
text-decoration: underline;
text-underline-offset: 0.12em;
}
#sample_list a.sample-browser-link:hover,
#sample_list a.sample-browser-link:focus {
color: var(--color-primary);
}
thead tr.filter-row th select {
min-width: 150px;
width: 100%;
box-sizing: border-box;
}
.card {
width: 100%;
max-width: 100%;
}
</style>
</thead>
<tbody>
{% for pk, s_name, col_date, lineage, col_inst in sample_summary %}
Expand Down
Loading