Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple Check on resize #7

Open
amitabhaghosh197 opened this issue Jan 28, 2015 · 0 comments
Open

Simple Check on resize #7

amitabhaghosh197 opened this issue Jan 28, 2015 · 0 comments

Comments

@amitabhaghosh197
Copy link

I am trying to check how it works . This is my code:

<script src="viewportSize.js"></script> <script> function resize_viewport(){ var width = viewportSize.getWidth(); var height = viewportSize.getHeight(); $(window).resize(function(){ if( width < 767 ){ //$('body').addClass('seven-six-less'); //$('body').css({'background':'#000'}); alert("Hi"); } }); } resize_viewport(); </script>

But I am not getting it worked. Can anyone please help? Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant