src/bootstrap/dist/js/bootstrap.min.js.map \
\
src/static/js/jquery-3.3.1.min.js \
- src/static/js/popper.min.js \
- src/static/js/site.js
+ src/static/js/popper.min.js
static_jsdir = $(staticdir)/js
+++ /dev/null
-$.query = function(name){
- var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href);
- return results[1] || 0;
-}
-
-/* $(".planet-search-autocomplete").typeahead({
- source: function(query, process) {
- $.get("/api/planet/search/autocomplete", { q: query }, function(data) {
- if (data.query == query) {
- process(data.results);
- }
- });
- },
-}); */
-
-function getCookie(name) {
- var r = document.cookie.match("\\b" + name + "=([^;]*)\\b");
- return r ? r[1] : undefined;
-}
-
-jQuery.postJSON = function(url, args, callback) {
- args._xsrf = getCookie("_xsrf");
- $.ajax({url: url, data: $.param(args), dataType: "text", type: "POST",
- success: function(response) {
- callback(eval("(" + response + ")"));
- }
- });
-};
<script src="{{ static_url("js/jquery-3.3.1.min.js") }}"></script>
<script src="{{ static_url("js/popper.min.js") }}"></script>
<script src="{{ static_url("js/bootstrap.min.js") }}"></script>
- <script src="{{ static_url("js/site.js") }}"></script>
{% block javascript %}{% end block %}
</body>
</html>