-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Splitting Code from Main solcast.webflow.script.js file into individu…
…al js files. Updates to Testimonials and API Status fix (#35) * Hero Counter additon and update to main script file. * Updated gap on Proof Splide * Updated Gap * Update to main script * Updated Splide JS * Update to Testimonial Slider to fix mobile view * Splitting component scripts out * Blog Template Page customisations and scripts. * Update to CSS file * Updated Class Selector for Section Banner * Refactored CSS code to remove !important * Updated comments on css file. * Update to CSS formatting * Updates to CSS and JS files for new components * update to css file * Fix issues in css file * Splitting Font Update CSS * updated js files and split js from main solcast.webflow.scripts.js into individual js files.
- Loading branch information
1 parent
fd9c381
commit c4dd084
Showing
3 changed files
with
66 additions
and
95 deletions.
There are no files selected for viewing
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,53 @@ | ||
/*------------------------------*/ | ||
/* Testimonial Slider Settings */ | ||
/*------------------------------*/ | ||
|
||
$(".slider-main_component").each(function (index) { | ||
let loopMode = true; | ||
if ($(this).attr("loop-mode") === "true") { | ||
loopMode = true; | ||
} | ||
let sliderDuration = 300; | ||
if ($(this).attr("slider-duration") !== undefined) { | ||
sliderDuration = +$(this).attr("slider-duration"); | ||
} | ||
const swiper = new Swiper($(this).find(".swiper")[0], { | ||
speed: sliderDuration, | ||
loop: loopMode, | ||
autoHeight: true, | ||
followFinger: true, | ||
freeMode: false, | ||
slideToClickedSlide: false, | ||
spaceBetween: "4%", | ||
rewind: false, | ||
mousewheel: { | ||
forceToAxis: true | ||
}, | ||
keyboard: { | ||
enabled: true, | ||
onlyInViewport: true, | ||
}, | ||
breakpoints: { | ||
// mobile landscape | ||
480: { | ||
slidesPerView: 1, | ||
spaceBetween: "4%" | ||
}, | ||
// tablet | ||
768: { | ||
slidesPerView: 1, | ||
spaceBetween: "4%" | ||
}, | ||
// desktop | ||
992: { | ||
slidesPerView: 2, | ||
spaceBetween: "3%" | ||
} | ||
}, | ||
navigation: { | ||
nextEl: $(this).find(".swiper-next")[0], | ||
prevEl: $(this).find(".swiper-prev")[0], | ||
disabledClass: "is-disabled" | ||
}, | ||
}); | ||
}); |
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,10 @@ | ||
// On first load of Search Page Hides empty results message | ||
|
||
document.addEventListener('DOMContentLoaded', function() { | ||
if (window.location.hash === '#empty') { | ||
const elements = document.querySelectorAll('.search-results_empty'); | ||
elements.forEach(element => { | ||
element.style.display = 'none'; | ||
}); | ||
} | ||
}); |