Difference between revisions of "Template:Sidebar"
Adelo Vieira (talk | contribs) |
Adelo Vieira (talk | contribs) |
||
Line 250: | Line 250: | ||
so you can use the :checked selector on it. | so you can use the :checked selector on it. | ||
--> | --> | ||
− | <input id="inputButton" type="checkbox | + | <input id="inputButton" type="checkbox"/> |
<!-- | <!-- | ||
Line 307: | Line 307: | ||
<script> | <script> | ||
− | function myFunction() { | + | // function myFunction() { |
− | + | // var checkBox = document.getElementById("inputButton"); | |
− | + | // if (checkBox.checked == true){ | |
− | + | // $('#content').css('margin-left', '300px') | |
− | + | // $('#left-navigation').css({'cssText':'margin-left:300px'}) | |
− | + | // $('#menuToggle').css('margin-left', '-325px') | |
− | + | // $('#footer').css('margin-left', '308px') | |
− | + | // } else { | |
− | + | // $('#content').css('margin-left', '180px') | |
− | + | // $('#left-navigation').css({'cssText':'margin-left:180px'}) | |
− | + | // $('#menuToggle').css('margin-left', '-205px') | |
− | + | // $('#footer').css('margin-left', '180px') | |
− | + | // } | |
− | } | + | // } |
function checkUser(){ | function checkUser(){ | ||
Line 359: | Line 359: | ||
checkBox.checked = true | checkBox.checked = true | ||
} | } | ||
− | myFunction() | + | // myFunction() |
e.preventDefault() | e.preventDefault() | ||
} | } |
Revision as of 01:02, 10 March 2021