Thursday, October 24, 2019

My jquery CHTV



/* ==========================================================================
   Stiky header
   ========================================================================== */ 
  jQuery(document).on("scroll", function(){
if (jQuery(document).scrollTop() > 130){
jQuery(".stiky_hd").addClass("shrink");
} else {
jQuery(".stiky_hd").removeClass("shrink");
}
if (window.matchMedia('(max-width: 767px)').matches) {
        jQuery(".stiky_hd").removeClass("shrink");
    }
});

jQuery(document).ready(function(){
  new WOW().init();
  jQuery(".togglebutton button").click(function(){
  jQuery("#nav-primary ul.menu").slideToggle();
  jQuery(this).toggleClass('btn-open').toggleClass('btn-close');
});
  jQuery("textarea#edit-submitted-message").attr('id', 'message');
  jQuery(".grippie").css( "display", "none" );
  jQuery(".webform-submit").attr('id', 'submit-btn');
  jQuery(".webform-submit").css( "color", "#fff" ).css( "text-transform", "uppercase" );
  jQuery(".fl-post-date").css( "font-size", "14px" );
  jQuery(".region-right-sidebar>#block-views-block-block-1>.text-center").wrap('
');

  jQuery("").prependTo(".asid_con");
  jQuery(".region-right-sidebar>#block-views-block-block-1").wrap('
');
  jQuery("").prependTo(".asid_con");
jQuery( ".view-features>.view-content>.views-row-first").children().children().children().wrap( "
");
  jQuery( ".view-features>.view-content>.views-row-even").children().children().children().wrap( "
");
  jQuery(".view-features>.view-content>.views-row-last").children().children().children().wrap( "
");

  
  var title = jQuery('.fl-post-title').text();
  var titlelesstext = title.substr(0,30);
  var titlelesstext1 = titlelesstext.split("-",3);
  jQuery('.in_year>img[alt=""]').attr('alt', titlelesstext1+'.college health');
  
  var nodetitle = jQuery('.node-subtitle').text();
  var nodetitletext = nodetitle.substr(0,50);
  var nodetitleless = nodetitletext.split("-",3);
  jQuery('.field-item.even>img[alt=""]').attr('alt', nodetitleless+'.college health');
});

No comments:

Post a Comment

If you have any problem please let me know.