Difference between revisions of "Team:BABS UNSW Australia"
Line 38: | Line 38: | ||
</div> | </div> | ||
<script> | <script> | ||
+ | $(document).ready(function(e) { | ||
+ | $('img[usemap]').rwdImageMaps(); | ||
+ | |||
+ | $('area').on('click', function() { | ||
+ | alert($(this).attr('alt') + ' clicked'); | ||
+ | }); | ||
+ | }); | ||
;(function($) { | ;(function($) { | ||
$.fn.rwdImageMaps = function() { | $.fn.rwdImageMaps = function() { |
Revision as of 13:47, 18 September 2015