Line 453: | Line 453: | ||
</div> | </div> | ||
− | <script> | + | <script type="text/javascript"> |
− | (function (window, document) { | + | ( function(window,document){ |
var layout = document.getElementById('layout'), | var layout = document.getElementById('layout'), | ||
menu = document.getElementById('menu'), | menu = document.getElementById('menu'), | ||
menuLink = document.getElementById('menuLink'), | menuLink = document.getElementById('menuLink'), | ||
− | content = document.getElementById(' | + | content = document.getElementById('main'); |
function toggleClass(element, className) { | function toggleClass(element, className) { | ||
Line 492: | Line 492: | ||
toggleAll(e); | toggleAll(e); | ||
}; | }; | ||
+ | |||
content.onclick = function(e) { | content.onclick = function(e) { | ||
if (menu.className.indexOf('active') !== -1) { | if (menu.className.indexOf('active') !== -1) { | ||
Line 497: | Line 498: | ||
} | } | ||
}; | }; | ||
− | |||
− | |||
}(this, this.document)); | }(this, this.document)); | ||
</script> | </script> | ||
− | <script> | + | <script type="text/javascript" > |
function Show(tagId) { | function Show(tagId) { | ||
if (document.getElementById(tagId).style.display=="none") { | if (document.getElementById(tagId).style.display=="none") { | ||
Line 514: | Line 513: | ||
} | } | ||
</script> | </script> | ||
+ | |||
</body> | </body> | ||
</html> | </html> |
Revision as of 16:41, 17 October 2017