X-Git-Url: https://robinkrens.nl/gitweb/?p=robinkrens.nl;a=blobdiff_plain;f=travel%2Fhighlightasia.js;fp=travel%2Fhighlightasia.js;h=b907d0e56529645cb49c6c6bae2ac51b0ff99502;hp=0000000000000000000000000000000000000000;hb=8b03ea69fd1b69dee76a0f5d7f1ab594b2135dc0;hpb=62da952ff19284ffdf28c30118a709ab8b4744b2 diff --git a/travel/highlightasia.js b/travel/highlightasia.js new file mode 100644 index 0000000..b907d0e --- /dev/null +++ b/travel/highlightasia.js @@ -0,0 +1,51 @@ + $(function(){ + + + $('#world-map').vectorMap({ + backgroundColor: 'white', + regionStyle: { + initial: { + fill: '#DDDDDD', + "fill-opacity": 1, + stroke: 'black', + "stroke-width": 0.0, + "stroke-opacity": 1 + }, + hover: { + "fill-opacity": 0.8 + }, + selected: { + fill: '#99FF00' + }, + selectedHover: {} + }, + selectedRegions: ["TH", "MY", "KH", "LA", "VN", "MM" + ], + markerStyle: { + initial: { + fill: '#FFFFFF', + stroke: '#000000', + r: 7, + }, + hover: { + fill: "orange", + stroke: 'black', + "stroke-width": 1 + }, + selected: {fill: '#FFFFFF', + stroke: '#000000'} + }, + focusOn: { + x: 0.75, + y: 0.6, + scale: 3, + }, + onRegionClick: function (event, code) { + + if (code === 'TH') { + window.location = 'thailand.php'; + } +} + +}); + }); \ No newline at end of file