mirror of
https://github.com/Mibew/simple-icons.git
synced 2025-02-23 01:04:33 +03:00
46 lines
1.9 KiB
HTML
46 lines
1.9 KiB
HTML
|
|
</ul>
|
|
</main>
|
|
<footer class="footer" role="contentinfo">
|
|
<p>Contributions, corrections & requests can be left on <a href="https://github.com/danleech/simple-icons">GitHub</a>. Company logos in icons are copyright of their respective owners. Distributed for free by <a href="https://twitter.com/bathtype">Dan Leech</a> under the Free Art License.</p>
|
|
</footer>
|
|
<style>@import url('https://fonts.googleapis.com/css?family=Lato:400&text=ABCDEFGHIJKLMNOPQERSTUVWXYZ.!%20%23%2B%3F%26%2C1234567890');</style>
|
|
<script>
|
|
var searchField = document.getElementById("search");
|
|
searchField.addEventListener('input', function (evt) {
|
|
search();
|
|
});
|
|
|
|
hashSearch();
|
|
window.addEventListener('hashchange', function (evt) {
|
|
hashSearch();
|
|
});
|
|
|
|
function hashSearch() {
|
|
var query = window.location.hash.substring(1);
|
|
document.getElementById("search").value = query;
|
|
search();
|
|
}
|
|
|
|
function search() {
|
|
var searchTerm = searchField.value.toLowerCase();
|
|
var icons = document.getElementsByClassName("tiles__item");
|
|
for (var i = 0; i < icons.length; i++) {
|
|
icons[i].style.display = "inline-block";
|
|
var index = icons[i].dataset.search.indexOf(searchTerm);
|
|
if (index == -1) {
|
|
icons[i].style.display = "none";
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<script>
|
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
ga('create', 'UA-46210978-2', 'auto');
|
|
ga('send', 'pageview');
|
|
</script>
|
|
</body>
|
|
</html> |