Enrichissement du fichier de test
This commit is contained in:
@@ -30,6 +30,9 @@
|
||||
|
||||
<p>Un autre paragraphe</p>
|
||||
</div>
|
||||
<p>Version courte : <input type="text" id="shortVersion"></p>
|
||||
<p>Version longue : <input type="text" id="longVersion"></p>
|
||||
<p><button id="version">get versions</button></p>
|
||||
<style>
|
||||
.red {
|
||||
color: red;
|
||||
@@ -86,7 +89,12 @@
|
||||
);
|
||||
}, false
|
||||
);
|
||||
console.log($_("p").first(true));
|
||||
$_('button#version').onClick((evt, elem) => {
|
||||
long = $_().version(true);
|
||||
short = $_().version();
|
||||
$_("input#shortVersion").first(true).value = short;
|
||||
$_("input#longVersion").first(true).value = long;
|
||||
}, false);
|
||||
</script>
|
||||
</body>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user