| Put a calc link in your WebTopBar as described in ReplaceJumpWithSearch? Here's a working one (Thanks to MartinCleaver? ) No such template def TMPL:DEF{PROMPT:scientificCalculator} |
|
PopUpCalculatorAddOn.zip in your twiki pub directory as pub/ScientificCalculator2.1
%TMPL:DEF{"script"}%
<script type="text/javascript">
<!-- HIDE
/*****************************/
/* openPopupWin */
/*****************************/
var popupWin;
function openPopupWin(addr)
{ if(popupWin)
popupWin.close();
var chasm = screen.availWidth;
var mount = screen.availHeight;
var w = 240;
var h = 410;
popupWin=window.open(addr,'popupWin','status=no, width=' + w + ',height=' + h + ',left='
+ ((chasm - w - 10) * .5) + ',top=' + ((mount - h - 30) * .5));
}
// -->
</script>
<A href="javascript:openPopupWin('/twiki/pub/ScientificCalculator2.1/popup.html')">calc</a>
| Add-on Author: | TWiki:Main/GillesEricDescamps |
| Add-on Version: | 17 Nov 2004 (v1.000) |
| Change History: | |
| 17 Nov 2004: | Initial version |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.005 |
| License: | GPL (for the single line of html code ) |
| Add-on Home: | http://TWiki.org/cgi-bin/view/Plugins/PopUpCalculatorAddOn |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/PopUpCalculatorAddOnDev |
| Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/PopUpCalculatorAddOnAppraisal |
| I | Attachment | Action | Size | Date | Who | Comment |
|---|---|---|---|---|---|---|
| |
Calculator.gif | manage | 15.3 K | 2004-11-17 - 07:24 | UnknownUser | ScreenShot? |
| |
ScientificCalculator.zip | manage | 24.6 K | 2004-11-17 - 07:25 | UnknownUser | The package |