File: 2001_dont-use-external-javascript-modules.patch

package info (click to toggle)
libjs-jquery-center 1.1.0%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 140 kB
  • sloc: makefile: 37
file content (35 lines) | stat: -rw-r--r-- 1,447 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Description: Don't use external Javascript modules.
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

--- a/demo.html
+++ b/demo.html
@@ -111,8 +111,8 @@
         Demo provides by <a href="http://dreamerslab.com/">DreamersLab</a>
       </h3>
     </div>
-    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
-    <script type="text/javascript" src="jquery.center.min.js"></script>
+    <script type="text/javascript" src="file:///usr/share/javascript/jquery/jquery.js"></script>
+    <script type="text/javascript" src="file:///usr/share/javascript/libjs-jquery-center/jquery.center.js"></script>
     <script type="text/javascript" charset="utf-8">
       // wrap everything in document ready event
       $( function(){
@@ -144,17 +144,5 @@
 
 
     </script>
-    <script type="text/javascript" charset="utf-8">
-      // google analytics
-      var _gaq = _gaq || [];
-      _gaq.push(['_setAccount', 'UA-20960410-1']);
-      _gaq.push(['_trackPageview']);
-
-      (function() {
-        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
-        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
-        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
-      })();
-    </script>
   </body>
 </html>
\ No newline at end of file