Skip to content

Instantly share code, notes, and snippets.

@jnachtigall
Last active December 7, 2016 12:42
Show Gist options
  • Save jnachtigall/b6a9071ccb2da6605c5ff1b5c4e1f4aa to your computer and use it in GitHub Desktop.
Save jnachtigall/b6a9071ccb2da6605c5ff1b5c4e1f4aa to your computer and use it in GitHub Desktop.
'use strict';
var APP = window.APP || {};
// document ready
// TODO: find a place for this object
APP.GsaFilter = {
gsaFilterModule: null,
btnGsaSwitcherFilter: null,
init: function () {
var _this = this;
this.gsaFilterModule = $('.module-gsa-filter');
this.btnGsaSwitcherFilter = $('.btn-gsa-switcher-filter');
var _icon = this.btnGsaSwitcherFilter.find('.icon');
this.btnGsaSwitcherFilter.on('click', function (evt) {
_this.gsaFilterModule.toggle('slide', { direction: 'right' });
if (_icon.hasClass('icon-wide-down')) {
_icon.removeClass('icon-wide-down');
_icon.addClass('icon-wide-up');
} else {
_icon.removeClass('icon-wide-up');
_icon.addClass('icon-wide-down');
}
});
}
};
'use strict';
/* helper functions to process the stats data */
var APP = window.APP || {};
/**
Metadata als Map, z.B.
fpj: {
nameneutral_de: "Führungspositionen in der Justiz",
nummer: "0107"
usw.
}
mlp: { usw. }
usw.
*/
// Filters have been set and we do have data and can show it on the map?
APP.hasData = function () {
// FIXME: implement
// return false;
return true;
// var data = APP.getIndicatorMetadataList();
// if (_.isArray(data)) {
// return true;
// }
// return false;
};
APP.hasKartendarstellung = function () {
// FIXME: implement
return true;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment