Skip to content

Commit eafd160

Browse files
committedAug 28, 2013
Moved buttons from main view to plugin
1 parent 725113c commit eafd160

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎plugins/pilot/public/js/pilot.js

+4
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ PILOT_ACCELERATION = 0.04;
8787
this.moving = false;
8888
this.keys = {};
8989

90+
// Add the buttons to the control area
91+
$('#controls').append('<input type="button" id="ftrim" value="Flat trim">');
92+
$('#controls').append('<input type="button" id="calibratemagneto" value="Calibrate magneto">');
93+
9094
// Start with magneto calibration disabled.
9195
$('#calibratemagneto').prop('disabled', true);
9296

‎views/index.ejs

-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
<body>
2626
<div class="header-container">
2727
<span id="controls">
28-
<input type="button" id="ftrim" value="Flat trim">
29-
<input type="button" id="calibratemagneto" value="Calibrate magneto">
3028
</span>
3129
<header class="wrapper clearfix">
3230
<span class="brand">WebFlight</span>

0 commit comments

Comments
 (0)
Please sign in to comment.