diff --git a/_locales/en/messages.json b/_locales/en/messages.json
index e8f61491..4a225282 100755
--- a/_locales/en/messages.json
+++ b/_locales/en/messages.json
@@ -62,6 +62,9 @@
"tabLanding": {
"message": "Welcome"
},
+ "tabHelp": {
+ "message": "Documentation & Support"
+ },
"tabSetup": {
"message": "Setup"
@@ -210,6 +213,12 @@
"defaultWelcomeText": {
"message": "Welcome to Cleanflight - Configurator , a utility designed to simplify updating, configuring and tuning of your flight controller. The application supports all hardware that can run cleanflight (sparky, cc3d, acro naze, naze, afromini, flip32, flip32+, cjmcu, chebuzz f3, stm32f3discovery, naze32pro, etc) The firmware source code can be downloaded from here The newest binary firmware image is available here Latest CP210x Drivers can be downloaded from here "
},
+ "defaultContributingHead": {
+ "message": "Contributing"
+ },
+ "defaultContributingText": {
+ "message": "If you would like to help make Cleanflight even better you can help in many ways, including:
"
+ },
"defaultChangelogHead": {
"message": "Configurator - Changelog"
},
diff --git a/js/gui.js b/js/gui.js
index 89fab7d7..8e52424c 100644
--- a/js/gui.js
+++ b/js/gui.js
@@ -15,7 +15,8 @@ var GUI_control = function () {
this.timeout_array = [];
this.defaultAllowedTabsWhenDisconnected = [
'landing',
- 'firmware_flasher'
+ 'firmware_flasher',
+ 'help'
];
this.defaultAllowedTabsWhenConnected = [
'adjustments',
diff --git a/main.html b/main.html
index e7afaf49..fb41a0eb 100755
--- a/main.html
+++ b/main.html
@@ -11,6 +11,7 @@
+
@@ -57,6 +58,7 @@
+
@@ -133,6 +135,7 @@
diff --git a/main.js b/main.js
index fa3d54b6..b2f1d4da 100755
--- a/main.js
+++ b/main.js
@@ -109,6 +109,9 @@ $(document).ready(function () {
case 'firmware_flasher':
TABS.firmware_flasher.initialize(content_ready);
break;
+ case 'help':
+ TABS.help.initialize(content_ready);
+ break;
case 'auxiliary':
TABS.auxiliary.initialize(content_ready);
diff --git a/tabs/help.css b/tabs/help.css
new file mode 100644
index 00000000..a530bef9
--- /dev/null
+++ b/tabs/help.css
@@ -0,0 +1,64 @@
+.tab-help .left {
+ width: 60%;
+}
+.tab-help .right {
+ float: left;
+
+ margin-left: 10px;
+ width: calc(40% - 10px);
+}
+
+.tab-landing .section {
+ margin-bottom: 10px;
+}
+
+.left .section:last-child,
+.right .section:last-child {
+ margin-bottom: 0px;
+}
+
+.section .title {
+ line-height: 20px;
+
+ text-align: center;
+ font-weight: bold;
+ color: white;
+
+ border-bottom: 1px solid silver;
+ background-color: #3f4241;
+}
+
+.documentation {
+ height: 447px;
+
+ border: 1px solid silver;
+}
+.documentation p {
+ padding: 5px;
+}
+.documentation p a {
+ font-weight: bold;
+}
+.documentation p a:hover {
+ text-decoration: underline;
+}
+.support {
+ height: 447px;
+
+ border: 1px solid silver;
+}
+.support p {
+ padding: 5px;
+}
+.support p a {
+ font-weight: bold;
+}
+.support p a:hover {
+ text-decoration: underline;
+}
+.support .wrapper {
+ height: 426px;
+
+ overflow-y: scroll;
+ overflow-x: hidden;
+}
diff --git a/tabs/help.html b/tabs/help.html
new file mode 100644
index 00000000..b5270ff0
--- /dev/null
+++ b/tabs/help.html
@@ -0,0 +1,17 @@
+
\ No newline at end of file
diff --git a/tabs/help.js b/tabs/help.js
new file mode 100644
index 00000000..53236897
--- /dev/null
+++ b/tabs/help.js
@@ -0,0 +1,21 @@
+'use strict';
+
+TABS.help = {};
+TABS.help.initialize = function (callback) {
+ var self = this;
+
+ if (GUI.active_tab != 'help') {
+ GUI.active_tab = 'help';
+ googleAnalytics.sendAppView('help');
+ }
+
+ $('#content').load("./tabs/help.html", function () {
+ localize();
+
+ if (callback) callback();
+ });
+};
+
+TABS.help.cleanup = function (callback) {
+ if (callback) callback();
+};
\ No newline at end of file
diff --git a/tabs/landing.css b/tabs/landing.css
index 90143548..ce705507 100644
--- a/tabs/landing.css
+++ b/tabs/landing.css
@@ -7,11 +7,19 @@
margin-left: 10px;
width: calc(40% - 10px);
}
+
+.tab-landing .section {
+ margin-bottom: 10px;
+}
+
+.left .section:last-child,
+.right .section:last-child {
+ margin-bottom: 0px;
+}
+
.tab-landing .optional_permissions {
display: none;
- margin-bottom: 10px;
-
border: 1px solid silver;
}
.tab-landing .optional_permissions .title {
@@ -46,19 +54,32 @@
.tab-landing .optional_permissions a:hover {
background-color: #dedcdc;
}
-.welcome {
- height: 171px;
- padding: 5px;
- margin-bottom: 10px;
+.welcome {
+ height: 207px;
+}
+
+.contributing,
+.welcome {
+ padding: 5px;
border: 1px solid silver;
}
+
+.contributing a,
.welcome a {
font-weight: bold;
}
+.contributing a:hover,
.welcome a:hover {
text-decoration: underline;
}
+
+.contributing li {
+ list-style-type: disc;
+ list-style-position: initial;
+ margin-left: 20px;
+}
+
.changelog {
border: 1px solid silver;
}
@@ -88,13 +109,13 @@
.changelog .wrapper p {
margin-bottom: 5px;
}
+
.donate {
height: 105px;
- margin-bottom: 10px;
-
border: 1px solid silver;
}
-.donate .title {
+
+.section .title {
line-height: 20px;
text-align: center;
@@ -117,19 +138,9 @@
}
.tab-landing .sponsors {
- height: 105px;
+ height: 254px;
border: 1px solid silver;
}
-.tab-landing .sponsors .title {
- line-height: 20px;
-
- text-align: center;
- font-weight: bold;
- color: white;
-
- border-bottom: 1px solid silver;
- background-color: #3f4241;
-}
.tab-landing .sponsors p {
padding: 5px;
}
@@ -139,57 +150,3 @@
.tab-landing .sponsors p a:hover {
text-decoration: underline;
}
-.documentation {
- height: 135px;
-
- border: 1px solid silver;
-}
-.documentation .title {
- line-height: 20px;
-
- text-align: center;
- font-weight: bold;
- color: white;
-
- border-bottom: 1px solid silver;
- background-color: #3f4241;
-}
-.documentation p {
- padding: 5px;
-}
-.documentation p a {
- font-weight: bold;
-}
-.documentation p a:hover {
- text-decoration: underline;
-}
-.support {
- height: 135px;
-
- border: 1px solid silver;
-}
-.support .title {
- line-height: 20px;
-
- text-align: center;
- font-weight: bold;
- color: white;
-
- border-bottom: 1px solid silver;
- background-color: #3f4241;
-}
-.support p {
- padding: 5px;
-}
-.support p a {
- font-weight: bold;
-}
-.support p a:hover {
- text-decoration: underline;
-}
-.support .wrapper {
- height: 114px;
-
- overflow-y: scroll;
- overflow-x: hidden;
-}
diff --git a/tabs/landing.html b/tabs/landing.html
index 37821ff8..1421c296 100644
--- a/tabs/landing.html
+++ b/tabs/landing.html
@@ -1,24 +1,18 @@
-
-
-
-
-
-
\ No newline at end of file