"I have a mind like a steel... uh... thingy." Patrick Logan's weblog.

Search This Blog

Tuesday, May 17, 2005

Decidedly Unwiki-like

Jotspot is about as cool as it gets. But when you are dealing with stuff like this can it fairly be called a wiki?

<wiki:search forAll="true" filter="it/ActualTimeForm/iteration=args/iteration" />
<wiki:var var="totalSpent" value="${0}" />
<wiki:var var="totalRemaining" value="${0}" />
  <wiki:var key="ms" value="${it/ActualTimeForm/timeSpent/milliseconds}" />
  <wiki:var key="totalSpent" value="${totalSpent + ms}" />
  <wiki:var key="ms" value="${it/ActualTimeForm/timeRemaining/milliseconds}" />
  <wiki:var key="totalRemaining" value="${totalRemaining + ms}" />
<wiki:var key="percent" value="${round(totalSpent div (totalSpent + totalRemaining) * 100)}%" />
<div style="width:100%; border: 1px solid black; padding:0px; background-color:red">
  <div style="background: green; width: ${percent}; margin: 0px;text-align: center; color: #ddd">

No comments:

Blog Archive

About Me

Portland, Oregon, United States
I'm usually writing from my favorite location on the planet, the pacific northwest of the u.s. I write for myself only and unless otherwise specified my posts here should not be taken as representing an official position of my employer. Contact me at my gee mail account, username patrickdlogan.