title
A prototype
Test
header{width:100%;} .result{ border:1px solid gray; } img { width: 300px; }
// https://www.google.com/search?q=Chuck+Schumer+Senator+Wikipedia&biw=1513&bih=999&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjUoIGGlbfSAhVBWmMKHTfpCNEQ_AUICSgC#q=Chuck+Schumer+Senator+Wikipedia&tbm=isch&tbs=itp:face&* //https://www.googleapis.com/customsearch/v1?key=AIzaSyDWvCRpzgZakIAVB0046tW86OrL1wCclZI&cx=004632109347447595182%3Arlmdop-c6ly&searchType=image&imgType=face&q=chuck+schumer+senator&siteSearch=http://en.wikipedia.org&siteSearchFilter=i var apiUrl = "https://www.googleapis.com/customsearch/v1?key=AIzaSyDWvCRpzgZakIAVB0046tW86OrL1wCclZI&cx=004632109347447595182%3Arlmdop-c6ly&searchType=image&imgType=clipart"; function getImage(name, reps, limit) { let result = document.querySelector('.result') var index = 1; result.innerHTML = "" for (i = 0; i < reps; i++) { console.log(index); $.get(apiUrl + '&q=' + name + '&start=' + index, function(result) { for (i in result.items) { if (i < limit) { x = '
'; $('.result').append(x); } } }) index = index + 10; console.log("worked"); } } document.querySelector('.send').onclick = function(){ let string = document.querySelector('.input').value let words = string.split(" ") console.log(words) for (var i = 0; i < words.length; i++) { if (words[i] != "de" && words[i] != "à" && words[i] != "comme") { getImage(words[i], 1, 1); } } }
snap
save
new
fork
download
html
css
js
output
gallery
config
➚ link to output
➚ snap player
font size
live reload
snap mode
layout
⤷ switch
★ info and code