All “all” views are now consistent #595

This commit is contained in:
James Cole
2017-04-22 07:04:39 +02:00
parent ae30f7920b
commit ee08fc2421
14 changed files with 397 additions and 42 deletions

View File

@@ -19,4 +19,12 @@ $(function () {
columnChart(budgetChartUri, 'budgetOverview');
}
// other three charts:
pieChart(expenseCategoryUri, 'budget-cat-out');
pieChart(expenseAssetUri, 'budget-asset-out');
pieChart(expenseExpenseUri, 'budget-expense-out');
});

42
public/js/ff/tags/show.js Normal file
View File

@@ -0,0 +1,42 @@
/*
* show.js
* Copyright (c) 2017 thegrumpydictator@gmail.com
* This software may be modified and distributed under the terms of the Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
/*
Some vars as prep for the map:
*/
var map;
var markers = [];
var setTag = false;
var mapOptions = {
zoom: zoomLevel,
center: new google.maps.LatLng(latitude, longitude),
disableDefaultUI: true,
zoomControl: false,
scaleControl: true,
draggable: false
};
function initialize() {
"use strict";
if (doPlaceMarker === true) {
/*
Create new map:
*/
map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
var myLatlng = new google.maps.LatLng(latitude, longitude);
var marker = new google.maps.Marker({
position: myLatlng,
map: map
});
marker.setMap(map);
}
}
google.maps.event.addDomListener(window, 'load', initialize);

File diff suppressed because one or more lines are too long