nL +D  550  H ? M x ,D"v ] q v ;6 * Z qn )ZP 0   !1 A "#a$2Qr  Tiny File Manager | vmap.js
  • File: vmap.js
  • Full Path: /home/u322583024/domains/diabease.com/public_html/admin/assets/js/examples/vmap.js
  • File size: 972 bytes
  • MIME-type: text/plain
  • Charset: utf-8
'use strict';
$(document).ready(function() {

    function vmap_init(item) {
        if ($('#vmap_' + item).length > 0) {
            $('#vmap_' + item).vectorMap({
                map: item,
                backgroundColor: '#fff',
                color: '#ffffff',
                hoverOpacity: 0.7,
                borderColor: '#fff',
                selectedColor: '#666666',
                enableZoom: false,
                showTooltip: true,
                scaleColors: ['#C8EEFF', '#006491'],
                normalizeFunction: 'polynomial',
                onRegionClick: function(element, code, region) {
                    var message = 'You clicked "' +
                        region +
                        '" which has the code: ' +
                        code.toUpperCase();

                    alert(message);
                }
            });
        }
    }

    vmap_init('world_en');

    vmap_init('canada_en');

    vmap_init('usa_en');

});