From 6fcfb7c04d32e1c8b26a312295bf7ac3ec2d2ad7 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 13 Jul 2018 19:06:45 +0200 Subject: Fixed many permissions and began admin interface --- .../jvectormap/jquery-jvectormap.js | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 public/bower_components/jvectormap/jquery-jvectormap.js (limited to 'public/bower_components/jvectormap/jquery-jvectormap.js') diff --git a/public/bower_components/jvectormap/jquery-jvectormap.js b/public/bower_components/jvectormap/jquery-jvectormap.js new file mode 100644 index 0000000..16e12f1 --- /dev/null +++ b/public/bower_components/jvectormap/jquery-jvectormap.js @@ -0,0 +1,44 @@ +/** + * jVectorMap version 2.0.4 + * + * Copyright 2011-2014, Kirill Lebedev + * + */ + +(function( $ ){ + var apiParams = { + set: { + colors: 1, + values: 1, + backgroundColor: 1, + scaleColors: 1, + normalizeFunction: 1, + focus: 1 + }, + get: { + selectedRegions: 1, + selectedMarkers: 1, + mapObject: 1, + regionName: 1 + } + }; + + $.fn.vectorMap = function(options) { + var map, + methodName, + map = this.children('.jvectormap-container').data('mapObject'); + + if (options === 'addMap') { + jvm.Map.maps[arguments[1]] = arguments[2]; + } else if ((options === 'set' || options === 'get') && apiParams[options][arguments[1]]) { + methodName = arguments[1].charAt(0).toUpperCase()+arguments[1].substr(1); + return map[options+methodName].apply(map, Array.prototype.slice.call(arguments, 2)); + } else { + options = options || {}; + options.container = this; + map = new jvm.Map(options); + } + + return this; + }; +})( jQuery ); -- cgit v1.2.3