/*
-** $Id: pz2.js,v 1.7 2007-04-15 03:24:18 quinn Exp $
+** $Id: pz2.js,v 1.8 2007-04-18 03:42:30 quinn Exp $
** pz2.js - pazpar2's javascript client library.
*/
__myself.termTimer = null;
__myself.showTime = paramArray.showtime || 1000;
__myself.showTimer = null;
+ __myself.showFastCount = 4;
__myself.bytargetTime = paramArray.bytargettime || 1000;
__myself.bytargetTimer = null;
}
__myself.showCallback(show);
__myself.showCounter++;
+ var delay = __myself.showTime;
+ if (__myself.showCounter > __myself.showFastCount)
+ delay *= 2;
+ alert(delay);
if (activeClients > 0)
- __myself.showTimer = setTimeout("__myself.show()", (__myself.showTime + __myself.showCounter*__myself.dumpFactor));
+ __myself.showTimer = setTimeout("__myself.show()", delay);
}
else
// if it gets here the http return code was 200 (pz2 errors are 417)
<title>MasterKey Power Search</title>
<link rel="author" href="http://www.indexdata.dk" />
<link href="css/styles.css" rel="stylesheet" type="text/css" media="screen, all" />
- <script type="text/javascript" src="js/jquery.pack.js"></script>
+ <script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/pz2.js"></script>
<script type="text/javascript" src="js/pzQuery.js"></script>
<script type="text/javascript" src="js/client.js"></script>