par
GeGaX » 24 juil. 2017, 15:13
voir
https://regex101.com/r/rItkul/1
mais il faudrait d'autres lignes de contenu pour voir ce qui change, ce qui est fixe, s'il faut capturer les valeurs avec l'unité ou si l'unité ne change jamais.
Merci or 1 je ne connaissais pas cette outil

Toutes les lignes sont du même type, je te mets ici une page du code source exploité.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no initial-scale=1.0, minimum-scale=1.0" />
<title>Atlantic Record</title>
<link href="div.css?42" rel="stylesheet" type="text/css">
<!--[if lt IE 7]>
<link href="div6.css?23" rel="stylesheet" type="text/css">
<![endif]-->
<!--[if lt IE 9]>
<style type="text/css">
.ie {
display: none;
}
</style>
<![endif]-->
<script type="text/javascript">
var scale = 256;
var session_id = "f169f64497e491553ccb1782a59dedd2";
var days = 5;
var boat_lat = 38.9330555555556;
var boat_lon = -67.9911111111111;
var goal_lat = 49.9401;
var goal_lon = -5.09781;
var scroll_x = 16696;
var scroll_y = -12908;
var boat_heading = 60.2539537543916;
var iso_id = '76/b291495969e37202559ef79faa340120256';
var iso_minx = -49;
var iso_miny = 32;
var iso_maxx = -30;
var iso_maxy = 37;
var wind_time = 0;
var grib_steps = 2;
var windbase = 1500897600;
var datastamp = '06+237';
var mobile = 0;
</script>
<SCRIPT type="text/javascript" src="util.js?30" defer></SCRIPT>
<SCRIPT type="text/javascript" src="iwind.js?32" defer></SCRIPT>
<SCRIPT type="text/javascript" src="cwind.js?30" defer></SCRIPT>
<SCRIPT type="text/javascript" src="scroll.js?32" defer></SCRIPT>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-27385643-1', 'zezo.org');
ga('send', 'pageview');
</script>
</head>
<body onload="init()">
<div style="position: relative; top:0px; width:100%;">
<div id="fs_menubar">
<a href="/index.html" style="color:black;"><u>H</u>ome</a>
<a href="/forum.pl" style="color:black;"><u>F</u>orum</a>
<a href="/fb.html" style="color:black;"><u>C</u>ontact</a>
<a href="/qa.html" style="color:black;"><u>Q</u>&A</a>
<a href="/about.html" style="color:black;"><u>A</u>bout</a>
<a href="polars.html?pro=0" style="color:black;" target="vor_polars"><u>P</u>olars</a> |
<!-- Announcement area -->
<!--font size="-1"> <Would you like to support the project by
<a style="text-decoration:underline;" href="about.html#donate">donating</a>
a small amount for hardware upgrade? Read the
<a style="text-decoration:underline;" href="about.html#tech">full story</a>. -->
<b>Atlantic Record</b>
<span style="color:red">New! </span><a style="text-decoration:underline;" href="http://sail.zezo.org/forum.pl?tid=5969">6% speed adjustment and other changes</a>
<div style="float:right"><a href="about.html#donate"><img src="http://i.zezo.org/img/btn_donate_SM.gif"></a></div>
</div>
<div id="new_nav">
<button class="nnav" onmousedown="zoom_out();" title="Zoom Out"><b>−</b></button><select class="nnav" title="Zoom level" onchange="select_zoom(this);">
<option value="8" >1%</option>
<option value="16" >2%</option>
<option value="32" >5%</option>
<option value="64" >10%</option>
<option value="128" >25%</option>
<option value="256" selected>50%</option>
<option value="512" >100%</option>
</select><button class="nnav" onmousedown="zoom_in();" title="Zoom In" style="margin-right:20px;"><b>+</b></button>
<button class="nnav pad2 ie" onmousedown="toggle_tracks();" title="Toggle tracks"><img id="track_icon" style="vertical-align: text-top;" width="16px" height="16px" src="img/icon_track_gray.png"></button>
<button class="nnav pad2" onmousedown="wind_display(0);" title="None"><img style="vertical-align: text-top;" width="16px" height="16px" src="img/icon_n.png"></button><button class="nnav pad2" onmousedown="wind_display(1);" title="Black barbs"><img style="vertical-align: text-top;" width="16px" height="16px" src="img/icon_bb.png"></button><button class="nnav pad2 ie" onmousedown="wind_display(2);" title="Color barbs"><img style="vertical-align: text-top;" width="16px" height="16px" src="img/icon_cb.png"></button><button class="nnav pad2 ie" onmousedown="wind_display(3);" title="Arrows"><img style="vertical-align: text-top;" width="16px" height="16px" src="img/icon_a.png"></button>
<button title="Previous wind" class="nnav" onmousedown="prev_wind();"><</button><select id="hours" class="nnav" title="Wind time" onchange="show_wind(this.selectedIndex * 3);">
<option selected>Now</option>
<option >+3 h</option>
<option >+6 h</option>
<option >+9 h</option>
<option >+12 h</option>
<option >+15 h</option>
<option >+18 h</option>
<option >+21 h</option>
<option >+24 h</option>
<option >+27 h</option>
<option >+30 h</option>
<option >+33 h</option>
<option >+36 h</option>
<option >+39 h</option>
<option >+42 h</option>
<option >+45 h</option>
<option >+48 h</option>
<option >+51 h</option>
<option >+54 h</option>
<option >+57 h</option>
<option >+60 h</option>
<option >+63 h</option>
<option >+66 h</option>
<option >+69 h</option>
<option >+72 h</option>
<option >+75 h</option>
<option >+78 h</option>
<option >+81 h</option>
<option >+84 h</option>
<option >+87 h</option>
<option >+90 h</option>
<option >+93 h</option>
<option >+96 h</option>
<option >+99 h</option>
<option >+102 h</option>
<option >+105 h</option>
<option >+108 h</option>
<option >+111 h</option>
<option >+114 h</option>
<option >+117 h</option>
<option >+120 h</option>
<option >+123 h</option>
<option >+126 h</option>
<option >+129 h</option>
<option >+132 h</option>
<option >+135 h</option>
<option >+138 h</option>
<option >+141 h</option>
<option >+144 h</option>
<option >+147 h</option>
<option >+150 h</option>
<option >+153 h</option>
<option >+156 h</option>
<option >+159 h</option>
<option >+162 h</option>
<option >+165 h</option>
<option >+168 h</option>
<option >+171 h</option>
<option >+174 h</option>
<option >+177 h</option>
<option >+180 h</option>
<option >+183 h</option>
<option >+186 h</option>
<option >+189 h</option>
<option >+192 h</option>
<option >+195 h</option>
<option >+198 h</option>
<option >+201 h</option>
<option >+204 h</option>
<option >+207 h</option>
<option >+210 h</option>
<option >+213 h</option>
<option >+216 h</option>
<option >+219 h</option>
<option >+222 h</option>
<option >+225 h</option>
<option >+228 h</option>
<option >+231 h</option>
<option >+234 h</option>
<option >+237 h</option>
<option >+240 h</option>
</select><button class="nnav" title="Next wind" style="margin-right: 30px;" onmousedown="next_wind();">></button>
<select onchange="set_days(this.selectedIndex + 1);" class="nnav" title="Track duration">
<option >1d</option>
<option >2d</option>
<option >3d</option>
<option >4d</option>
<option selected>5d</option>
<option >6d</option>
<option >7d</option>
<option >8d</option>
<option >9d</option>
<option >10d</option>
</select>
<!--button class="nnav"><b>?</b></button-->
</div><!-- new nav-->
<!-- div id="boat_name_d" style="clear: right;">
<form method="GET" action="chart.pl">
<input type="text" name="boat" size="20" title="Boat name" id="boat_name" placeholder="Enter Boat Name" value="">
<input type="hidden" name="sid" value="f169f64497e491553ccb1782a59dedd2">
<button type="submit">Get</button>
</form>
</div--!>
<div id="latlon" style="clear: right;">
<form method="GET" action="chart.pl">
<input type="tel" name="lon_deg" size="3" maxlength="3" style="width: 3ch;" value="67">°
<input type="tel" name="lon_min" size="2" maxlength="2" style="width: 2ch;" value="59">'
<input type="tel" name="lon_sec" size="2" maxlength="2" style="width: 2ch;" value="28">"
<select name="lon_ew">
<option >E</option>
<option selected>W</option>
<select>
<input type="tel" name="lat_deg" size="3" maxlength="3" style="width: 3ch;" value="38">°
<input type="tel" name="lat_min" size="2" maxlength="2" style="width: 2ch;" value="55">'
<input type="tel" name="lat_sec" size="2" maxlength="2" style="width: 2ch;" value="59">"
<select name="lat_ns">
<option selected>N</option>
<option >S</option>
<select>
<button type="submit">Go!</button>
</form>
</div>
</div>
<div id="vp_container">
<div id="vp_canvas" onmousedown="grab(event)">
<div id="wind_info" >Wind: <span id="wind_data"></span></div>
<div id="tile_layer"></div>
<div id="iso_layer" style="z-index:0" ></div>
<div id="winds_layer"></div>
<div id="dot_layer" style="z-index:0">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-17408px; top:13071px;"
onmouseover="updi(event,'2017-07-24 14:20 CEST (T+ 0:00)<br>Distances: 0.0nm/2695.2nm<br><b>Wind:</b> 135° 11.0 kt (<b>TWA 95°</b>)<br><b>Heading:</b> 46°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 17.53 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(0);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-17396px; top:13063px;"
onmouseover="updi(event,'2017-07-24 14:30 CEST (T+ 0:10)<br>Distances: 2.9nm/2692.4nm<br><b>Wind:</b> 137° 10.1 kt (<b>TWA 95°</b>)<br><b>Heading:</b> 50°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 17.03 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(0);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-17373px; top:13048px;"
onmouseover="updi(event,'2017-07-24 14:50 CEST (T+ 0:30)<br>Distances: 8.4nm/2686.8nm<br><b>Wind:</b> 145° 9.2 kt (<b>TWA 95°</b>)<br><b>Heading:</b> 59°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 16.48 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(0);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-17347px; top:13036px;"
onmouseover="updi(event,'2017-07-24 15:10 CEST (T+ 0:50)<br>Distances: 13.8nm/2681.4nm<br><b>Wind:</b> 155° 9.3 kt (<b>TWA 100°</b>)<br><b>Heading:</b> 61°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 16.47 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(0);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-17334px; top:13030px;"
onmouseover="updi(event,'2017-07-24 15:20 CEST (T+ 1:00)<br>Distances: 16.6nm/2678.7nm<br><b>Wind:</b> 159° 9.4 kt (<b>TWA 105°</b>)<br><b>Heading:</b> 62°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 16.54 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(0);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-17307px; top:13019px;"
onmouseover="updi(event,'2017-07-24 15:40 CEST (T+ 1:20)<br>Distances: 22.1nm/2673.1nm<br><b>Wind:</b> 167° 9.9 kt (<b>TWA 105°</b>)<br><b>Heading:</b> 69°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 16.88 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(0);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-17277px; top:13010px;"
onmouseover="updi(event,'2017-07-24 16:00 CEST (T+ 1:40)<br>Distances: 27.7nm/2667.6nm<br><b>Wind:</b> 174° 10.5 kt (<b>TWA 115°</b>)<br><b>Heading:</b> 66°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 17.08 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(0);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-17232px; top:12995px;"
onmouseover="updi(event,'2017-07-24 16:30 CEST (T+ 2:10)<br>Distances: 36.7nm/2658.8nm<br><b>Wind:</b> 181° 12.5 kt (<b>TWA 125°</b>)<br><b>Heading:</b> 60°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 18.67 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(0);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-17167px; top:12966px;"
onmouseover="updi(event,'2017-07-24 17:10 CEST (T+ 2:50)<br>Distances: 50.3nm/2645.2nm<br><b>Wind:</b> 180° 15.4 kt (<b>TWA 120°</b>)<br><b>Heading:</b> 62°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 21.47 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(3);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-17115px; top:12945px;"
onmouseover="updi(event,'2017-07-24 17:40 CEST (T+ 3:20)<br>Distances: 61.0nm/2634.6nm<br><b>Wind:</b> 178° 15.0 kt (<b>TWA 115°</b>)<br><b>Heading:</b> 63°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 21.11 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(3);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-16979px; top:12891px;"
onmouseover="updi(event,'2017-07-24 19:00 CEST (T+ 4:40)<br>Distances: 88.7nm/2607.1nm<br><b>Wind:</b> 172° 14.5 kt (<b>TWA 115°</b>)<br><b>Heading:</b> 57°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 20.59 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(3);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-16914px; top:12858px;"
onmouseover="updi(event,'2017-07-24 19:40 CEST (T+ 5:20)<br>Distances: 102.6nm/2593.2nm<br><b>Wind:</b> 166° 15.0 kt (<b>TWA 115°</b>)<br><b>Heading:</b> 53°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 21.10 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(3);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-16899px; top:12849px;"
onmouseover="updi(event,'2017-07-24 19:50 CEST (T+ 5:30)<br>Distances: 106.1nm/2589.7nm<br><b>Wind:</b> 164° 15.2 kt (<b>TWA 110°</b>)<br><b>Heading:</b> 56°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 21.16 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(3);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-16882px; top:12841px;"
onmouseover="updi(event,'2017-07-24 20:00 CEST (T+ 5:40)<br>Distances: 109.6nm/2586.1nm<br><b>Wind:</b> 162° 15.2 kt (<b>TWA 115°</b>)<br><b>Heading:</b> 56°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 21.24 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(6);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-16819px; top:12808px;"
onmouseover="updi(event,'2017-07-24 20:40 CEST (T+ 6:20)<br>Distances: 123.2nm/2572.5nm<br><b>Wind:</b> 166° 13.9 kt (<b>TWA 125°</b>)<br><b>Heading:</b> 52°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 20.11 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(6);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-16761px; top:12774px;"
onmouseover="updi(event,'2017-07-24 21:20 CEST (T+ 7:00)<br>Distances: 136.3nm/2559.3nm<br><b>Wind:</b> 175° 13.7 kt (<b>TWA 130°</b>)<br><b>Heading:</b> 56°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 19.86 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(6);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-16698px; top:12742px;"
onmouseover="updi(event,'2017-07-24 22:00 CEST (T+ 7:40)<br>Distances: 149.9nm/2545.6nm<br><b>Wind:</b> 183° 14.9 kt (<b>TWA 130°</b>)<br><b>Heading:</b> 63°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 21.06 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(6);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-16437px; top:12641px;"
onmouseover="updi(event,'2017-07-25 00:20 CEST (T+10:00)<br>Distances: 202.3nm/2493.6nm<br><b>Wind:</b> 191° 15.2 kt (<b>TWA 130°</b>)<br><b>Heading:</b> 70°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 21.35 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(9);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-16361px; top:12620px;"
onmouseover="updi(event,'2017-07-25 01:00 CEST (T+10:40)<br>Distances: 216.5nm/2479.6nm<br><b>Wind:</b> 198° 15.5 kt (<b>TWA 130°</b>)<br><b>Heading:</b> 75°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 21.60 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(9);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-16239px; top:12596px;"
onmouseover="updi(event,'2017-07-25 02:00 CEST (T+11:40)<br>Distances: 238.4nm/2458.4nm<br><b>Wind:</b> 201° 16.7 kt (<b>TWA 130°</b>)<br><b>Heading:</b> 72°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 22.53 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(12);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-15786px; top:12487px;"
onmouseover="updi(event,'2017-07-25 05:40 CEST (T+15:20)<br>Distances: 322.0nm/2377.1nm<br><b>Wind:</b> 205° 18.4 kt (<b>TWA 135°</b>)<br><b>Heading:</b> 73°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 23.36 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(15);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-15743px; top:12477px;"
onmouseover="updi(event,'2017-07-25 06:00 CEST (T+15:40)<br>Distances: 329.9nm/2369.4nm<br><b>Wind:</b> 207° 18.9 kt (<b>TWA 140°</b>)<br><b>Heading:</b> 72°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 23.77 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(15);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-15606px; top:12444px;"
onmouseover="updi(event,'2017-07-25 07:00 CEST (T+16:40)<br>Distances: 355.1nm/2345.0nm<br><b>Wind:</b> 214° 21.2 kt (<b>TWA 140°</b>)<br><b>Heading:</b> 78°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 26.16 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(15);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-15457px; top:12421px;"
onmouseover="updi(event,'2017-07-25 08:00 CEST (T+17:40)<br>Distances: 381.5nm/2319.9nm<br><b>Wind:</b> 218° 21.6 kt (<b>TWA 140°</b>)<br><b>Heading:</b> 79°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 26.45 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(18);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-15072px; top:12370px;"
onmouseover="updi(event,'2017-07-25 10:40 CEST (T+20:20)<br>Distances: 449.2nm/2256.0nm<br><b>Wind:</b> 221° 19.6 kt (<b>TWA 140°</b>)<br><b>Heading:</b> 84°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 24.80 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(18);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-14927px; top:12359px;"
onmouseover="updi(event,'2017-07-25 11:40 CEST (T+21:20)<br>Distances: 474.2nm/2233.0nm<br><b>Wind:</b> 219° 19.6 kt (<b>TWA 140°</b>)<br><b>Heading:</b> 78°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 24.75 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(21);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-14605px; top:12311px;"
onmouseover="updi(event,'2017-07-25 14:00 CEST (T+23:40)<br>Distances: 531.4nm/2179.0nm<br><b>Wind:</b> 220° 18.4 kt (<b>TWA 140°</b>)<br><b>Heading:</b> 80°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 22.95 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(24);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-13744px; top:12182px;"
onmouseover="updi(event,'2017-07-25 20:00 CEST (T+29:40)<br>Distances: 684.1nm/2034.4nm<br><b>Wind:</b> 209° 21.7 kt (<b>TWA 140°</b>)<br><b>Heading:</b> 73°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 26.51 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(30);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-12889px; top:11995px;"
onmouseover="updi(event,'2017-07-26 02:00 CEST (T+35:40)<br>Distances: 837.3nm/1884.5nm<br><b>Wind:</b> 192° 22.0 kt (<b>TWA 120°</b>)<br><b>Heading:</b> 77°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 26.10 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(36);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-11982px; top:11850px;"
onmouseover="updi(event,'2017-07-26 08:00 CEST (T+41:40)<br>Distances: 995.6nm/1731.9nm<br><b>Wind:</b> 210° 24.5 kt (<b>TWA 135°</b>)<br><b>Heading:</b> 78°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 28.34 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(42);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-10984px; top:11774px;"
onmouseover="updi(event,'2017-07-26 14:00 CEST (T+47:40)<br>Distances: 1165.4nm/1573.2nm<br><b>Wind:</b> 217° 27.8 kt (<b>TWA 140°</b>)<br><b>Heading:</b> 84°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 30.63 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(48);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-9964px; top:11681px;"
onmouseover="updi(event,'2017-07-26 20:00 CEST (T+53:40)<br>Distances: 1338.4nm/1409.4nm<br><b>Wind:</b> 207° 22.6 kt (<b>TWA 140°</b>)<br><b>Heading:</b> 73°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 27.20 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(54);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-9086px; top:11494px;"
onmouseover="updi(event,'2017-07-27 02:00 CEST (T+59:40)<br>Distances: 1487.2nm/1258.2nm<br><b>Wind:</b> 172° 19.1 kt (<b>TWA 110°</b>)<br><b>Heading:</b> 74°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 24.47 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(60);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-8203px; top:11344px;"
onmouseover="updi(event,'2017-07-27 08:00 CEST (T+65:40)<br>Distances: 1634.2nm/1110.6nm<br><b>Wind:</b> 191° 19.4 kt (<b>TWA 110°</b>)<br><b>Heading:</b> 77°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 24.68 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(66);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-7298px; top:11219px;"
onmouseover="updi(event,'2017-07-27 14:00 CEST (T+71:40)<br>Distances: 1782.2nm/962.8nm<br><b>Wind:</b> 197° 17.9 kt (<b>TWA 115°</b>)<br><b>Heading:</b> 75°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 23.46 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(72);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-6389px; top:11071px;"
onmouseover="updi(event,'2017-07-27 20:00 CEST (T+77:40)<br>Distances: 1928.6nm/813.4nm<br><b>Wind:</b> 200° 17.0 kt (<b>TWA 110°</b>)<br><b>Heading:</b> 79°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 22.85 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(78);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-5484px; top:10961px;"
onmouseover="updi(event,'2017-07-28 02:00 CEST (T+83:40)<br>Distances: 2072.2nm/668.6nm<br><b>Wind:</b> 187° 17.7 kt (<b>TWA 110°</b>)<br><b>Heading:</b> 81°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 23.40 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(84);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-4514px; top:10813px;"
onmouseover="updi(event,'2017-07-28 08:00 CEST (T+89:40)<br>Distances: 2223.2nm/511.9nm<br><b>Wind:</b> 196° 21.8 kt (<b>TWA 130°</b>)<br><b>Heading:</b> 69°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 26.24 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(90);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-3481px; top:10566px;"
onmouseover="updi(event,'2017-07-28 14:00 CEST (T+95:40)<br>Distances: 2377.8nm/340.5nm<br><b>Wind:</b> 196° 24.1 kt (<b>TWA 130°</b>)<br><b>Heading:</b> 69°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 27.75 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(96);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-2446px; top:10346px;"
onmouseover="updi(event,'2017-07-28 20:00 CEST (T+101:40)<br>Distances: 2528.6nm/174.0nm<br><b>Wind:</b> 199° 21.1 kt (<b>TWA 115°</b>)<br><b>Heading:</b> 83°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 25.47 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(102);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-1427px; top:10280px;"
onmouseover="updi(event,'2017-07-29 02:00 CEST (T+107:40)<br>Distances: 2678.6nm/19.1nm<br><b>Wind:</b> 197° 18.9 kt (<b>TWA 115°</b>)<br><b>Heading:</b> 83°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 24.16 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(108);">
<img src="img/flag.png" class="abs" style="left :-1305px; top:10228px;">
</div>
<div id="friends_layer" >
</div>
<div id="track_layer"><canvas id="track_canvas"></canvas></div>
</div>
<div id="help_div"></div>
<div id="cmenu" class="contextmenu" style="display: none;">
<div class="menuitem" style="width:150px" onmouseover="over(event,this)"
onmouseout="out(event,this)" onmousedown="show_polars()">Polar graph</div>
<div class="divider"></div>
<div class="menuitem" style="width:150px" onmouseover="over(event,this)"
onmouseout="out(event,this)" onmousedown="set_pos(0,1)">Set as starting point</div>
<div class="menuitem" style="width:150px" onmouseover="over(event,this)"
onmouseout="out(event,this)" onmousedown="set_pos(1,1)">Set as destination</div>
<div class="divider"></div>
<div class="menuitem" style="width:150px; background:#E3F3FF;" onmouseover="over(event,this)"
onmouseout="out(event,this)" onmousedown="set_pos(1,0,-5.09781,49.9401)">
Go to Cap Lizard</div>
<div class="divider"></div>
<div class="menuitem" style="width:150px" onmouseover="over(event,this)" onmouseout="out(event,this)"
onmousedown="toggle_pro()">
<input type="checkbox" id="tpb" style="border:none; margin-left: 0;" onmousedown="cancel_event"
> Pro sails
</div>
<div class="menuitem" style="width:150px" onmouseover="over(event,this)" onmouseout="out(event,this)"
onmousedown="toggle_gates()">
<input type="checkbox" id="tgb" style="border:none; margin-left: 0;" onmousedown="cancel_event"
> Ignore gates
</div>
<div class="menuitem" style="display:block; width:150px;" onmouseover="over(event,this)" onmouseout="out(event,this)"
onmousedown="toggle_tacks()">
<input type="checkbox" id="ttb" style="border:none; margin-left: 0;" onmousedown="cancel_event"
> 6% extra speed
</div>
<div class="menuitem" style="display:block; width:150px;" onmouseover="over(event,this)" onmouseout="out(event,this)"
onmousedown="toggle_time()">
<input type="checkbox" id="tsb" style="border:none; margin-left: 0;" onmousedown="cancel_event"
> Timeshift
</div>
<div class="divider"></div>
<div class="menuitem" style="width:150px" onmouseover="over(event,this)"
onmouseout="out(event,this)" onmousedown="find_boat()">Center chart</div>
</div>
<div style="display:block; position: fixed; z-index:15; right:0px; bottom: 20px; padding: 1px;">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Chart bottom -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-4306548645573687"
data-ad-slot="4516500658"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
<div id="statusbar">
<div class="statusitem" style="width: 10em">DST:<span id="span_dd1"></span></div>
<div class="statusitem" style="width: 10em"><span id="span_lat"></span> <span id="span_lon"></span></div>
<div class="statusitem">Mon Jul 24 14:20 CET</div>
<div class="statusitem" id="debug_div"></div>
<div class="statusitem" style="float:right; margin-right: 1px; width:10em">DTF:<span id="span_dd2"></span></div>
<div class="statusitem" style="float:right;" title="Last file:gfs.t06z+237h">GFS:06Z</div>
</div>
<div id="amenu" class="contextmenu" style="display:none;">
<div class="menuitem" style="width:150px">Router algorithm:</div>
<div class="divider"></div>
</div>
</body>
</html>
Concernant les unités, oui il me les faut sinon comment les ajouter à la création du tableau ?
Je compte ouvrir un post avec l'extension au complet car j'aimerais ajouter d'autres valeurs du code source et d'autres qui résultent de calculs
[quote="or 1" post_id=454727 time=1500900939 user_id=23847]
voir https://regex101.com/r/rItkul/1
mais il faudrait d'autres lignes de contenu pour voir ce qui change, ce qui est fixe, s'il faut capturer les valeurs avec l'unité ou si l'unité ne change jamais.
[/quote]
Merci or 1 je ne connaissais pas cette outil :)
Toutes les lignes sont du même type, je te mets ici une page du code source exploité.
[html]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no initial-scale=1.0, minimum-scale=1.0" />
<title>Atlantic Record</title>
<link href="div.css?42" rel="stylesheet" type="text/css">
<!--[if lt IE 7]>
<link href="div6.css?23" rel="stylesheet" type="text/css">
<![endif]-->
<!--[if lt IE 9]>
<style type="text/css">
.ie {
display: none;
}
</style>
<![endif]-->
<script type="text/javascript">
var scale = 256;
var session_id = "f169f64497e491553ccb1782a59dedd2";
var days = 5;
var boat_lat = 38.9330555555556;
var boat_lon = -67.9911111111111;
var goal_lat = 49.9401;
var goal_lon = -5.09781;
var scroll_x = 16696;
var scroll_y = -12908;
var boat_heading = 60.2539537543916;
var iso_id = '76/b291495969e37202559ef79faa340120256';
var iso_minx = -49;
var iso_miny = 32;
var iso_maxx = -30;
var iso_maxy = 37;
var wind_time = 0;
var grib_steps = 2;
var windbase = 1500897600;
var datastamp = '06+237';
var mobile = 0;
</script>
<SCRIPT type="text/javascript" src="util.js?30" defer></SCRIPT>
<SCRIPT type="text/javascript" src="iwind.js?32" defer></SCRIPT>
<SCRIPT type="text/javascript" src="cwind.js?30" defer></SCRIPT>
<SCRIPT type="text/javascript" src="scroll.js?32" defer></SCRIPT>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-27385643-1', 'zezo.org');
ga('send', 'pageview');
</script>
</head>
<body onload="init()">
<div style="position: relative; top:0px; width:100%;">
<div id="fs_menubar">
<a href="/index.html" style="color:black;"><u>H</u>ome</a>
<a href="/forum.pl" style="color:black;"><u>F</u>orum</a>
<a href="/fb.html" style="color:black;"><u>C</u>ontact</a>
<a href="/qa.html" style="color:black;"><u>Q</u>&A</a>
<a href="/about.html" style="color:black;"><u>A</u>bout</a>
<a href="polars.html?pro=0" style="color:black;" target="vor_polars"><u>P</u>olars</a> |
<!-- Announcement area -->
<!--font size="-1"> <Would you like to support the project by
<a style="text-decoration:underline;" href="about.html#donate">donating</a>
a small amount for hardware upgrade? Read the
<a style="text-decoration:underline;" href="about.html#tech">full story</a>. -->
<b>Atlantic Record</b>
<span style="color:red">New! </span><a style="text-decoration:underline;" href="http://sail.zezo.org/forum.pl?tid=5969">6% speed adjustment and other changes</a>
<div style="float:right"><a href="about.html#donate"><img src="http://i.zezo.org/img/btn_donate_SM.gif"></a></div>
</div>
<div id="new_nav">
<button class="nnav" onmousedown="zoom_out();" title="Zoom Out"><b>−</b></button><select class="nnav" title="Zoom level" onchange="select_zoom(this);">
<option value="8" >1%</option>
<option value="16" >2%</option>
<option value="32" >5%</option>
<option value="64" >10%</option>
<option value="128" >25%</option>
<option value="256" selected>50%</option>
<option value="512" >100%</option>
</select><button class="nnav" onmousedown="zoom_in();" title="Zoom In" style="margin-right:20px;"><b>+</b></button>
<button class="nnav pad2 ie" onmousedown="toggle_tracks();" title="Toggle tracks"><img id="track_icon" style="vertical-align: text-top;" width="16px" height="16px" src="img/icon_track_gray.png"></button>
<button class="nnav pad2" onmousedown="wind_display(0);" title="None"><img style="vertical-align: text-top;" width="16px" height="16px" src="img/icon_n.png"></button><button class="nnav pad2" onmousedown="wind_display(1);" title="Black barbs"><img style="vertical-align: text-top;" width="16px" height="16px" src="img/icon_bb.png"></button><button class="nnav pad2 ie" onmousedown="wind_display(2);" title="Color barbs"><img style="vertical-align: text-top;" width="16px" height="16px" src="img/icon_cb.png"></button><button class="nnav pad2 ie" onmousedown="wind_display(3);" title="Arrows"><img style="vertical-align: text-top;" width="16px" height="16px" src="img/icon_a.png"></button>
<button title="Previous wind" class="nnav" onmousedown="prev_wind();"><</button><select id="hours" class="nnav" title="Wind time" onchange="show_wind(this.selectedIndex * 3);">
<option selected>Now</option>
<option >+3 h</option>
<option >+6 h</option>
<option >+9 h</option>
<option >+12 h</option>
<option >+15 h</option>
<option >+18 h</option>
<option >+21 h</option>
<option >+24 h</option>
<option >+27 h</option>
<option >+30 h</option>
<option >+33 h</option>
<option >+36 h</option>
<option >+39 h</option>
<option >+42 h</option>
<option >+45 h</option>
<option >+48 h</option>
<option >+51 h</option>
<option >+54 h</option>
<option >+57 h</option>
<option >+60 h</option>
<option >+63 h</option>
<option >+66 h</option>
<option >+69 h</option>
<option >+72 h</option>
<option >+75 h</option>
<option >+78 h</option>
<option >+81 h</option>
<option >+84 h</option>
<option >+87 h</option>
<option >+90 h</option>
<option >+93 h</option>
<option >+96 h</option>
<option >+99 h</option>
<option >+102 h</option>
<option >+105 h</option>
<option >+108 h</option>
<option >+111 h</option>
<option >+114 h</option>
<option >+117 h</option>
<option >+120 h</option>
<option >+123 h</option>
<option >+126 h</option>
<option >+129 h</option>
<option >+132 h</option>
<option >+135 h</option>
<option >+138 h</option>
<option >+141 h</option>
<option >+144 h</option>
<option >+147 h</option>
<option >+150 h</option>
<option >+153 h</option>
<option >+156 h</option>
<option >+159 h</option>
<option >+162 h</option>
<option >+165 h</option>
<option >+168 h</option>
<option >+171 h</option>
<option >+174 h</option>
<option >+177 h</option>
<option >+180 h</option>
<option >+183 h</option>
<option >+186 h</option>
<option >+189 h</option>
<option >+192 h</option>
<option >+195 h</option>
<option >+198 h</option>
<option >+201 h</option>
<option >+204 h</option>
<option >+207 h</option>
<option >+210 h</option>
<option >+213 h</option>
<option >+216 h</option>
<option >+219 h</option>
<option >+222 h</option>
<option >+225 h</option>
<option >+228 h</option>
<option >+231 h</option>
<option >+234 h</option>
<option >+237 h</option>
<option >+240 h</option>
</select><button class="nnav" title="Next wind" style="margin-right: 30px;" onmousedown="next_wind();">></button>
<select onchange="set_days(this.selectedIndex + 1);" class="nnav" title="Track duration">
<option >1d</option>
<option >2d</option>
<option >3d</option>
<option >4d</option>
<option selected>5d</option>
<option >6d</option>
<option >7d</option>
<option >8d</option>
<option >9d</option>
<option >10d</option>
</select>
<!--button class="nnav"><b>?</b></button-->
</div><!-- new nav-->
<!-- div id="boat_name_d" style="clear: right;">
<form method="GET" action="chart.pl">
<input type="text" name="boat" size="20" title="Boat name" id="boat_name" placeholder="Enter Boat Name" value="">
<input type="hidden" name="sid" value="f169f64497e491553ccb1782a59dedd2">
<button type="submit">Get</button>
</form>
</div--!>
<div id="latlon" style="clear: right;">
<form method="GET" action="chart.pl">
<input type="tel" name="lon_deg" size="3" maxlength="3" style="width: 3ch;" value="67">°
<input type="tel" name="lon_min" size="2" maxlength="2" style="width: 2ch;" value="59">'
<input type="tel" name="lon_sec" size="2" maxlength="2" style="width: 2ch;" value="28">"
<select name="lon_ew">
<option >E</option>
<option selected>W</option>
<select>
<input type="tel" name="lat_deg" size="3" maxlength="3" style="width: 3ch;" value="38">°
<input type="tel" name="lat_min" size="2" maxlength="2" style="width: 2ch;" value="55">'
<input type="tel" name="lat_sec" size="2" maxlength="2" style="width: 2ch;" value="59">"
<select name="lat_ns">
<option selected>N</option>
<option >S</option>
<select>
<button type="submit">Go!</button>
</form>
</div>
</div>
<div id="vp_container">
<div id="vp_canvas" onmousedown="grab(event)">
<div id="wind_info" >Wind: <span id="wind_data"></span></div>
<div id="tile_layer"></div>
<div id="iso_layer" style="z-index:0" ></div>
<div id="winds_layer"></div>
<div id="dot_layer" style="z-index:0">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-17408px; top:13071px;"
onmouseover="updi(event,'2017-07-24 14:20 CEST (T+ 0:00)<br>Distances: 0.0nm/2695.2nm<br><b>Wind:</b> 135° 11.0 kt (<b>TWA 95°</b>)<br><b>Heading:</b> 46°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 17.53 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(0);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-17396px; top:13063px;"
onmouseover="updi(event,'2017-07-24 14:30 CEST (T+ 0:10)<br>Distances: 2.9nm/2692.4nm<br><b>Wind:</b> 137° 10.1 kt (<b>TWA 95°</b>)<br><b>Heading:</b> 50°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 17.03 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(0);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-17373px; top:13048px;"
onmouseover="updi(event,'2017-07-24 14:50 CEST (T+ 0:30)<br>Distances: 8.4nm/2686.8nm<br><b>Wind:</b> 145° 9.2 kt (<b>TWA 95°</b>)<br><b>Heading:</b> 59°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 16.48 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(0);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-17347px; top:13036px;"
onmouseover="updi(event,'2017-07-24 15:10 CEST (T+ 0:50)<br>Distances: 13.8nm/2681.4nm<br><b>Wind:</b> 155° 9.3 kt (<b>TWA 100°</b>)<br><b>Heading:</b> 61°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 16.47 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(0);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-17334px; top:13030px;"
onmouseover="updi(event,'2017-07-24 15:20 CEST (T+ 1:00)<br>Distances: 16.6nm/2678.7nm<br><b>Wind:</b> 159° 9.4 kt (<b>TWA 105°</b>)<br><b>Heading:</b> 62°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 16.54 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(0);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-17307px; top:13019px;"
onmouseover="updi(event,'2017-07-24 15:40 CEST (T+ 1:20)<br>Distances: 22.1nm/2673.1nm<br><b>Wind:</b> 167° 9.9 kt (<b>TWA 105°</b>)<br><b>Heading:</b> 69°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 16.88 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(0);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-17277px; top:13010px;"
onmouseover="updi(event,'2017-07-24 16:00 CEST (T+ 1:40)<br>Distances: 27.7nm/2667.6nm<br><b>Wind:</b> 174° 10.5 kt (<b>TWA 115°</b>)<br><b>Heading:</b> 66°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 17.08 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(0);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-17232px; top:12995px;"
onmouseover="updi(event,'2017-07-24 16:30 CEST (T+ 2:10)<br>Distances: 36.7nm/2658.8nm<br><b>Wind:</b> 181° 12.5 kt (<b>TWA 125°</b>)<br><b>Heading:</b> 60°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 18.67 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(0);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-17167px; top:12966px;"
onmouseover="updi(event,'2017-07-24 17:10 CEST (T+ 2:50)<br>Distances: 50.3nm/2645.2nm<br><b>Wind:</b> 180° 15.4 kt (<b>TWA 120°</b>)<br><b>Heading:</b> 62°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 21.47 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(3);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-17115px; top:12945px;"
onmouseover="updi(event,'2017-07-24 17:40 CEST (T+ 3:20)<br>Distances: 61.0nm/2634.6nm<br><b>Wind:</b> 178° 15.0 kt (<b>TWA 115°</b>)<br><b>Heading:</b> 63°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 21.11 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(3);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-16979px; top:12891px;"
onmouseover="updi(event,'2017-07-24 19:00 CEST (T+ 4:40)<br>Distances: 88.7nm/2607.1nm<br><b>Wind:</b> 172° 14.5 kt (<b>TWA 115°</b>)<br><b>Heading:</b> 57°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 20.59 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(3);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-16914px; top:12858px;"
onmouseover="updi(event,'2017-07-24 19:40 CEST (T+ 5:20)<br>Distances: 102.6nm/2593.2nm<br><b>Wind:</b> 166° 15.0 kt (<b>TWA 115°</b>)<br><b>Heading:</b> 53°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 21.10 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(3);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-16899px; top:12849px;"
onmouseover="updi(event,'2017-07-24 19:50 CEST (T+ 5:30)<br>Distances: 106.1nm/2589.7nm<br><b>Wind:</b> 164° 15.2 kt (<b>TWA 110°</b>)<br><b>Heading:</b> 56°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 21.16 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(3);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-16882px; top:12841px;"
onmouseover="updi(event,'2017-07-24 20:00 CEST (T+ 5:40)<br>Distances: 109.6nm/2586.1nm<br><b>Wind:</b> 162° 15.2 kt (<b>TWA 115°</b>)<br><b>Heading:</b> 56°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 21.24 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(6);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-16819px; top:12808px;"
onmouseover="updi(event,'2017-07-24 20:40 CEST (T+ 6:20)<br>Distances: 123.2nm/2572.5nm<br><b>Wind:</b> 166° 13.9 kt (<b>TWA 125°</b>)<br><b>Heading:</b> 52°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 20.11 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(6);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-16761px; top:12774px;"
onmouseover="updi(event,'2017-07-24 21:20 CEST (T+ 7:00)<br>Distances: 136.3nm/2559.3nm<br><b>Wind:</b> 175° 13.7 kt (<b>TWA 130°</b>)<br><b>Heading:</b> 56°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 19.86 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(6);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-16698px; top:12742px;"
onmouseover="updi(event,'2017-07-24 22:00 CEST (T+ 7:40)<br>Distances: 149.9nm/2545.6nm<br><b>Wind:</b> 183° 14.9 kt (<b>TWA 130°</b>)<br><b>Heading:</b> 63°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 21.06 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(6);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-16437px; top:12641px;"
onmouseover="updi(event,'2017-07-25 00:20 CEST (T+10:00)<br>Distances: 202.3nm/2493.6nm<br><b>Wind:</b> 191° 15.2 kt (<b>TWA 130°</b>)<br><b>Heading:</b> 70°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 21.35 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(9);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-16361px; top:12620px;"
onmouseover="updi(event,'2017-07-25 01:00 CEST (T+10:40)<br>Distances: 216.5nm/2479.6nm<br><b>Wind:</b> 198° 15.5 kt (<b>TWA 130°</b>)<br><b>Heading:</b> 75°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 21.60 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(9);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-16239px; top:12596px;"
onmouseover="updi(event,'2017-07-25 02:00 CEST (T+11:40)<br>Distances: 238.4nm/2458.4nm<br><b>Wind:</b> 201° 16.7 kt (<b>TWA 130°</b>)<br><b>Heading:</b> 72°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 22.53 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(12);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-15786px; top:12487px;"
onmouseover="updi(event,'2017-07-25 05:40 CEST (T+15:20)<br>Distances: 322.0nm/2377.1nm<br><b>Wind:</b> 205° 18.4 kt (<b>TWA 135°</b>)<br><b>Heading:</b> 73°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 23.36 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(15);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-15743px; top:12477px;"
onmouseover="updi(event,'2017-07-25 06:00 CEST (T+15:40)<br>Distances: 329.9nm/2369.4nm<br><b>Wind:</b> 207° 18.9 kt (<b>TWA 140°</b>)<br><b>Heading:</b> 72°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 23.77 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(15);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-15606px; top:12444px;"
onmouseover="updi(event,'2017-07-25 07:00 CEST (T+16:40)<br>Distances: 355.1nm/2345.0nm<br><b>Wind:</b> 214° 21.2 kt (<b>TWA 140°</b>)<br><b>Heading:</b> 78°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 26.16 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(15);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-15457px; top:12421px;"
onmouseover="updi(event,'2017-07-25 08:00 CEST (T+17:40)<br>Distances: 381.5nm/2319.9nm<br><b>Wind:</b> 218° 21.6 kt (<b>TWA 140°</b>)<br><b>Heading:</b> 79°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 26.45 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(18);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-15072px; top:12370px;"
onmouseover="updi(event,'2017-07-25 10:40 CEST (T+20:20)<br>Distances: 449.2nm/2256.0nm<br><b>Wind:</b> 221° 19.6 kt (<b>TWA 140°</b>)<br><b>Heading:</b> 84°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 24.80 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(18);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-14927px; top:12359px;"
onmouseover="updi(event,'2017-07-25 11:40 CEST (T+21:20)<br>Distances: 474.2nm/2233.0nm<br><b>Wind:</b> 219° 19.6 kt (<b>TWA 140°</b>)<br><b>Heading:</b> 78°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 24.75 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(21);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-14605px; top:12311px;"
onmouseover="updi(event,'2017-07-25 14:00 CEST (T+23:40)<br>Distances: 531.4nm/2179.0nm<br><b>Wind:</b> 220° 18.4 kt (<b>TWA 140°</b>)<br><b>Heading:</b> 80°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 22.95 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(24);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-13744px; top:12182px;"
onmouseover="updi(event,'2017-07-25 20:00 CEST (T+29:40)<br>Distances: 684.1nm/2034.4nm<br><b>Wind:</b> 209° 21.7 kt (<b>TWA 140°</b>)<br><b>Heading:</b> 73°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 26.51 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(30);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-12889px; top:11995px;"
onmouseover="updi(event,'2017-07-26 02:00 CEST (T+35:40)<br>Distances: 837.3nm/1884.5nm<br><b>Wind:</b> 192° 22.0 kt (<b>TWA 120°</b>)<br><b>Heading:</b> 77°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 26.10 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(36);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-11982px; top:11850px;"
onmouseover="updi(event,'2017-07-26 08:00 CEST (T+41:40)<br>Distances: 995.6nm/1731.9nm<br><b>Wind:</b> 210° 24.5 kt (<b>TWA 135°</b>)<br><b>Heading:</b> 78°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 28.34 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(42);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-10984px; top:11774px;"
onmouseover="updi(event,'2017-07-26 14:00 CEST (T+47:40)<br>Distances: 1165.4nm/1573.2nm<br><b>Wind:</b> 217° 27.8 kt (<b>TWA 140°</b>)<br><b>Heading:</b> 84°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 30.63 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(48);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-9964px; top:11681px;"
onmouseover="updi(event,'2017-07-26 20:00 CEST (T+53:40)<br>Distances: 1338.4nm/1409.4nm<br><b>Wind:</b> 207° 22.6 kt (<b>TWA 140°</b>)<br><b>Heading:</b> 73°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 27.20 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(54);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-9086px; top:11494px;"
onmouseover="updi(event,'2017-07-27 02:00 CEST (T+59:40)<br>Distances: 1487.2nm/1258.2nm<br><b>Wind:</b> 172° 19.1 kt (<b>TWA 110°</b>)<br><b>Heading:</b> 74°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 24.47 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(60);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-8203px; top:11344px;"
onmouseover="updi(event,'2017-07-27 08:00 CEST (T+65:40)<br>Distances: 1634.2nm/1110.6nm<br><b>Wind:</b> 191° 19.4 kt (<b>TWA 110°</b>)<br><b>Heading:</b> 77°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 24.68 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(66);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-7298px; top:11219px;"
onmouseover="updi(event,'2017-07-27 14:00 CEST (T+71:40)<br>Distances: 1782.2nm/962.8nm<br><b>Wind:</b> 197° 17.9 kt (<b>TWA 115°</b>)<br><b>Heading:</b> 75°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 23.46 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(72);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-6389px; top:11071px;"
onmouseover="updi(event,'2017-07-27 20:00 CEST (T+77:40)<br>Distances: 1928.6nm/813.4nm<br><b>Wind:</b> 200° 17.0 kt (<b>TWA 110°</b>)<br><b>Heading:</b> 79°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 22.85 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(78);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-5484px; top:10961px;"
onmouseover="updi(event,'2017-07-28 02:00 CEST (T+83:40)<br>Distances: 2072.2nm/668.6nm<br><b>Wind:</b> 187° 17.7 kt (<b>TWA 110°</b>)<br><b>Heading:</b> 81°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 23.40 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(84);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-4514px; top:10813px;"
onmouseover="updi(event,'2017-07-28 08:00 CEST (T+89:40)<br>Distances: 2223.2nm/511.9nm<br><b>Wind:</b> 196° 21.8 kt (<b>TWA 130°</b>)<br><b>Heading:</b> 69°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 26.24 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(90);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-3481px; top:10566px;"
onmouseover="updi(event,'2017-07-28 14:00 CEST (T+95:40)<br>Distances: 2377.8nm/340.5nm<br><b>Wind:</b> 196° 24.1 kt (<b>TWA 130°</b>)<br><b>Heading:</b> 69°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 27.75 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(96);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-2446px; top:10346px;"
onmouseover="updi(event,'2017-07-28 20:00 CEST (T+101:40)<br>Distances: 2528.6nm/174.0nm<br><b>Wind:</b> 199° 21.1 kt (<b>TWA 115°</b>)<br><b>Heading:</b> 83°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 25.47 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(102);">
<img src="img/dot.png" class="abs" style="z-index: 1; left :-1427px; top:10280px;"
onmouseover="updi(event,'2017-07-29 02:00 CEST (T+107:40)<br>Distances: 2678.6nm/19.1nm<br><b>Wind:</b> 197° 18.9 kt (<b>TWA 115°</b>)<br><b>Heading:</b> 83°<b>Sail:</b> Spi<br><b>Boat Speed:</b> 24.16 kts','220px')" onmouseout="cleari()"
onmousedown="show_wind(108);">
<img src="img/flag.png" class="abs" style="left :-1305px; top:10228px;">
</div>
<div id="friends_layer" >
</div>
<div id="track_layer"><canvas id="track_canvas"></canvas></div>
</div>
<div id="help_div"></div>
<div id="cmenu" class="contextmenu" style="display: none;">
<div class="menuitem" style="width:150px" onmouseover="over(event,this)"
onmouseout="out(event,this)" onmousedown="show_polars()">Polar graph</div>
<div class="divider"></div>
<div class="menuitem" style="width:150px" onmouseover="over(event,this)"
onmouseout="out(event,this)" onmousedown="set_pos(0,1)">Set as starting point</div>
<div class="menuitem" style="width:150px" onmouseover="over(event,this)"
onmouseout="out(event,this)" onmousedown="set_pos(1,1)">Set as destination</div>
<div class="divider"></div>
<div class="menuitem" style="width:150px; background:#E3F3FF;" onmouseover="over(event,this)"
onmouseout="out(event,this)" onmousedown="set_pos(1,0,-5.09781,49.9401)">
Go to Cap Lizard</div>
<div class="divider"></div>
<div class="menuitem" style="width:150px" onmouseover="over(event,this)" onmouseout="out(event,this)"
onmousedown="toggle_pro()">
<input type="checkbox" id="tpb" style="border:none; margin-left: 0;" onmousedown="cancel_event"
> Pro sails
</div>
<div class="menuitem" style="width:150px" onmouseover="over(event,this)" onmouseout="out(event,this)"
onmousedown="toggle_gates()">
<input type="checkbox" id="tgb" style="border:none; margin-left: 0;" onmousedown="cancel_event"
> Ignore gates
</div>
<div class="menuitem" style="display:block; width:150px;" onmouseover="over(event,this)" onmouseout="out(event,this)"
onmousedown="toggle_tacks()">
<input type="checkbox" id="ttb" style="border:none; margin-left: 0;" onmousedown="cancel_event"
> 6% extra speed
</div>
<div class="menuitem" style="display:block; width:150px;" onmouseover="over(event,this)" onmouseout="out(event,this)"
onmousedown="toggle_time()">
<input type="checkbox" id="tsb" style="border:none; margin-left: 0;" onmousedown="cancel_event"
> Timeshift
</div>
<div class="divider"></div>
<div class="menuitem" style="width:150px" onmouseover="over(event,this)"
onmouseout="out(event,this)" onmousedown="find_boat()">Center chart</div>
</div>
<div style="display:block; position: fixed; z-index:15; right:0px; bottom: 20px; padding: 1px;">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Chart bottom -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-4306548645573687"
data-ad-slot="4516500658"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
<div id="statusbar">
<div class="statusitem" style="width: 10em">DST:<span id="span_dd1"></span></div>
<div class="statusitem" style="width: 10em"><span id="span_lat"></span> <span id="span_lon"></span></div>
<div class="statusitem">Mon Jul 24 14:20 CET</div>
<div class="statusitem" id="debug_div"></div>
<div class="statusitem" style="float:right; margin-right: 1px; width:10em">DTF:<span id="span_dd2"></span></div>
<div class="statusitem" style="float:right;" title="Last file:gfs.t06z+237h">GFS:06Z</div>
</div>
<div id="amenu" class="contextmenu" style="display:none;">
<div class="menuitem" style="width:150px">Router algorithm:</div>
<div class="divider"></div>
</div>
</body>
</html>
[/html]
Concernant les unités, oui il me les faut sinon comment les ajouter à la création du tableau ?
Je compte ouvrir un post avec l'extension au complet car j'aimerais ajouter d'autres valeurs du code source et d'autres qui résultent de calculs