Difference between revisions of "Template:Team:NUS Singapore/JS"

Line 1,661: Line 1,661:
 
     })
 
     })
 
}).call(this);
 
}).call(this);
 +
</script>
 +
<script>
 +
(function() {
 +
new PointsMap(document.querySelector('#interactive-2'), {
 +
// Maximum opacity that the background element of a Point can have when the point is active (mouse gets closer to it).
 +
maxOpacityOnActive : 1,
 +
// When the mouse is [activeOn]px away from one point, its image gets opacity = point.options.maxOpacity.
 +
activeOn : 90
 +
});
 +
})();
 
</script>
 
</script>
 
</html>
 
</html>

Revision as of 12:54, 4 October 2016