Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <a href="" class="logo">
- <img id="brand" src="assets/img/image.png" alt="Image">
- </a>
- $(document).ready(function(){
- var windowSize = $( window ).width();
- if (('windowSize' < 400 )) { $('#brand').attr('src', 'assets/img/logo-2.png')};
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement