~ubuntu-branches/ubuntu/trusty/isdnutils/trusty

« back to all changes in this revision

Viewing changes to isdnlog/tools/telrate/tt.js

  • Committer: Package Import Robot
  • Author(s): Steve Langasek
  • Date: 2013-11-15 00:02:58 UTC
  • mfrom: (1.1.8) (31.1.1 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20131115000258-tt9v3gasgrdml07k
Tags: 1:3.25+dfsg1-3.3ubuntu1
* Merge from Debian unstable:
  - resolves licensing issues with package contents.  LP: #511988.
  - includes proper upstream fix for ipppd on ARM.  LP: #453159.
  - resolves isdnutils-base removal failures.  LP: #813771.
  - fixes capiutils init script to not try to mount obsolete capifs.
    LP: #1064347.
* Remaining changes:
  - Switch libreadline5-dev to libreadline-gplv2-dev since this package
    appears to be GPLv2
  - debian/patches/no-imake.patch: Don't build xisdnload/xmonisdn using
    xmkmf/imake.  This patch was dropped in Debian without explanation;
    it still applies and seems to still be a good idea for eventual
    upstreaming, since imake is quite obsolete.
  - capi.conf: Fix typo for fcdsl2 firmware. LP: #189132.
  - Remove dependencies on /etc/inittab.
    - Disable the installation code to modify /etc/inittab.
    - isdnutils-base: Add ttyI0 example script, which needs to be installed
      in /etc/event.d/ttyI0.
    - isdnvboxserver: Add ttyI1 example script, which needs to be installed
      in /etc/event.d/ttyI1.
    - The two upstart scripts need to be edited.
    - Further improvements and documentation welcome.
* Changes included in Debian:
  - replace calls to ./MAKEDEV with /sbin/MAKEDEV
  - Build-depend on ppp-dev.
  - Switch to newer tcl -dev.
  - update to newer automake
  - debian/rules: use autoreconf to update the autotools in the capi20
    directory
  - debian/{compat,rules,*.files,.dirs}: Convert to Multi-arch.
  - debian/libcapi20-dev.install: Remove .la files (no builds use them).
* Changes included upstream:
  - fix for ARM FTBFS.
  - fix bashisms in vboxplay.
  - debian/patches/{config_libdir,toplevel-make}.patch: add CONFIG_LIBDIR
    override to upstream build system to support Multi-arch.
* Dropped changes:
  - kick dpatch to the curb.
* Handle migrating the blacklist file from
  /etc/modprobe.d/blacklist-capiutils.conf to the path used in Debian,
  /etc/modprobe.d/capiutils.conf.
* Handle rename of /etc/ppp/ip-down.d/99-ipppd and /etc/ppp/ip-up.d/00-ipppd
  to /etc/ppp/ip-down.d/ipppd and /etc/ppp/ip-up.d/ipppd
* Handle rename of /etc/init.d/isdnutils to /etc/init.d/isdnutils-base
* Restore standard.tcl to /usr/share/isdnvboxserver/default; maintainer
  scripts must not depend on contents of /usr/share/doc.
* Apply patches that were preserved in the 3.0 (quilt) migration, but
  were inadvertently not applied:
  - debian/patches/capifax.additional_error_codes.patch
  - debian/patches/capifax.3_1kHz_audio.patch
* Drop debian/isdnutils-base.cron.d, which isn't a cronjob example at all
  but an inittab example gone astray.
* debian/dotconfig*: don't use embedded quotes for paths; this confuses
  vbox's Makefiles something fierce, and causes files to be missed from
  debian/tmp'/usr/share/man/' at install time.
* Fix isdnlog and ipppd to not ship files used in the postinst under
  /usr/share/doc.
* Modernize the upstart examples.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*****************************************************************
2
 
Tooltips copyright by l.toetsch@magnet.at, http://www.vvg.or.at
3
 
if you use this script keep this note
4
 
*****************************************************************/
5
 
 
6
 
var a,tipEl,tim1=null,left,top;
7
 
function moveTo(xPos,yPos) {
8
 
this.style.pixelLeft=xPos;
9
 
this.style.pixelTop=yPos;
10
 
}
11
 
function showIt(on) {
12
 
if (NS4) {this.visibility = (on) ? "show" : "hide"}
13
 
else {this.style.visibility = (on) ? "visible" : "hidden"}
14
 
}
15
 
function getDocClientWidth() {
16
 
if (NS4)
17
 
return window.innerWidth;
18
 
else
19
 
return document.body.clientWidth;
20
 
}
21
 
function gHeight() {
22
 
if (NS4)
23
 
return this.document.height;
24
 
else
25
 
return this.offsetHeight;
26
 
}
27
 
function gWidth() {
28
 
if (NS4)
29
 
return this.document.width;
30
 
else
31
 
return this.offsetWidth;
32
 
}
33
 
function init_tt() {
34
 
for (i=0;i<document.links.length;i++) {
35
 
if(gettext(i)=='')
36
 
continue;       
37
 
document.links[i].onmouseover=show;
38
 
document.links[i].onmouseout=hide;
39
 
document.links[i].num=i;
40
 
}
41
 
tipEl=IE4?eval(document.all['tip']):eval(document.layers.tip);
42
 
if(IE4) tipEl.moveTo=moveTo;
43
 
tipEl.showIt=showIt;
44
 
tipEl.getHeight=gHeight;
45
 
tipEl.getWidth=gWidth;
46
 
}
47
 
function show(e) {
48
 
a=this.num;
49
 
if (tim1) clearTimeout(tim1);
50
 
left = ((NS4) ? e.pageX : event.clientX+document.body.scrollLeft)+3;
51
 
top = ((NS4) ? e.pageY : event.clientY+document.body.scrollTop)-3;
52
 
tim1 = setTimeout("disp()", 500);
53
 
}
54
 
function hide() {
55
 
tipEl.showIt(false);
56
 
a = null;
57
 
if (tim1) clearTimeout(tim1);
58
 
}
59
 
function max(a,b){return a>b?a:b;}
60
 
function min(a,b){return a<b?a:b;}
61
 
function gettext(a) {
62
 
var i;
63
 
//a+' '+document.links[a].href;
64
 
for(i=0;i<refs.length;i++)
65
 
if(document.links[a].href.indexOf(refs[i])>0) 
66
 
 return txts[i];
67
 
return '';
68
 
}
69
 
 
70
 
function td(pic,w,h)
71
 
{ return '<TD><IMG SRC="http://lux.leo.home/telrate/r'+pic+'.gif" WIDTH="'+w+'" HEIGHT="'+h+'"></TD>';}
72
 
function disp() {
73
 
txt=gettext(a);
74
 
if(txt=='')
75
 
return; 
76
 
txt+='<br><p>Klicken Sie f&uuml;r weitere Information!';
77
 
show1(0);
78
 
if(IE4)
79
 
setTimeout("show1(1)",1);
80
 
else
81
 
show1(1);
82
 
}
83
 
function show1(i) {
84
 
h=0;w=250;e=30;
85
 
tab='<TABLE CELLPADDING="0" CELLSPACING="0" border="0"><TR>';
86
 
if(i){
87
 
h=tipEl.getHeight();
88
 
tab+=td("liob",e,e);
89
 
tab+=td("ob",w,e)+td("reob",e,e)+'</TR>';
90
 
tab+='<TR>'+td("li",e,h);
91
 
}
92
 
tab+='<TD width="'+w+'" BGCOLOR="#f5f5dc" STYLE="'+sty+'">'+txt+'</TD>';
93
 
if(i){
94
 
x=getDocClientWidth()-2*e-w-10;y=top-h-2*e;
95
 
tab+=td("re",e,h)+'</TR><TR>'+td("liun",e,e);
96
 
tab+=td("un",w,e)+td("reun",e,e);
97
 
}
98
 
tab+='</TR></TABLE>';
99
 
if(IE4)
100
 
tipEl.innerHTML=tab;
101
 
else with(tipEl.document) { open();write(tab);close();}
102
 
if(i) {
103
 
o=IE4?document.body.scrollTop:window.pageYOffset;
104
 
tipEl.moveTo(min(x,left),max(10+o,y));
105
 
tipEl.showIt(true);
106
 
}
107
 
}
108
 
if (NS4) {      
109
 
        origWidth = innerWidth;      
110
 
        origHeight = innerHeight;   
111
 
}
112
 
function reDo() {   
113
 
        if (innerWidth != origWidth || innerHeight != origHeight) 
114
 
//              init_tt();
115
 
      location.reload();
116
 
}
117
 
if (NS4) window.onresize = reDo;