Add span tag to first word in title | Adobe Business Catalyst

<script>
$('#content h1').each(function(){
   var me = $(this)
      , t = me.text().split(' ');
   me.html( '<span>'+t.shift()+'</span> '+t.join(' ') );
 });
</script>

Smooth Page Scrolling when click a tag ID | Adobe Business Catalyst

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script>
$(function() {
   $('a[href*="#"]:not([href="#"])').click(function() {
       if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
           var target = $(this.hash);
           target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
           if (target.length) {
               $('html, body').animate({
                   scrollTop: target.offset().top
               }, 1000);
               return false;
           }
       }
   });
});
</script>

Words limit for title using jquery | Adobe Business Catalyst

<script>
$(document).ready(function(){
   $('.project-details').each(function(i, e){
       var projTypeTitle = ($(e).find('h3'));
       var projTypeTitleArr = projTypeTitle.text().split(' ');
       suffixText = '';
       
       if(projTypeTitleArr.length >= 4){
           suffixText = '...';
           projTypeTitleArr.splice(4);
       }
       projTypeTitleChanged = projTypeTitleArr.join(" ") + suffixText;
       projTypeTitle.text(projTypeTitleChanged);
   })
});
</script>

Remove photo gallery table using jquery | Adobe Business Catalyst

<script>
$('table.photogalleryTable').replaceWith($('table.photogalleryTable').html()
  .replace(/<tbody/gi, "<div id='photogalleryTable' class='row'")
  .replace(/<tr/gi, "")
  .replace(/<\/tr>/gi, "")
  .replace(/<td class="photogalleryItem"/gi, "<div class='col-md-4'")
  .replace(/<\/td>/gi, "</div>")
  .replace(/<\/tbody/gi, "<\/div")
);
</script>

Disable mouse scroll wheel zoom on embedded Google Maps | Adobe Business Catalyst

<div id="google-maps">
  <iframe frameborder="0" height="450" src="***embed-map***"  width="100"> </iframe>
</div>

<style>
#google-maps iframe { pointer-events:none; }
</style>

<script>
  $(function() {
    $('#google-maps').click(function(e) {
        $(this).find('iframe').css('pointer-events', 'auto');
    }).mouseleave(function(e) {
        $(this).find('iframe').css('pointer-events', 'none');
    });
  })
</script>

Page redirects | Adobe Business Catalyst

<script type="text/javascript">
 (function() {
  var originalPage = document.location.pathname;
  switch (originalPage) {
   case "/html/contact.htm":
    document.location.href = "/contact";
    break;
   case "/html/herdBull.htm":
    document.location.href = "/index.htm";
    break;
  }
 })();
</script>