<script src="https://www.ohiochristian.edu/sites/default/files/bootstrap-native-v4.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script>
<link rel="stylesheet" href="https://www.ohiochristian.edu/sites/default/files/ocu.style.css">
<div class="container">
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" data-toggle="tab" href="#news" role="tab" aria-controls="News" aria-selected="true">News</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#athletics" role="tab" aria-controls="Athletics" aria-selected="false">Athletics</a>
</li>
</ul>
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="news" role="tabpanel" aria-labelledby="news-tab">
<div class="row ocu-carousel">
<div class="carousel slide col-sm-5 col-md-6 col-lg-7" data-ride="carousel" data-interval="5000">
<div class="carousel-inner">
<div class="carousel-item">
<div class="carousel-image"><a href="#"></a><span>FEBRUARY 5TH, 2019</span></div>
<h3 class="carousel-text"><a href="#">Marketing and Consumer Behavior Degree Opens Doors</a></h3>
<p class="carousel-text">Ohio Christian University’s Information Technology and Data Analytics degrees train students for high-tech careers in today’s ever-changing environment. By offering both a Bachelor of Science in Information Technology and a Bachelor of Science
in Data Analytics, OCU prepares students to meet all the challenges in these continually growing and evolving fields.</p>
</div>
<div class="carousel-item">
<div class="carousel-image"><a href="#"></a><span>FEBRUARY 8TH, 2019</span></div>
<h3 class="carousel-text"><a href="#">4.0 Students Recognized in Chapel Service</a></h3>
<p...
var controlsContainer = window.document.getElementById('outside-controls-container');
var carouselButtons = controlsContainer.children[0].children;
var carouselImages = window.document.getElementsByClassName('carousel-image');
var carouselText = window.document.getElementsByClassName('carousel-text');
var carouselTextH3 = window.document.querySelectorAll('H3.carousel-text');
var carouselTextP = window.document.querySelectorAll('p.carousel-text');
var thumbnailTextP = window.document.querySelectorAll('.thumbnail-text > p');
var carouselInner = document.getElementsByClassName('carousel-inner');
var thumbnails = window.document.getElementsByClassName('thumbnail');
var carouselItems = document.getElementsByClassName('carousel-item');
var marker = window.document.getElementById('thumbnail-marker');
var carousel = window.document.querySelector('.carousel').Carousel;
// the Ratio is used to determine the height vs width of the image
var ratio = .7322;
// Attahes the function called addEvents
thumbnails.addEvents = function() {
// for each thumbnail, run add an event
for (i = 0; i < this.length; i++) {
// console.log(this[i]);
// we want a click event that when clicked will run the function testMyClick
// this in this case refers to the array of elements that have class="thumbnails"
this[i].addEventListener('click', onThumbnailClickEvent);
}
};
carouselItems.addEvents = function() {
// for each thumbnail, run add an event
for (i = 0; i < this.length; i++) {
// console.log(this[i]);
// we need to watch for changes to the carousel's auto-scroll event
//this[i].addEventListener('transitionend', transitionEnd);
//this[i].addEventListener('transitionstart', transitionStart);
}
}
// this function runs everytime a thumbnail is clicked
function onThumbnailClickEvent() {
// if the current state of the slider is moving, ignore the click:
if...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.