-
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.
Blog Post Template customisations and Scripts - Main CSS clean up (#33)
* 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.
- Loading branch information
1 parent
00c7bf2
commit a6937e3
Showing
3 changed files
with
111 additions
and
2 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,25 @@ | ||
/* --- Blog Template Scripts --- */ | ||
|
||
//Search Box Redirect | ||
$('form').submit(function() { | ||
setTimeout(function() { | ||
location.href = 'https://solcast.webflow.io/blog?*=' + $('#search').val(); | ||
}, 10); | ||
}); | ||
|
||
|
||
//Hides Table of Contents if no H2 found | ||
document.addEventListener("DOMContentLoaded", function() { | ||
setTimeout(function() { | ||
const tocElement = document.querySelector('.blog_summary-toc'); | ||
const linkWrapper = tocElement.querySelector('.blog_summary-toc_link-wrapper.is-h2'); | ||
|
||
if (linkWrapper && linkWrapper.textContent.trim() === "") { | ||
tocElement.style.display = "none"; | ||
} | ||
}, 200); | ||
}); | ||
|
||
|
||
//Resizes iFrames for the newsletter sign ups | ||
iFrameResize({log:true}); |