From 99c0dddd70d844c6763c5872c6f6e6d6f6111742 Mon Sep 17 00:00:00 2001 From: Brian Dunnigan Date: Wed, 18 Oct 2017 15:01:58 -0400 Subject: [PATCH] Updating for SSL (again) Js files this time --- js/custom.js | 354 +++++++++++++++++++++---------------------- js/min/custom.min.js | 2 +- 2 files changed, 178 insertions(+), 178 deletions(-) diff --git a/js/custom.js b/js/custom.js index fc470b3..1cf8830 100644 --- a/js/custom.js +++ b/js/custom.js @@ -1,178 +1,178 @@ -jQuery(document).ready(function($) { - - $( ".social-vimeo > a" ).html( "DONATE" ); - - var search = ''; - var active = false; - $('.search').on('click',function(e){ - if($(e.target).attr('id')=='s') return; - active = true; - search = $(e.target).parent().html(); - $('.search').fadeOut(500,function(){ - $(this).html('
').fadeIn(500); - $(this).addClass('search-field'); - }); - }); - - $('body').on('click',function(e){ - if($(e.target).attr('id')=='s') return; - if($(e.target).parent().html()== search) return; - if(!active) return; - active = false; - $('.search').fadeOut(500,function(){ - $(this).html(search).fadeIn(500); - $('.search').removeClass('search-field'); - }); - }); - - $( "#footers" ).before( "
" ); - - $('select[name="discipline"] option:eq(0)').prop("selected", true); - $('select[name="major"] option:eq(0)').prop("selected", true); - - var isCourseSelectActive = false; - var selectedDiscipline; - $('select[name="discipline"]').change(function(e){ - var discipline = $(this).find(":selected").text(); - selectedDiscipline = discipline; - $.ajax({ - type: "POST", - url: ece_object.ajaxurl, - data: { - action: "ece_discipline_courses", - discipline : discipline - }, - success: function(response){ - if( isCourseSelectActive == true ){ - $('.course-option').remove(); - } - $.each(response, function(i,v){ - $('select[name="course"]').append( - $('