ログイン| 新規登録

Opera Software ASA

ウィジェット » 科学 » Scientific Calculator

Scientific Calculator, Opera application V1.1 2006/07/14 15:44:42

Do all the functions of a scientific calculator. Some parts of the script from http://javascript.internet.com.


コメント 11 通

ページのトップからログインしコメントする

1 - 11 中 11

A Percent Key needs to be added

starrman 作 , # 2008/07/07 13:39:22

Scientific Calulator by Anshugiri needs to be upgraded for OPERA 9.51
In addition a Percent Key needs to be added. The ^ Key does not function
and could be deleted.

starrman 作 , # 2008/07/07 13:38:54

cos(90) isn't equal to 0, but to 6.12e-17 by your calc.
degrees ofcourse...

Exelle 作 , # 2008/02/29 10:59:33

How about a 10-key function calculator with an on-screen tape??

calvin trager 作 , # 2007/07/06 16:54:53

Actually this is extremely handy for windows users, seeing as how the windows calculator won't crunch radicals. It looks nice, its intuitive, and i like it. Job well done!!!!

Fonzie2k 作 , # 2007/05/06 20:30:10

gr8 job done............

can you make a widget by which mouseover event would genrate the ip address, location and the coordinates of the hyperlink..........

this is actually present in firefox as an add-on.

code for ur help:-

function hostipfox_enable() {
}

function hostipfox_disable() {
}

function hostipfox_init() {
if('__hostipfox__FillInHTMLTooltip' in window) return;
const prefs = Components.classes['.org/preferences-service;1'].getService(Components.interfaces.nsIPrefService).getBranch(null);

var originalFillInHTMLTooltip = window.FillInHTMLTooltip;
window.__hostipfox__FillInHTMLTooltip = originalFillInHTMLTooltip;

const dnsService = Components.classes['.org/network/dns-service;1'].getService(Components.interfaces.nsIDNSService)

const nsISupportsString = ('nsISupportsWString' in Components.interfaces) ? Components.interfaces.nsISupportsWString : Components.interfaces.nsISupportsString;

window.FillInHTMLTooltip = function(elem)
{
var retval = false;

if (!elem ||
elem.namespaceURI == 'http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul')
return false;

try {
if (elem) {
while (elem && (elem.nodeType != Node.ELEMENT_NODE || !elem.attributes.length))
elem = elem.parentNode;

if (!elem) return false;

var attrlist = null;
try {
attrlist = prefs.getBoolPref('browser.chrome.tooltips.use_attrlist') ? prefs.getComplexValue('browser.chrome.tooltips.attrlist', nsISupportsString).data : null ;
}
catch(ex) {
}

if (attrlist) {
attrlist = attrlist.split('|');
for (var i in attrlist) {
if (attrlist && elem.getAttribute(attrlist))
alttooltiptext.push('['+attrlist+']: '+elem.getAttribute(attrlist));
}
}
else if (
!elem.ownerDocument.contentType.match(/^text/html//) &&
( ('href' in elem && elem.href) || ('src' in elem && elem.src) )
)
{
// We have a valid link (with href in it)
var url = elem.href;

// ... or we have a src tag (img)
if(!url)
{
url = elem.src;
}

if(url)
{
if(url.length > 40)
{
url = url.substring(0, 37) + '...';
}

if(url.substring(0, 4) == 'http')
{
var original = elem.label ? elem.label : elem.alt;
var hostname = elem.hostname ? elem.hostname : Components.classes[".org/network/io-service;1"].getService(Components.interfaces.nsIIOService).newURI(url, null, null).host;
var ipaddr = dnsService.resolve(hostname, false).getNextAddrAsString();

var tooltip = new hostipfox_Tooltip(original, url, hostname, ipaddr, 'loading...');
retval = tooltip.update();
tooltip.getLocation(ipaddr);
}
}
}
}
}
catch(e) {
}

if(!retval) return originalFillInHTMLTooltip(elem);
else return true;
};
}

reach me at yahoo, with

bap_g.com


take care

mail2rajeev 作 , # 2007/02/23 21:07:40

Yeah... This was a good widget until I realized you couldn't use the number pad... BOOOOOO!

baylorseth 作 , # 2006/08/17 7:44:21

It should be possible to use the keyboard (and number pad)!
The display should be higher to allow display of previously entered numbers and operators.

ikaros 作 , # 2006/08/17 0:27:58

Its close to usefull, windows oen calculator is quite anoying, id like to be able to use the num keyboard, don't knwo is thats a posibility

RyomaNagare 作 , # 2006/07/18 14:28:52

I'm afraid "all the functions" is a bit of an exaggeration. No 10log, no hyperbolic sin, cos and tan, no inverse goniometry, no factorial... A usability handicap is that you have to click the digits with your mouse, rather than typing them with the numeric keypad.

garmt 作 , # 2006/07/14 19:01:44

Works well enough, but the usefulness, considering Windows' own calculator (I don't know if Mac and Linux have their own built-in ones, though), is questionable.

Strife767 作 , # 2006/07/14 18:54:46