Difference between revisions of "Widget:Pamela"

From Whitespace (Hackerspace Gent)
Jump to: navigation, search
(further styling)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
<div style="width: 845px;">
+
<div>
   <div id="openbanner">[http://0x20.be/pam <span style="color:black;">The space is open!</span>]<a href='http://0x20.be/pam'>TEST</a></div>
+
   <div id="openbanner">[http://0x20.be/pam <span style="color:white">The space is open!</span>]</div>
 
</div>
 
</div>
 
{{#widget:Pamela}}</noinclude><includeonly>
 
{{#widget:Pamela}}</noinclude><includeonly>
Line 61: Line 61:
 
         // Dealing with unknown entities
 
         // Dealing with unknown entities
 
         if ( entities.length > 0 ) {
 
         if ( entities.length > 0 ) {
      msg = msg + "<span style='color:red'>WARNING: </span><span style='color:darkred'>According to <a href='/Pamela'>Pamela</a> there ";               
+
      msg = msg + "<p>";
 +
      msg = msg + "<span style='color:red;'>WARNING:</span>";
 +
      msg = msg + "<span style='color:darkred;'>According to <a href='/Pamela'>Pamela</a> there ";               
 
      if ( entities.length == 1 ) {
 
      if ( entities.length == 1 ) {
 
          msg = msg + "is 1 unknown entity";
 
          msg = msg + "is 1 unknown entity";
Line 68: Line 70:
 
                   msg = msg + "are " + entities.length + " unknown entities";
 
                   msg = msg + "are " + entities.length + " unknown entities";
 
               }
 
               }
               msg = msg + " present in Whitespace!!!<br><p style='text-align:center'>>> " +  entities.join(", " ) + " <<</p></span>Further <a href='/Pamela'>Pamela</a> says there ";
+
               msg = msg + " present in Whitespace!!! >> " +  entities.join(", " ) + " <<";
 +
      msg = msg + "</p>";
 +
      msg = msg + "<p>";
 +
              msg = msg + "Furthermore <a href='/Pamela'>Pamela</a> says there ";
 
}
 
}
 
         else {
 
         else {
 +
      msg = msg + "<p>";
 
               msg = msg + "According to <a href='/Pamela'>Pamela</a> there "
 
               msg = msg + "According to <a href='/Pamela'>Pamela</a> there "
 
}
 
}
Line 99: Line 105:
 
}
 
}
 
msg = msg + ".";
 
msg = msg + ".";
 +
        msg = msg + "</p>";
 
     }
 
     }
 
     else {
 
     else {
         var msg = "<span style='color:red'><b>THE WORLD EXPLODED!!! </b></span><span style='color:darkred'>According to <a href='/Pamela'>Pamela</a> there's no man or machine left alive!!!</span>";
+
         var msg = "<p><span style='color:red; font-weight: bold;'>THE WORLD EXPLODED!!!</span> ";
 +
        msg = msg + "<span style='color:darkred'>According to <a href='/Pamela'>Pamela</a> there's no man or machine left alive!!!</span></p>";
 
     }
 
     }
  

Latest revision as of 02:13, 8 March 2013

Loading Pamela...