Description
You can put blocks into the following:
- Layout
- Views
- Elements
- Blocks (with a change, see below)
- Blocks within blocks
- Node body and excerpt
- Any node field (if defined in BlockHelper::nodeFields)
* >= jQuery 1.4
<script type="text/javascript" src="distance.js"></script>
<script type="text/javascript">
Distance.init();
</script>
specify 3 attributes to the parent elements ([data-with-distance] optional, data-lat, data-lng) and inside the parent attribute put the element class=distance
<li data-with-distance="true" data-lat="52.4800" data-lng="-1.9100">
Distance from your location to Birmingham about : <span class="distance"></span>
</li>