jquery noConflict

This commit is contained in:
sanj 2010-11-23 11:29:45 +01:00
parent e930a4cd58
commit 449895f5b2
4 changed files with 11 additions and 9 deletions

View File

@ -13,7 +13,7 @@
* http://www.gnu.org/licenses/gpl.html * http://www.gnu.org/licenses/gpl.html
*/ */
;(function($) { (function($) {
// the tooltip element // the tooltip element
var helper = {}, var helper = {},

View File

@ -1,3 +1,5 @@
(function($) {
var BASE_URL = "http://pad.ma/"; var BASE_URL = "http://pad.ma/";
var padmaVideo = function(videoId) { var padmaVideo = function(videoId) {
@ -149,3 +151,9 @@ padmaVideo.getFromCache = function(videoId) {
} }
return false; return false;
} }
window.padmaVideo = padmaVideo;
window.filterLayersByTracks = filterLayersByTracks;
window.filterLayersByContributors = filterLayersByContributors;
})(jQuery);

View File

@ -28,7 +28,7 @@
} }
// console.log(linkData); // console.log(linkData);
videoObj.getVideoData(setupPadmaLink, {'linkData': linkData, 'jq': that}); videoObj.getAllData(setupPadmaLink, {'linkData': linkData, 'jq': that});
// v.getVideoData(setupSidenotes, {'linkData': linkData, 'jq': that}); // v.getVideoData(setupSidenotes, {'linkData': linkData, 'jq': that});
// getPadmaData(linkData, that, {}); // getPadmaData(linkData, that, {});
} }

View File

@ -8,7 +8,7 @@
<script type="text/javascript" src="jquery.tooltip.js"></script> <script type="text/javascript" src="jquery.tooltip.js"></script>
<script type="text/javascript" src="padma.layers.js"></script> <script type="text/javascript" src="padma.layers.js"></script>
<script type="text/javascript" src="padma.links.js"></script> <script type="text/javascript" src="padma.links.js"></script>
<script type="text/javascript" src="test.js"></script> <script type="text/javascript" src="testOkno.js"></script>
<script type="text/javascript" src="utils.js"></script> <script type="text/javascript" src="utils.js"></script>
</head> </head>
<body> <body>
@ -72,12 +72,6 @@
<h1> <h1>
Lorem Ipsum Lorem Ipsum
</h1> </h1>
<div id="padmaSidebar">
<div id="padmaSidebarWrapper"></div>
<div id="aboutTxt">
Abstract / About goes here.
</div>
</div>
<div id="essay"> <div id="essay">
<div class="para"> <div class="para">