Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Designed by: */
- /* Galym Kerimbekov kegalym2 DOT mail.ru */
- /* especially for Made Simple CMS */
- /* ======================================= */
- /* PORTRAIT MEDIA QUERY EVENT */
- $(document).ready(function() {
- $("button").click(function() {
- if ($("button").attr("aria-expanded", "true")) {
- var id = document.getElementById('main');
- var top = 300;
- id.setAttribute("style", "margin-top:" + top.toString() + "px" );
- } else {
- $("button").attr("aria-expanded", "false");
- var id = document.getElementById('main');
- var top = 0;
- id.setAttribute("style", "margin-top:" + top.toString() + "px" );
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement