pass in jQuery dependency
Esse commit está contido em:
@@ -1,4 +1,4 @@
|
|||||||
(function (window, undefined) {
|
(function (window, $, undefined) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var Battery;
|
var Battery;
|
||||||
@@ -77,4 +77,4 @@
|
|||||||
|
|
||||||
window.Cockpit.plugins.push(Battery);
|
window.Cockpit.plugins.push(Battery);
|
||||||
|
|
||||||
}(window, undefined));
|
}(window, jQuery));
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
(function (window, document, undefined) {
|
(function (window, document, $, undefined) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var headings = ['N', 'E', 'S', 'W'],
|
var headings = ['N', 'E', 'S', 'W'],
|
||||||
@@ -107,4 +107,4 @@
|
|||||||
};
|
};
|
||||||
window.Cockpit.plugins.push(Compass);
|
window.Cockpit.plugins.push(Compass);
|
||||||
|
|
||||||
}(window, document, undefined));
|
}(window, document, jQuery));
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function (window, undefined) {
|
(function (window, $, undefined) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var AH,
|
var AH,
|
||||||
@@ -542,4 +542,4 @@
|
|||||||
|
|
||||||
window.Cockpit.plugins.push(AH);
|
window.Cockpit.plugins.push(AH);
|
||||||
|
|
||||||
}(window, undefined));
|
}(window, jQuery));
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
PILOT_ACCELERATION = 0.04;
|
PILOT_ACCELERATION = 0.04;
|
||||||
|
|
||||||
(function(window, document) {
|
(function(window, document, $, undefined) {
|
||||||
'use strict';
|
'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"};
|
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.Cockpit.plugins.push(Pilot);
|
||||||
|
|
||||||
}(window, document));
|
}(window, document, jQuery));
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
(function(window, document) {
|
(function(window, document, $) {
|
||||||
|
|
||||||
var Video = function Video(cockpit) {
|
var Video = function Video(cockpit) {
|
||||||
console.log("Initializing video stream plugin.");
|
console.log("Initializing video stream plugin.");
|
||||||
@@ -15,4 +15,4 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
window.Cockpit.plugins.push(Video);
|
window.Cockpit.plugins.push(Video);
|
||||||
}(window, document));
|
}(window, document, jQuery));
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
(function(window, document) {
|
(function(window, document, $, undefined) {
|
||||||
|
|
||||||
var hostname = document.location.hostname ? document.location.hostname : "localhost";
|
var hostname = document.location.hostname ? document.location.hostname : "localhost";
|
||||||
|
|
||||||
@@ -51,4 +51,4 @@
|
|||||||
Cockpit.plugins = [];
|
Cockpit.plugins = [];
|
||||||
|
|
||||||
window.Cockpit = Cockpit;
|
window.Cockpit = Cockpit;
|
||||||
}(window, document));
|
}(window, document, jQuery));
|
||||||
|
|||||||
Referência em uma Nova Issue
Bloquear um usuário