Sha256: 7dd6588f0803e2349c3f64e4cc5e38a381945136051750a5df9ebd10c461686e
Contents?: true
Size: 1.57 KB
Versions: 2
Compression:
Stored size: 1.57 KB
Contents
(function() { function makeJqvMap(el, type, opts) { var defaultOpts = { map: type, backgroundColor: '#ffffff', regionStyle: { initial: { fill: '#42a5f5', 'fill-opacity': 1, stroke: 'none', 'stroke-width': 0, 'stroke-opacity': 1 }, hover: { 'fill-opacity': .8, cursor: 'pointer' } } } for (var attrname in opts) { defaultOpts[attrname] = opts[attrname]; } el.vectorMap(defaultOpts) } function initJqvDemoMaps() { makeJqvMap($('.jqv-world-map'), 'world_mill_en') makeJqvMap($('.jqv-inverse-world-map'), 'world_mill_en', { backgroundColor: '#193341', regionStyle: { initial: { fill: '#3C6A81', 'fill-opacity': 0.8, stroke: 'none', 'stroke-width': 1, 'stroke-opacity': 1 }, hover: { fill: '#FFF', 'fill-opacity': 1 } } }) makeJqvMap($('.jqv-canada-map'), 'ca_mill') makeJqvMap($('.jqv-europe-map'), 'europe_mill_en') makeJqvMap($('.jqv-us-map'), 'us_aea_en') makeJqvMap($('.jqv-india-map'), 'in_mill_en') makeJqvMap($('.jqv-china-map'), 'cn_mill_en') makeJqvMap($('.jqv-australia-map'), 'au_mill_en') makeJqvMap($('.jqv-southafrica-map'), 'za_mill_en') makeJqvMap($('.jqv-france-map'), 'fr_mill_en') makeJqvMap($('.jqv-germany-map'), 'de_mill_en') } KisoThemes.hookOnPageLoad( function() { KisoThemes.jsLibIsActive('demo-jqvectormap') && initJqvDemoMaps.call(this) }) })()
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kiso_themes-1.0.2 | app/assets/javascripts/kiso_themes/demo/jqvectormap.js |
kiso_themes-1.0.2 | lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/jqvectormap.js |