All pastes #2134773 Raw Edit

Miscellany

public text v1 · immutable
#2134773 ·published 2012-04-02 07:22 UTC
rendered paste body
        if (xmlHttp.status==200) {
          // what to do when data loaded
        }
        else {
          // what to do when data load failed
        }
      }
    }
    
    function httpRequest(url) {
      if (window.XMLHttpRequest) {
        xmlHttp = new XMLHttpRequest();
      }
      else if (window.ActiveXObject) {
        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
      }
      if (xmlHttp != null) {
        xmlHttp.onreadystatechange=stateChangeDeck;
        xmlHttp.open("GET",url,true);
        xmlHttp.send(null);
      }
      else {
        alert("Your browser does not support XMLHTTP.");
      }
    }
    
    function addCard2Library(id) {
      httpRequest('index.php?deck=edit&addlibrary='+id+'&ajax=1');
      return false;
    }
    
    function addCard2Crypt(id) {
      httpRequest('index.php?deck=edit&addcrypt='+id+'&ajax=1');
      return false;
    }
    
    function confirmCloseDeck(name) {
      var lsRegExp = /\+/g;
      name = unescape(String(name).replace(lsRegExp," "));
      var agree=confirm('Are you sure you want to close "'+name+'" without saving?');
      if (agree) return true;
      else return false;
    }

    function confirmDeleteDeck(name) {
      var lsRegExp = /\+/g;
      name = unescape(String(name).replace(lsRegExp," "));
      var agree=confirm('Are you sure you want to delete the deck "'+name+'"?');
      if (agree) return true;
      else return false;
    }

    function confirmOverwriteDeck(name) {
      var lsRegExp = /\+/g;
      name = unescape(String(name).replace(lsRegExp," "));
      var agree=confirm('Are you sure you want to overwrite the old version of deck "'+name+'"?');
      if (agree) return true;
      else return false;
    }
    
    // WTES INTEGRATION
    function confirmWtesDeckOverwrite(type) {
      if (type == 1) {
        var agree=confirm('You are currently sitting on a table at WTES. If you use this deck you will leave that table.');
        if (agree) return true;
        else return false;
      }
      if (type == 2) {
        var agree=confirm('You already have a deck loaded at WTES. Are you sure you want to overwrite that deck?');
        if (agree) return true;
        else return false;
      }
      return true;
    }

    // -->
    </script>
  </head>
  <body>
<div class="user">

<form method="post" action="forum/login.php?action=in">
<table>
<tr>
  <td>
    <a href="." style="width:17px;"><img src="img/home.gif" alt="Home" title="Home" border="0" /></a>
  </td>
  <td>
    <a href="?inventory">Inventories</a>
  </td>
  <td>
    <a href="?deck">Decks</a>
  </td>
  <td>
    <a href="?checklist">Checklists</a>
  </td>
  <td>
    <a href="forum/">Forum</a>
  </td>
  <td>
    <a href="?playvtes">Play&nbsp;VTES</a>
  </td>
  <td>
    Username:
  </td>
  <td>
    <input type="text" name="req_username" size="25" maxlength="25" tabindex="1" />
    <input type="hidden" name="form_sent" value="1" />
    <input type="hidden" name="redirect_url" value="../?crypt=810" />
  </td>
  <td>
    Password:
  </td>
  <td>
    <input type="password" name="req_password" size="16" maxlength="16" tabindex="2" />
  </td>
  <td>
    <input type="submit" name="login" value="Login" tabindex="3" />
  </td>
  <td>
    <a href="?reg">Register</a>
  </td>
</tr>
</table>
</form>
</div>
<div class="content">
<table class="card" width="600">
<tr>
<th colspan="2"><img src="img/adv_19.gif" alt="[Adv]" title="[Adv]" /> Alan Sovereign <a href="?crypt=Alan+Sovereign" style="font-size:50%">(see non-Advanced)</a></th>
</tr>
<tr valign="top">
<td align="center" width="20%" class="disciplines"><img src="img/for_23.gif" alt="[for]" title="[for]" /><br /><img src="img/pre_23.gif" alt="[pre]" title="[pre]" /><br /><img src="img/aus2_31.gif" alt="[AUS]" title="[AUS]" /><br /><img src="img/dom2_31.gif" alt="[DOM]" title="[DOM]" /></td>
<td width="80%">
<p><img src="img/ventrue_35.gif" alt="[Ventrue]" title="[Ventrue]" /> Ventrue</p>
<p><b>Capacity:</b> 6</p>
<p><b>Group:</b> 3</p>
<p><b>Advanced, Camarilla:</b> While Alan is ready, you may pay some or all of the pool cost of equipping from any investment cards you control.
<br /><img src="img/merged_13.gif" alt="[MERGED]" title="[MERGED]" /> During your master phase, if Alan is ready, you may move a counter from any investment card to your pool.</p>
<p><b>Artist(s):</b> Leif Jones</p>
<p><b>Set(s):</b> <a href="?checklist=Promo&amp;details">Promo-20051001</a></p>
</td>
</tr>
<tr align="center"><td colspan="2">
  <a href="index.php?deck=c810">Search for decks including this card!</a><br />
  <a href="index.php?inventory&amp;cryptcard=810">Search for inventories including this card!</a><br />
  Search for vampires with ( <a href="?crypt=search&amp;id=810&amp;disc_match=1">1</a> <a href="?crypt=search&amp;id=810&amp;disc_match=2">2</a> <a href="?crypt=search&amp;id=810&amp;disc_match=3">3</a> <a href="?crypt=search&amp;id=810&amp;disc_match=4">4</a> ) same disciplines.<br />
  Search for rulings:
  <a href="http://games.groups.yahoo.com/group/vtes-rules/msearch?query=Alan+Sovereign+ADV&amp;submit=Search&amp;charset=ISO-8859-1" target="slyahoo">Yahoo!</a>
<!--  <a href="http://groups.google.com/group/rec.games.trading-cards.jyhad/search?group=rec.games.trading-cards.jyhad&amp;q=author%3ALSJ+Alan+Sovereign+ADV&amp;qt_g=Search+this+group" target="slgoogle">Google</a>-->
  <a href="http://groups.google.com/group/rec.games.trading-cards.jyhad/search?q=Alan+Sovereign+ADV+author%3ALSJ+group%3Arec.games.trading-cards.jyhad&amp;qt_s=Search+Groups" target="slgoogle">Google</a>
</td></tr>
</table>
    <div class="search">
      <table border="0" class="noborder"><tr><td>
        <form action="index.php" method="post">
        <table border="0" class="noborder">
          <tr><td align="right">Name:</td><td align="left"><input class="textfield" type="text" name="vtes_quick_name" /></td></tr>
          <tr><td align="right">Text:</td><td align="left"><input class="textfield" type="text" name="vtes_quick_text" /></td></tr>
          <tr align="center"><td colspan="2"><input class="submit" type="submit" name="vtes_quick_crypt" value="Quick Search Crypt" /><br />
            <a href="?crypt" class="vis">Advanced crypt search</a>
          </td></tr>
        </table>
        </form>
      </td><td width="100">
      </td><td>
        <form action="index.php" method="post">
        <table border="0" class="noborder">
          <tr><td align="right">Name:</td><td align="left"><input class="textfield" type="text" name="vtes_quick_name" /></td></tr>
          <tr><td align="right">Text:</td><td align="left"><input class="textfield" type="text" name="vtes_quick_text" /></td></tr>
          <tr align="center"><td colspan="2">
            <input class="submit" type="submit" name="vtes_quick_library" value="Quick Search Library" /><br />
            <a href="?lib" class="vis">Advanced library search</a>
          </td></tr>
        </table>
        </form>
      </td></tr></table>
    </div>
      <br style="clear:both;" />
    </div>
    <div class="copy">
      Secret Library <a href="?changelog">v0.9.3</a>.
      &copy; Jussi Hattara 2007-2009. All rights reserved.
      Execution time 0.015 seconds.
      <br />
      Jyhad&trade;,
      <a href="http://www.white-wolf.com/vtes/" target="_blank">Vampire: The Eternal Struggle&trade;</a>
      and all game symbols are trademarks of
      <a href="http://www.wizards.com/" target="_blank">Wizards of the Coast, Inc.</a> and
      <a href="http://www.white-wolf.com/" target="_blank">White Wolf Publishing, Inc.</a>
      All World of Darkness related terms are trademarks of White Wolf Publishing, Inc.
      <br />
      This product is not published nor endorsed by White Wolf Publishing, Inc.
      The Secret Library is inspired and greatly influenced by the <a href="http://monger.vekn.org/" target="_blank">Monger</a>.
    </div>
  </body>
</html>