| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>ArduPilot Custom Firmware Builder</title>
- <meta name="description"
- content="ArduPilot Custom Firmware Builder. It allows to build custom ArduPilot firmware by selecting the wanted features.">
- <meta name="author" content="ArduPilot Team">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <!-- OG Meta Tags to improve the way the post looks when you share the page on LinkedIn, Facebook, Google+ -->
- <meta property="og:site_name" content="ArduPilot"/>
- <meta property="og:site" content=""/>
- <meta property="og:title" content="ArduPilot Custom Firmware Builder"/>
- <meta property="og:description"
- content="ArduPilot Custom Firmware Builder. It allows to build custom ArduPilot firmware by selecting the wanted features."/>
- <!-- description shown in the actual shared post -->
- <meta property="og:type" content="website">
- <meta property="og:url" content="https://custom.ardupilot.org/">
- <meta property="og:image" content="https://ardupilot.org/application/files/6315/7552/1962/ArduPilot-Motto.png">
- <link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='styles/main.css') }}">
- </head>
- <body onload="javascript: reload()">
- <div id="main">
- <a href="https://custom.ardupilot.org/">
- <div id="logo">
- </div>
- </a>
- <div id="menu">
- <h2>ArduPilot Custom Firmware Builder</h2>
- <p>Please select the branch to build, then hit 'Next'.</p>
- <form action="/index2" method="post">
- <label for="branch">Choose a branch:
- <select name="branch">
- {% for branch in get_branches()[0] %}
- {% if branches == get_branches()[1] %}
- <option value="{{branch}}" selected>{{get_branches()[0][branch]}}</option>
- {% else %}
- <option value="{{branch}}">{{get_branches()[0][branch]}}</option>
- {% endif %}
- {% endfor %}
- </select>
- </label>
- <p></p>
- <label for="vehicle">Choose a vehicle:
- <select name="vehicle">
- {% for vehicle in get_vehicles()[0] %}
- {% if vehicle == get_vehicles()[1] %}
- <option value="{{vehicle}}" selected>{{vehicle}}</option>
- {% else %}
- <option value="{{vehicle}}">{{vehicle}}</option>
- {% endif %}
- {% endfor %}
- </select>
- </label>
- <br>
- <input type="submit" value="Next">
- </form>
- </div>
- <hr>
- <p>Exisiting builds (click on the status of a build to view it):</p>
- <div id="build_status"></div>
- <br/>
- <script>
- function reload() {
- var output = document.getElementById('build_status');
- var xhr = new XMLHttpRequest();
- xhr.open('GET', "/builds/status.html");
- // disable cache, thanks to: https://stackoverflow.com/questions/22356025/force-cache-control-no-cache-in-chrome-via-xmlhttprequest-on-f5-reload
- xhr.setRequestHeader("Cache-Control", "no-cache, no-store, max-age=0");
- xhr.setRequestHeader("Expires", "Tue, 01 Jan 1980 1:00:00 GMT");
- xhr.setRequestHeader("Pragma", "no-cache");
- xhr.onload = function () {
- if (xhr.status === 200) {
- output.innerHTML = xhr.responseText;
- }
- setTimeout(reload, 5000)
- }
- xhr.send();
- }
- </script>
- </div>
- </body>
- <hr>
- <footer>Created by Will Piper, <a href=https://github.com/ArduPilot/CustomBuild>Source Code</a>.</footer>
- </html>
|