From 6cba1240099271c998511cb2bbf607ebe7aed7fc Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Fri, 24 Oct 2014 12:11:51 +0000 Subject: [PATCH] rewritten for IE8, MKWS-309 --- examples/htdocs/dict.html | 70 +++++++++++++++++++++++++++++++++------------ 1 file changed, 51 insertions(+), 19 deletions(-) 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); + }); + + -- 1.7.10.4