<!---->
document.addEventListener("DOMContentLoaded", function () {
const counters = document.querySelectorAll(".count-up");
// Function to animate the count-up
const countUp = (element, start, end, duration) => {
let startTime = null;
const step = (currentTime) => {
if (!startTime) startTime = currentTime;
const progress = Math.min((currentTime - startTime) / duration, 1);
element.textContent = Math.floor(progress * (end - start) + start);
if (progress {
entries.forEach((entry) => {
if (entry.isIntersecting) {
const target = parseInt(entry.target.getAttribute("data-target"), 10);
const duration = parseInt(entry.target.getAttribute("data-duration"), 10) || 2000; // Default 2 seconds
const current = parseInt(entry.target.textContent.replace(/[^\d]/g, ""), 10) || 0;
// Only animate if target value is greater than the current value
if (current observer.observe(counter));
});
.university_stats {
scroll-behavior: smooth;
-webkit-box-shadow: inset 0px 0px 96px 0px rgba(0,0,0,0.3);
-moz-box-shadow: inset 0px 0px 96px 0px rgba(0,0,0,0.3);
box-shadow: inset 0px 0px 96px 0px rgba(0,0,0,0.3);
}
.count-up {
display: inline-block;
}
.stat_tile h3 span {
display: flex;
flex-direction: row;
font-size: 60px;
}
// Function to add the alt attribute to images with the specified src
function addAltToImages() {
const images = document.querySelectorAll('img');
images.forEach(img => {
if (img.src.includes("https://ad.ipredictive.com/d/track/event")) {
img.setAttribute('alt', '');
}
});
}
// Create a MutationObserver to watch for changes in the DOM
const observer = new MutationObserver(mutations => {
mutations.forEach(mutation => {
mutation.addedNodes.forEach(node => {
// Check if the added node is an img element
if (node.tagName === 'IMG') {
if (node.src.includes("https://ad.ipredictive.com/d/track/event")) {
node.setAttribute('alt', '');
}
} else if (node.querySelectorAll) {
// If it's not an img, check for any img elements inside it
const imgs = node.querySelectorAll('img');
imgs.forEach(img => {
if (img.src.includes("https://ad.ipredictive.com/d/track/event")) {
img.setAttribute('alt', '');
}
});
}
});
});
});
// Start observing the document body for child node additions
observer.observe(document.body, {
childList: true,
subtree: true
});
// Initial call to handle any existing images
addAltToImages();
Blaze your Trail
#0 Most Affordable University in Utah
0 Average Class Size
0% Of Students Offered Scholarships, Grants, or other Financial Aid
0% Acceptance Rate to Medical School
0+ Academic Programs
0+ Days of Sunshine
Find my Program
Plot your CourseFollow us on social media
Stay updated on university news, events, and campus life