Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- ( function( $ ) {
- $( document ).ready( function() {
- function bannerPosition( el, pos ) {
- var banner_width = el.outerWidth(),
- banner_height = el.height();
- if ( pos == 'left' ) {
- el.css( {
- 'left': ( ( $( window ).width() - $( '.et_pb_column_0' ).width() ) / 2 ) - banner_width - 10,
- } )
- }
- if ( pos == 'right' ) {
- el.css( {
- 'right': ( ( $( window ).width() - $( '.et_pb_column_0' ).width() ) / 2 ) - banner_width - 10,
- } )
- }
- }
- setTimeout( function() {
- bannerPosition( $( '.wpc-banner-left' ), 'left' );
- bannerPosition( $( '.wpc-banner-right' ), 'right' );
- }, 100 );
- } );
- } )( jQuery );
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement