Difference between revisions of "Team:Pasteur Paris/Notebook"

Line 58: Line 58:
 
}
 
}
 
//Function for bubbles help at mouse over items.
 
//Function for bubbles help at mouse over items.
function Help(text,Lnx,Lny) {
+
//function Help(text,Lnx,Lny) {
 +
function Help(text,id) {
 
   //var n = ((texte.length)/45)+2;
 
   //var n = ((texte.length)/45)+2;
 
   //alert(Lny);
 
   //alert(Lny);
 +
var element = document.getElementById(id);
 +
  var width = element.width();
 +
  var height = element.height();
 +
  var position = element.position();
 +
  var bottomLeftX = position.left;
 +
  var bottomLeftY = position.top + height;
 +
  var bottomRightX = position.left + width;
 +
  var bottomRightY = position.top + height;
 +
 
 +
  //Lnx=bottomLeftX;
 +
  //Lny=;
 +
  alert(bottomLeftX);
 
   n=5;
 
   n=5;
 
   PreBule="<textarea cols=45 rows="+n+" id='note' name='Texte' readonly>"+text+"</textarea>";
 
   PreBule="<textarea cols=45 rows="+n+" id='note' name='Texte' readonly>"+text+"</textarea>";
Line 186: Line 199:
 
         <div class="row">
 
         <div class="row">
 
           <a href="https://2015.igem.org/Team:Pasteur_Paris/Week_1">
 
           <a href="https://2015.igem.org/Team:Pasteur_Paris/Week_1">
             <div class="col-lg-12" id="week_1" style=" background-image:url(https://static.igem.org/mediawiki/2015/4/45/Photo_week_1_iGEM_Pasteur.JPG)" onmouseover="Help('We transformed each Biobrick into DH5-alpha bacteria and we performed a bacterial amplification followed by a plasmid purification',event.clientX+document.body.scrollLeft,event.clientY+document.body.scrollTop)" onmouseout="EfaceHelp()">
+
             <! -- <div class="col-lg-12" id="week_1" style=" background-image:url(https://static.igem.org/mediawiki/2015/4/45/Photo_week_1_iGEM_Pasteur.JPG)" onmouseover="Help('We transformed each Biobrick into DH5-alpha bacteria and we performed a bacterial amplification followed by a plasmid purification', event.clientX+document.body.scrollLeft, event.clientY+document.body.scrollTop)" onmouseout="EfaceHelp()"> -->
 +
              <div class="col-lg-12" id="week_1" style=" background-image:url(https://static.igem.org/mediawiki/2015/4/45/Photo_week_1_iGEM_Pasteur.JPG)" onmouseover="Help('We transformed each Biobrick into DH5-alpha bacteria and we performed a bacterial amplification followed by a plasmid purification', 'week_1')" onmouseout="EfaceHelp()">
 
               Week 1 <p>06/01 - 06/05</p>
 
               Week 1 <p>06/01 - 06/05</p>
 
             </div>
 
             </div>

Revision as of 09:44, 8 September 2015

Notebook

Search for a content: