X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=examples%2Fhtdocs%2Fdict.html;h=efcd6080b15bd0739b1ee7394c05241cb71014a5;hp=c63f9834310eb96a229511b744ea556dec94ebf0;hb=6cba1240099271c998511cb2bbf607ebe7aed7fc;hpb=c2e8b29c9d62f76f678b947c774acb589691734e diff --git a/examples/htdocs/dict.html b/examples/htdocs/dict.html index c63f983..efcd608 100644 --- a/examples/htdocs/dict.html +++ b/examples/htdocs/dict.html @@ -35,33 +35,65 @@

Conventionally, a computer consists of at least one processing element, typically a central processing unit (CPU) and some form of memory. The processing element carries out arithmetic and logic operations, and a sequencing and control unit that can change the order of operations based on stored information. Peripheral devices allow information to be retrieved from an external source, and the result of operations saved and retrieved.

In World War II, mechanical analog computers were used for specialized military applications. During this time the first electronic digital computers were developed. Originally they were the size of a large room, consuming as much power as several hundred modern personal computers (PCs).[1]

Modern computers based on integrated circuits are millions to billions of times more capable than the early machines, and occupy a fraction of the space.[2] Simple computers are small enough to fit into mobile devices, and mobile computers can be powered by small batteries. Personal computers in their various forms are icons of the Information Age and are what most people think of as “computers.” However, the embedded computers found in many devices from MP3 players to fighter aircraft and from toys to industrial robots are the most numerous.

+
+
- + return t; + }; + + indexdata.Selector.mouseup = function(){ + var text = indexdata.Selector.getSelected(); + if(text != ''){ + if (indexdata.Selector.debug) { + alert("You selected:\n" + text); + } + indexdata.Selector.mkws(text); + } + }; + + indexdata.Selector.mkws = function(query) { + if ( query != "" && ! indexdata.Selector.clicking ) { + // no recursive calls + indexdata.Selector.clicking = true; + + $(".mkws-reference").show(); + $("input.mkws-query").val(query); + $(".search-query").text(query); + $("input.mkws-button").trigger("click"); + indexdata.Selector.clicking = false; + } + }; + + $(document).ready(function(){ + $(document).bind("mouseup", indexdata.Selector.mouseup); + }); + +