]> git.pld-linux.org Git - packages/clickheat.git/blob - js-scoping.patch
- drop obsolete and outdated manual inclusion of rpm macros
[packages/clickheat.git] / js-scoping.patch
1 --- clickheat-1.12/scripts/compressJs.php~      2011-04-20 01:05:58.000000000 +0300
2 +++ clickheat-1.12/scripts/compressJs.php       2011-04-20 08:16:47.199246746 +0300
3 @@ -13,5 +13,4 @@
4  }
5  Syntax_Compressor::js($str);
6  
7 -file_put_contents(dirname(__FILE__).'/../js/clickheat.js', '/** Code by www.labsmedia.com */'.$str);
8 -?>
9 +file_put_contents(dirname(__FILE__).'/../js/clickheat.js', $str);
10 --- clickheat-1.12/js/clickheat-original.js~    2011-04-20 08:16:19.000000000 +0300
11 +++ clickheat-1.12/js/clickheat-original.js     2011-04-20 08:16:22.158204062 +0300
12 @@ -17,9 +17,26 @@
13  Windows 2000 - IE 6.0
14  Linux - Firefox 2.0.0.1, Konqueror 3.5.5, IE 7
15  */
16 +/*! Code by www.labsmedia.com */
17  
18  /*global window: true*/
19  
20 +(function() {
21 +
22 +/* Main variables */
23 +var 
24 +clickHeatGroup = '',
25 +clickHeatSite = '',
26 +clickHeatServer = '',
27 +clickHeatLastIframe = -1,
28 +clickHeatTime = 0,
29 +clickHeatQuota = -1,
30 +clickHeatBrowser = '',
31 +clickHeatDocument = '',
32 +clickHeatWait = 500,
33 +clickHeatLocalWait = 0,
34 +clickHeatDebug = (document.location.href.indexOf('debugclickheat') !== -1);
35 +
36  /* Event listener */
37  function addEvtListener(obj, evtName, f)
38  {
39 @@ -49,22 +66,9 @@
40         }
41  }
42  
43 -/* Main variables */
44 -var clickHeatGroup = '',
45 -clickHeatSite = '',
46 -clickHeatServer = '',
47 -clickHeatLastIframe = -1,
48 -clickHeatTime = 0,
49 -clickHeatQuota = -1,
50 -clickHeatBrowser = '',
51 -clickHeatDocument = '',
52 -clickHeatWait = 500,
53 -clickHeatLocalWait = 0,
54 -clickHeatDebug = (document.location.href.indexOf('debugclickheat') !== -1);
55 -
56  /**
57 -* Shows a debug string
58 -**/
59 + * Shows a debug string
60 + */
61  function showClickHeatDebug(str)
62  {
63         if (clickHeatDebug === true)
64 @@ -251,7 +251,7 @@
65         return true;
66  }
67  
68 -function initClickHeat()
69 +window.initClickHeat = function()
70  {
71         var i,
72         iFrames,
73 @@ -313,4 +313,7 @@
74                 }
75         }
76         showClickHeatDebug('ClickHeat initialised with:<br/>site = ' + clickHeatSite + '<br/>group = ' + clickHeatGroup + '<br/>server = ' + clickHeatServer + '<br/>quota = ' + (clickHeatQuota === -1 ? 'unlimited' : clickHeatQuota) + '<br/>browser = ' + clickHeatBrowser + '<br/><br/><strong>Click in a blank area (not on a link) to test ClickHeat</strong>');
77 -}
78 \ No newline at end of file
79 +}
80 +
81 +// end local scope
82 +})();
This page took 0.130093 seconds and 3 git commands to generate.