# Overview

stc-donation.js is inserted on all donation pages of the site where there is /Donation2 in the URL. It is also included on the donation_thank_you PageBuilder page, which is used to display confirmation messages for Venmo and ApplePay payments.

This code does the following:

  • Reformats the responsive HTML layout of the donation pages to match the designs
  • Adds in form masking, validation and analytics
  • Adds in Apple Pay and Venmo payments types and triggers a 3rd party integration scripts, Braintree, that live on another STC server.
  • Resolve URL conficts that may happen when user reloads thank you page
  • Displays and hides a fancybox pop-up on the screen when the user attempts to leave the page
  • Reformats the responsive HTML layout of the donation thank you pages