c0deM0nK424
Programmer
I'm building a simple website for a client of mine who runs his own plumbing and electrical business - the site has been entirely hand coded in CSS and uses CSS3 Animation for image transitions - but these are only visible in IE10 and Mozilla Firefox obviously heh.
here is the site:
in 'services' - you can see the three Div Elements which are basicaly boxes that hold an image correpsonding to the service type (i.e gas & heating , plumbing and electrical).
I have used jQuery to have content panes open up when the user clicks on any of these service boxes, and new divs will open accordingly (GasInfo, PlumbInfo and ElectricInfo) using some basic jQuery slidetoggle() functions.
What the client wants however is no overlapping of these panes - meaning then, that only one can be open at any one time.
So if i clicked on Gas & Heating - slidetoggle() for GasInfo occurs and the user can read information regarding this service.
IF I know click on Plumbing , slidetoggle() occurs for PlumbInfo and a new content pane opens where the user can read information regarding this service - BUT - the Gas & Heating information remains open too.
I know this is going to involve some conditional statements - but if somebody could point me in the right direction as to how to go abouts tihs - so that if one opens the other closes (only one content pane is opened/slidetoggled at any one forcing any other open one to close/slidetoggle back).
any ideas ?
Also the site when viewed on an iPad - the services page slightly goes off the screen - how to remedy this also ? Try to view it in Mozilla Firefox first please
im working on another site for a differnet client too - and im a relative newb with jQuery but learning it fast, so thats why im a bit pressed for time. Any help/tips appreciated thanks.
here is the site:
in 'services' - you can see the three Div Elements which are basicaly boxes that hold an image correpsonding to the service type (i.e gas & heating , plumbing and electrical).
I have used jQuery to have content panes open up when the user clicks on any of these service boxes, and new divs will open accordingly (GasInfo, PlumbInfo and ElectricInfo) using some basic jQuery slidetoggle() functions.
What the client wants however is no overlapping of these panes - meaning then, that only one can be open at any one time.
So if i clicked on Gas & Heating - slidetoggle() for GasInfo occurs and the user can read information regarding this service.
IF I know click on Plumbing , slidetoggle() occurs for PlumbInfo and a new content pane opens where the user can read information regarding this service - BUT - the Gas & Heating information remains open too.
I know this is going to involve some conditional statements - but if somebody could point me in the right direction as to how to go abouts tihs - so that if one opens the other closes (only one content pane is opened/slidetoggled at any one forcing any other open one to close/slidetoggle back).
any ideas ?
Also the site when viewed on an iPad - the services page slightly goes off the screen - how to remedy this also ? Try to view it in Mozilla Firefox first please
im working on another site for a differnet client too - and im a relative newb with jQuery but learning it fast, so thats why im a bit pressed for time. Any help/tips appreciated thanks.