Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- // Function to sync the sizes of the divs
- function syncSize() {
- $("#banner_description").width($(".banner_secondary_title").outerWidth(true));
- }
- // Sync the size when a change is made
- $(".banner_secondary_title").resize(function(e) {
- syncSize();
- });
- // Initial sync after document setup
- syncSize();
- });
Add Comment
Please, Sign In to add comment