« Modèle:GLFindexEn » : différence entre les versions


Aucun résumé des modifications
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
<html>
 
Commencer à partir de :
Commencer à partir de :
<input name="searchTxt" type="text" maxlength="12" id="searchTxt" class="searchField"/>
<input name="searchTxt" type="text" maxlength="12" id="searchTxt" class="searchField"/>


<script type="text/javascript">
<script type="text/javascript">
//creates a listener for when you press a key
window.onkeyup = keyup;
window.onkeyup = keyup;
//creates a global Javascript variable
var inputTextValue;
var inputTextValue;


function keyup(e) {
function keyup(e) {
  //setting your input text to the global Javascript Variable for every key press
   inputTextValue = e.target.value;
   inputTextValue = e.target.value;
  //listens for you to press the ENTER key, at which point your web address will change to the one you have input in the search box
   if (e.keyCode == 13) {
   if (e.keyCode == 13) {
     window.location = "https://datafranca.org/wiki/index.php?title=Cat%C3%A9gorie:ENGLISH&pagefrom=" + inputTextValue;
     window.location = "https://datafranca.org/wiki/index.php?title=Cat%C3%A9gorie:ENGLISH&pagefrom=" + inputTextValue;
   }
   }
}
}
</script>
</script>



Version du 13 avril 2021 à 16:37

Commencer à partir de : <input name="searchTxt" type="text" maxlength="12" id="searchTxt" class="searchField"/>

<script type="text/javascript">

//creates a listener for when you press a key window.onkeyup = keyup;

//creates a global Javascript variable var inputTextValue;

function keyup(e) {

 //setting your input text to the global Javascript Variable for every key press
 inputTextValue = e.target.value;
 //listens for you to press the ENTER key, at which point your web address will change to the one you have input in the search box
 if (e.keyCode == 13) {
   window.location = "https://datafranca.org/wiki/index.php?title=Cat%C3%A9gorie:ENGLISH&pagefrom=" + inputTextValue;
 }

}

</script>

<a href="/wiki/index.php?title=Catégorie:ENGLISH&pagefrom=A">A</a> <a href="/wiki/index.php?title=Catégorie:ENGLISH&pagefrom=B">B</a> <a href="/wiki/index.php?title=Catégorie:ENGLISH&pagefrom=C">C</a> <a href="/wiki/index.php?title=Catégorie:ENGLISH&pagefrom=D">D</a> <a href="/wiki/index.php?title=Catégorie:ENGLISH&pagefrom=E">E</a> <a href="/wiki/index.php?title=Catégorie:ENGLISH&pagefrom=F">F</a> <a href="/wiki/index.php?title=Catégorie:ENGLISH&pagefrom=G">G</a> <a href="/wiki/index.php?title=Catégorie:ENGLISH&pagefrom=H">H</a> <a href="/wiki/index.php?title=Catégorie:ENGLISH&pagefrom=I">I</a> <a href="/wiki/index.php?title=Catégorie:ENGLISH&pagefrom=J">J</a> <a href="/wiki/index.php?title=Catégorie:ENGLISH&pagefrom=K">K</a> <a href="/wiki/index.php?title=Catégorie:ENGLISH&pagefrom=L">L</a> <a href="/wiki/index.php?title=Catégorie:ENGLISH&pagefrom=M">M</a> <a href="/wiki/index.php?title=Catégorie:ENGLISH&pagefrom=N">N</a> <a href="/wiki/index.php?title=Catégorie:ENGLISH&pagefrom=O">O</a> <a href="/wiki/index.php?title=Catégorie:ENGLISH&pagefrom=P">P</a> <a href="/wiki/index.php?title=Catégorie:ENGLISH&pagefrom=Q">Q</a> <a href="/wiki/index.php?title=Catégorie:ENGLISH&pagefrom=R">R</a> <a href="/wiki/index.php?title=Catégorie:ENGLISH&pagefrom=S">S</a> <a href="/wiki/index.php?title=Catégorie:ENGLISH&pagefrom=T">T</a> <a href="/wiki/index.php?title=Catégorie:ENGLISH&pagefrom=U">U</a> <a href="/wiki/index.php?title=Catégorie:ENGLISH&pagefrom=V">V</a> <a href="/wiki/index.php?title=Catégorie:ENGLISH&pagefrom=W">WXYZ</a>

</html>