tide times

remove ads remove ads

Tide Times on your Website

If you own a website, you can show today's tide times using a simple JavaScript widget.

The widget has the following features:

  • Always up to date - nothing for you to maintain.
  • Cross-browser compatible.
  • Easy to install - just one line of code.

Instructions

Showing a Tide Times widget on your website is as easy as 1-2-3!

  1. Select the desired location from the list below.
  2. Copy the web code from the bottom box into your website document.
  3. Upload and enjoy!

remove ads remove ads

Customisation

You can customise your widget's appearance by setting some JavaScript variables before the include:

Variable   Default   Description
tt_width   158px   Width of the widget in pixels
tt_height   218px   Height of the widget in pixels
tt_corner   4px   Outer corner radius in pixels
tt_border   1px solid #888888   Widget border style
tt_bgnd   #dddddd   Background colour, image etc
tt_fgcol   #333333   Title/Date colour

All variables should be strings and should match the above. You can use most CSS options to replace the defaults.

Customisation Example

To display the widget for Deal 200 pixels wide with a thick red border and white background, you might use the following:


<script type="text/javascript">
var tt_border = '4px solid #cc0000';
var tt_bgnd = '#ffffff';
var tt_width = '200px';
</script> 
<script src="https://www.tidetimes.org.uk/deal-tide-times.js" type="text/javascript"></script> 

 

Widget Code:


Choose a Location:


Your Widget Code:

Example Widget

Here's what the default widget should look like before customisation:

view cartView Basket my accountMy Account