Template:Team:HokkaidoU Japan/header/js/wiki menu.js

From 2013.igem.org

(Difference between revisions)
(Created page with "<html><script type="text/javascript"> $(html).css('background', 'red'); </script></html>")
 
(9 intermediate revisions not shown)
Line 1: Line 1:
<html><script type="text/javascript">
<html><script type="text/javascript">
-
$(html).css('background', 'red');
+
 
 +
$('<div id="wiki-menu">').appendTo('#top-section');
 +
 
 +
$('<div id="open-wiki-menu">').appendTo('#top-section').text('Wiki Menu');
 +
 
 +
$('<h2>').appendTo('#wiki-menu').text('Page Menu');
 +
$('.left-menu').appendTo('#wiki-menu');
 +
 
 +
$('<h2>').appendTo('#wiki-menu').text('User Menu');
 +
$('.right-menu').appendTo('#wiki-menu');
 +
 
 +
$('<div id="close-wiki-menu">').appendTo('#wiki-menu').text('Close');
 +
 
 +
$('#open-wiki-menu').click(function(){
 +
  $(this).hide();
 +
  $('#wiki-menu').show();
 +
});
 +
 
 +
$('#close-wiki-menu').click(function(){
 +
  $('#wiki-menu').hide();
 +
  $('#open-wiki-menu').show();
 +
});
 +
 
</script></html>
</script></html>

Latest revision as of 11:28, 29 June 2013