Team:UNIK Copenhagen/test3
From 2014.igem.org
(Difference between revisions)
(4 intermediate revisions not shown) | |||
Line 2: | Line 2: | ||
<style type="text/css"> | <style type="text/css"> | ||
.helpicon{vertical-align:text-top;} | .helpicon{vertical-align:text-top;} | ||
- | .hand{cursor: | + | .hand{cursor:hand; |
cursor:pointer;} | cursor:pointer;} | ||
- | .hidden | + | .hidden{display:none;} |
.modalicon{vertical-align:bottom; | .modalicon{vertical-align:bottom; | ||
Line 15: | Line 15: | ||
</script> | </script> | ||
- | <SCRIPT | + | <SCRIPT> |
function initDialog(target, title, focus, completecode, closecode) { | function initDialog(target, title, focus, completecode, closecode) { | ||
- | $(target).dialog({ | + | $(target).dialog( { |
- | modal:true, | + | modal: true, |
- | //title:title, | + | //title: title, |
- | width:450 | + | width: 450, |
- | closeText:'Luk', | + | closeText: 'Luk', |
- | buttons:{Ok:function(){$(this).dialog('close');}}, | + | buttons: { Ok: function () { $(this).dialog('close'); } }, |
- | open:function(event,ui){if(focus !=null){$(focus).focus();}if(completecode !=null){setTimeout(completecode, 50);}}, | + | open: function (event, ui) { if (focus !=null) {$(focus).focus(); } if (completecode !=null) {setTimeout(completecode, 50);}}, |
- | close: function(event,ui) {if(closecode !=null){eval(closecode);}} | + | close: function (event, ui) { if (closecode !=null){ eval(closecode); } } |
}); | }); | ||
} | } | ||
</script> | </script> | ||
- | <div id="helpprojekttitel" class="hidden"><h2><img src="https://static.igem.org/mediawiki/2014/e/ed/Team_UNIK_Copenhagen_go_to_the_top.PNG" width="24" height="24" class="modalicon" alt="" />Hjælp</h2> | + | <div id="helpprojekttitel" class="hidden"><h2><img src="https://static.igem.org/mediawiki/2014/e/ed/Team_UNIK_Copenhagen_go_to_the_top.PNG" width="24" height="24" class="modalicon" alt="" />Hjælp</h2>Blablablablablablab</div> |
- | + | ||
- | + | ||
<img src="https://static.igem.org/mediawiki/2014/e/ed/Team_UNIK_Copenhagen_go_to_the_top.PNG" title="Hjælp" alt="Hjælp" width="12" height="12" class="helpicon hand" onclick="initDialog('#helpprojekttitel', 'Hjælp', null, null, null);" /> | <img src="https://static.igem.org/mediawiki/2014/e/ed/Team_UNIK_Copenhagen_go_to_the_top.PNG" title="Hjælp" alt="Hjælp" width="12" height="12" class="helpicon hand" onclick="initDialog('#helpprojekttitel', 'Hjælp', null, null, null);" /> | ||
+ | |||
</html> | </html> |
Latest revision as of 20:12, 16 August 2014