?
Current Path : /home1/savoy/www/old_site/assets/js/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/www/old_site/assets/js/script.js |
$(document).ready(function () { /*-----------------------------------------------------------------------------------*/ /* Navigation dropdown /*-----------------------------------------------------------------------------------*/ $('ul.sf-menu').superfish({ delay: 0, animation: {opacity:'show',height:'show'}, speed: 250 }); /*-----------------------------------------------------------------------------------*/ /* Scrolling /*-----------------------------------------------------------------------------------*/ $(document).ready(function() { jQuery.fn.topLink = function(settings) { settings = jQuery.extend({ min: 1, fadeSpeed: 200 }, settings); return this.each(function() { //listen for scroll var el = $(this); el.hide(); //in case the user forgot $(window).scroll(function() { if($(window).scrollTop() >= settings.min) { el.fadeIn(settings.fadeSpeed); } else { el.fadeOut(settings.fadeSpeed); } }); }); }; }); //usage w/ smoothscroll $(document).ready(function() { //set the link $('#top-link').topLink({ min: 400, fadeSpeed: 200 }); //smoothscroll $('#top-link').click(function(e) { e.preventDefault(); $.scrollTo(0,500); }); }); /*-----------------------------------------------------------------------------------*/ /* Cycle plugin /*-----------------------------------------------------------------------------------*/ $(document).ready(function(){ $('#cycle').cycle({ fx: 'fade', next: '#news_next', prev: '#news_previous' }); $('#user_feedback').cycle({ fx: 'scrollHorz', next: '#test_next', prev: '#test_previous', pager: '#nav', pagerAnchorBuilder: function(idx, slide) { // return selector string for existing anchor return '#nav li:eq(' + idx + ') a'; } }); $('.cycle1').cycle({ fx: 'fade', pager: '#service_pager1', slideExpr: 'img' }); $('.cycle2').cycle({ fx: 'fade', pager: '#service_pager2', slideExpr: 'img' }); $('.cycle3').cycle({ fx: 'fade', pager: '#service_pager3', slideExpr: 'img' }); $('.cycle4').cycle({ fx: 'fade', pager: '#service_pager4', slideExpr: 'img' }); $('.cycle5').cycle({ fx: 'fade', pager: '#service_pager5', slideExpr: 'img' }); $('.portfolio-single-cycle').cycle({ fx: 'fade' }); }); /*-----------------------------------------------------------------------------------*/ /* Tweet! plugin for twitter /* remember to change "aldrinlsc" to your username /*-----------------------------------------------------------------------------------*/ jQuery(function($){ $(".tweet").tweet({ username: "aldrinlsc", join_text: "auto", avatar_size: 32, count: 3, auto_join_text_default: null, auto_join_text_ed: null, auto_join_text_ing: null, auto_join_text_reply: null, auto_join_text_url: null, loading_text: "Loading tweets..." }); }); /*-----------------------------------------------------------------------------------*/ /* Mosaic /*-----------------------------------------------------------------------------------*/ $(document).ready(function($){ $('.fade').mosaic(); }); /*-----------------------------------------------------------------------------------*/ /* Prettyphoto /*-----------------------------------------------------------------------------------*/ $(document).ready(function(){ $("a[rel^='prettyPhoto']").prettyPhoto({theme:'light_rounded'}); }); /*-----------------------------------------------------------------------------------*/ /* Nivoslider /*-----------------------------------------------------------------------------------*/ $(window).load(function() { $('#slider').nivoSlider(); }); /*-----------------------------------------------------------------------------------*/ /* Accordion /*-----------------------------------------------------------------------------------*/ $('dl.toggle-main dt').filter(':first-child').addClass('toggle-active'); $('dd.toggle-content').filter(':nth-child(n+3)').addClass('hide'); $('dl.toggle-main').on('click', 'dt', function() { $(this) .addClass('toggle-active') .next() .slideDown(200) .siblings('dd.toggle-content') .slideUp(200) .prev() .removeClass('toggle-active'); }); /*-----------------------------------------------------------------------------------*/ /* OneByOne Slider /*-----------------------------------------------------------------------------------*/ $(document).ready(function() { $('#banner').oneByOne({ className: 'oneByOne1', easeType: 'random', slideShow: true }); }); /*-----------------------------------------------------------------------------------*/ /* Parallax /*-----------------------------------------------------------------------------------*/ $(document).ready(function(){ $('#parallax ul li').parallax( {mouseport: $('#parallax')}, {xparallax: '100px', yparallax: '30px'}, {xparallax: '300px', yparallax: '50px'}, {xparallax: '150px', yparallax: '30px'}, {xparallax: '250px', yparallax: '70px'} ); }); /*-----------------------------------------------------------------------------------*/ /* Tab /*-----------------------------------------------------------------------------------*/ //Default Action $(".tab_content").hide(); //Hide all content $("ul.tabs li:first").addClass("tab-active").show(); //Activate first tab $(".tab_content:first").show(); //Show first tab content //On Click Event $("ul.tabs li").click(function() { $("ul.tabs li").removeClass("tab-active"); //Remove any "active" class $(this).addClass("tab-active"); //Add "active" class to selected tab $(".tab_content").hide(); //Hide all tab content var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content $(activeTab).fadeIn(); //Fade in the active content return false; }); /*-----------------------------------------------------------------------------------*/ /* Notification box /*-----------------------------------------------------------------------------------*/ $(".close").click(function() { $(this).parent(".grid_3").fadeOut().delay(2000).remove(); return false; }); /*-----------------------------------------------------------------------------------*/ /* Quicksand /*-----------------------------------------------------------------------------------*/ var $filterType = $('#filterOptions li.active a').attr('class'); var $holder = $('ul.portfolio'); var $data = $holder.clone(); $('#filterOptions li a').click(function(e) { $('#filterOptions li').removeClass('active'); var $filterType = $(this).attr('class'); $(this).parent().addClass('active'); if ($filterType == 'all') { var $filteredData = $data.find('li'); } else { var $filteredData = $data.find('li[data-type=' + $filterType + ']'); } $holder.quicksand($filteredData, { duration: 800, easing: 'easeInOutQuad' }, function(){ $('.fade').mosaic(); $("ul.portfolio a[rel^='prettyPhoto']").prettyPhoto({ theme:'light_rounded' }); }); return false; }); });