develop
Last change
on this file since e954f3e was 194a359, checked in by beratkjufliju <kufliju@…>, 3 years ago |
added departments, edited users and added user settings
|
-
Property mode
set to
100644
|
File size:
974 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | $(document).ready(function () {
|
---|
3 |
|
---|
4 | function vmap_init(item) {
|
---|
5 | if ($('#vmap_' + item).length > 0) {
|
---|
6 | $('#vmap_' + item).vectorMap({
|
---|
7 | map: item,
|
---|
8 | backgroundColor: '#fff',
|
---|
9 | color: '#ffffff',
|
---|
10 | hoverOpacity: 0.7,
|
---|
11 | borderColor: '#fff',
|
---|
12 | selectedColor: '#666666',
|
---|
13 | enableZoom: false,
|
---|
14 | showTooltip: true,
|
---|
15 | scaleColors: ['#C8EEFF', '#006491'],
|
---|
16 | normalizeFunction: 'polynomial',
|
---|
17 | onRegionClick: function (element, code, region) {
|
---|
18 | var message = 'You clicked "'
|
---|
19 | + region
|
---|
20 | + '" which has the code: '
|
---|
21 | + code.toUpperCase();
|
---|
22 |
|
---|
23 | alert(message);
|
---|
24 | }
|
---|
25 | });
|
---|
26 | }
|
---|
27 | }
|
---|
28 |
|
---|
29 | vmap_init('world_en');
|
---|
30 |
|
---|
31 | vmap_init('canada_en');
|
---|
32 |
|
---|
33 | vmap_init('usa_en');
|
---|
34 |
|
---|
35 | }); |
---|
Note:
See
TracBrowser
for help on using the repository browser.