Skip to content

Instantly share code, notes, and snippets.


Benoît Eveillard benoiteveillard

View GitHub Profile
View autocomplete.txt
function autocomplete(inp, arr) {
/*the autocomplete function takes two arguments,
the text field element and an array of possible autocompleted values:*/
var currentFocus;
/*execute a function when someone writes in the text field:*/
inp.addEventListener("input", function(e) {
var a, b, i, val = this.value;
/*close any already open lists of autocompleted values*/
if (!val) { return false;}
View webflow_integromat
var Webflow = Webflow || [];
Webflow.push(function() {
// display error message
function displayError(message) {
failureMessage.innerText = message; = 'block';
View gtm_body
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src=""
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
View gtm_head
<!-- Google Tag Manager -->
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
<!-- End Google Tag Manager -->