/******* Do not edit this file ******* Simple Custom CSS and JS - by Silkypress.com Saved: Dec 10 2020 | 16:22:46 */ //linked on COE, DEL DSPS, HEXS, QLoop, AI sites as of 8/22/20 jQuery(document).ready(function($) { //replace word home in breadcrumbs with site name var siteTitle = $("h1.headerTitle").text(); if($("p.crumbs").length){ $('p.crumbs a:first-of-type').text(siteTitle); $('p.crumbs').html( $('p.crumbs').html().replace(/\»/g, '›') ); }; //adding class to amy sidebar layouts used for mobile arrangement of side menu $(".et_pb_section.aks-sidebar").parents("body").addClass("aks-layout-sidebar"); //Cooperating Teacher Training Menu $('.aks-ctt-menu-toggle-toggle a').on('click', function() { $('body').toggleClass('aks-menu-closed'); }); //smoother and more accessible divi toggle $(".et_pb_toggle .et_pb_toggle_title").attr('tabindex', '0'); function aksToggle(thisObj) { var topToggle = thisObj.parents(".et_pb_toggle"); $(topToggle).find(".et_pb_toggle_content").slideToggle(); if (!$(topToggle).hasClass("et_pb_toggle_open")) { $(topToggle).addClass("et_pb_toggle_open").removeClass("et_pb_toggle_close"); } else { $(topToggle).removeClass("et_pb_toggle_open").addClass("et_pb_toggle_close"); } if($(topToggle).hasClass("et_pb_accordion_item")) { $(topToggle).siblings('.et_pb_toggle_open').removeClass("et_pb_toggle_open").addClass("et_pb_toggle_close").find(".et_pb_toggle_content").slideUp(); } } $(".et_pb_toggle .et_pb_toggle_title").click(function() { aksToggle($(this)); }); $(".et_pb_toggle .et_pb_toggle_title").keypress(function(event) { if (event.which == 13) { aksToggle($(this)); } }); //buttons to play and pause background video $("button.aks-play-video").click(function(){ $(this).parents(".et_pb_section_video").find("video").get(0).play(); }); $("button.aks-pause-video").click(function(){ $(this).parents(".et_pb_section_video").find("video").get(0).pause(); }); //feedzy rss $(".feedzy-rss .rss_item").each(function(){ var str = $(this).find('.rss_content').text(); var trimstr = $.trim(str); if((trimstr).startsWith("…")) { $(this).find('.rss_content').css("display", "none"); } var postLink = $(this).find('.title a').attr('href'); var postTitle = $(this).find('.title a').text(); $(this).find('.title').replaceWith($('

' + postTitle + '

')); if ($(this).find('.rss_image').length) { var postImage = $(this).find('.fetched').removeAttr("title").detach(); $(this).find('.rss_image').append(postImage); $(this).find('.rss_image > a').detach(); if ($(this).parents('.et_pb_module').hasClass('aks-rss-read-more')) { $('div.rss_image,h3.aks-rss-post-title').wrapAll('
') } } else { $(this).addClass("aks-rss-item-no-pic"); } if ($(this).parents('.et_pb_module').hasClass('aks-rss-read-more')) { $(this).append('

Read Story

') } else { $(this).wrapInner(''); } }); }) //end jquery //amy