diff --git a/plugins/battery/public/js/battery.js b/plugins/battery/public/js/battery.js index 487f42b..c6423f4 100644 --- a/plugins/battery/public/js/battery.js +++ b/plugins/battery/public/js/battery.js @@ -1,4 +1,4 @@ -(function (window, undefined) { +(function (window, $, undefined) { 'use strict'; var Battery; @@ -77,4 +77,4 @@ window.Cockpit.plugins.push(Battery); -}(window, undefined)); +}(window, jQuery)); diff --git a/plugins/hud/public/js/compass.js b/plugins/hud/public/js/compass.js index 978c1de..bfabea7 100644 --- a/plugins/hud/public/js/compass.js +++ b/plugins/hud/public/js/compass.js @@ -1,4 +1,4 @@ -(function (window, document, undefined) { +(function (window, document, $, undefined) { 'use strict'; var headings = ['N', 'E', 'S', 'W'], @@ -107,4 +107,4 @@ }; window.Cockpit.plugins.push(Compass); -}(window, document, undefined)); +}(window, document, jQuery)); diff --git a/plugins/hud/public/js/horizon.js b/plugins/hud/public/js/horizon.js index 73f8ffd..0d64c2a 100644 --- a/plugins/hud/public/js/horizon.js +++ b/plugins/hud/public/js/horizon.js @@ -26,7 +26,7 @@ * */ -(function (window, undefined) { +(function (window, $, undefined) { 'use strict'; var AH, @@ -542,4 +542,4 @@ window.Cockpit.plugins.push(AH); -}(window, undefined)); +}(window, jQuery)); diff --git a/plugins/pilot/public/js/pilot.js b/plugins/pilot/public/js/pilot.js index 90402f2..84d935d 100644 --- a/plugins/pilot/public/js/pilot.js +++ b/plugins/pilot/public/js/pilot.js @@ -1,6 +1,6 @@ PILOT_ACCELERATION = 0.04; -(function(window, document) { +(function(window, document, $, undefined) { 'use strict'; var keyCodeMap = {"0":"96","1":"97","2":"98","3":"99","4":"100","5":"101","6":"102","7":"103","8":"104","9":"105","backspace":"8","tab":"9","return":"13","shift":"16","ctrl":"17","alt":"18","pausebreak":"19","capslock":"20","escape":"27"," ":"32","pageup":"33","pagedown":"34","end":"35","home":"36","left":"37","up":"38","right":"39","down":"40","+":"107","printscreen":"44","insert":"45","delete":"46",";":"186","=":"187","a":"65","b":"66","c":"67","d":"68","e":"69","f":"70","g":"71","h":"72","i":"73","j":"74","k":"75","l":"76","m":"77","n":"78","o":"79","p":"80","q":"81","r":"82","s":"83","t":"84","u":"85","v":"86","w":"87","x":"88","y":"89","z":"90","*":"106","-":"189",".":"190","/":"191","f1":"112","f2":"113","f3":"114","f4":"115","f5":"116","f6":"117","f7":"118","f8":"119","f9":"120","f10":"121","f11":"122","f12":"123","numlock":"144","scrolllock":"145",",":"188","`":"192","[":"219","\\":"220","]":"221","'":"222"}; @@ -260,4 +260,4 @@ PILOT_ACCELERATION = 0.04; window.Cockpit.plugins.push(Pilot); -}(window, document)); +}(window, document, jQuery)); diff --git a/plugins/video-stream/public/js/index.js b/plugins/video-stream/public/js/index.js index b84a348..6fc344a 100644 --- a/plugins/video-stream/public/js/index.js +++ b/plugins/video-stream/public/js/index.js @@ -1,4 +1,4 @@ -(function(window, document) { +(function(window, document, $) { var Video = function Video(cockpit) { console.log("Initializing video stream plugin."); @@ -15,4 +15,4 @@ }; window.Cockpit.plugins.push(Video); -}(window, document)); +}(window, document, jQuery)); diff --git a/public/js/cockpit.js b/public/js/cockpit.js index abf699a..148b9d7 100644 --- a/public/js/cockpit.js +++ b/public/js/cockpit.js @@ -1,4 +1,4 @@ -(function(window, document) { +(function(window, document, $, undefined) { var hostname = document.location.hostname ? document.location.hostname : "localhost"; @@ -51,4 +51,4 @@ Cockpit.plugins = []; window.Cockpit = Cockpit; -}(window, document)); +}(window, document, jQuery));