Note that there are some explanatory texts on larger screens.

plurals
  1. POwindow resize issue using jquery
    primarykey
    data
    text
    <p>Please go through below image<br /> <a href="https://dl.dropboxusercontent.com/u/36614618/Doubts/onlineChatImg.jpg" rel="nofollow">https://dl.dropboxusercontent.com/u/36614618/Doubts/onlineChatImg.jpg</a><br /> In the image above 'Image 01' you can find a onlineChat div at the right side of the html document. When I hover on online chat div, we can find a search input and hide online chat button '|>' to the bottom of the online chat. please go through above image 'Image 02'. Now when I click on hide button '|>', onlinechat div is getting hide 'Image 03'. As soon as onlinechat div gets hide, an another icon gets displayed, to showup onlinechat again '|&lt;'. Till now its working fine.<br /> But the issue is, when I resize my window, Onlinechat Div getting displayed automatically. What I am looking for is While window resize, if onlinechat is hidden, then it should be hidden (shouldn't show up).<br /> Above concept is somewhat same as Facebook online chat<br /></p> <pre><code>$('#onlineFriendsSearchShow').hide();// Default Search input is hide. $('#OnlineChathideShowIcon').on('click',function(){ //When clicked on '|&gt;' button, onlineChat div hide and left part div gets width of 100%. $('#rapMusicSocialNetworkRightPart').hide();//onlineChat div getting hide. $('#rapMusicSocialNetworkLeftPartWrapper').css('width','100%'); //Left part gets width of 100%. $('#onlineFriendsSearchShow').show();//show button '|&lt;' gets displayed. }); $('#onlineFriendsSearchShow').bind('click',function(){ //When clicked on '|&lt;' show button. (to get right onlineChat div back). $(this).hide();//'|&lt;' button hide. $('#onlineFriendsSearch').show();//search input show. $('#rapMusicSocialNetworkRightPart').show();//onlineChat div show. var widthRap = $(window).width()-201;//created variable having mainWindow width - onlineChat Div width. $('#rapMusicSocialNetworkLeftPartWrapper').css('width',widthRap);//variable value assigning to left part, so left and right divs get's adjusted within document. }); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload