Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. function cherko(){
  2. //#By DiaBloTin80
  3. let sujet = document.getElementById("cocoa");
  4. let kelsalon = new RegExp(sujet.value.substring(0,3).toLowerCase());
  5. sujet.value="";
  6.  
  7. let stock="<div>Rooms trouvées:</div><br />";
  8.  
  9. for(let i=0; i<salpriv.length;i++)
  10. if(salpriv[i].toLowerCase().substring(0,3).match(kelsalon))
  11. stock+="<div style='cursor:pointer;' onclick='salongo("+(200+i)+");'>"+salpriv[i]+"</div>";
  12.  
  13. disp(-1,40,20,stock,200,200,"rgb(230, 158, 158)",true,false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement