1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-11-16 00:59:07 +02:00
Commit Graph

468 Commits

Author SHA1 Message Date
Eric Cornelissen
9ed48875bf Fix search activation when no query is present
Closes #661, as pointed out by @birjolaxew the return value by
getUrlParameter() will not be null but an empty string (which is a falsy
value) if no query is present, checking for truthiness should work
correctly.
2017-11-02 21:03:55 +01:00
Johan Fagerberg
04d9c945cc
Merge pull request #659 from ericcornelissen/fuzzy-search
Add fuzzy search
2017-11-02 00:36:11 +01:00
Eric Cornelissen
bc97a6e0ec Use custom URL parser for query parameter
As pointed out by @birjolaxew, URLSearchParams isn't supported by IE.
Hence, adding a custom URL parser to get the query parameter.
2017-11-01 22:55:05 +01:00
Eric Cornelissen
077b8bb794 Implement fuzzy search
Updated the search method from a simple partially-equals method to a
fuzzy search (also Approximate string matching) implementation.

My implementation is based on an implementation by @ wouter2203:
https://github.com/wouter2203/fuzzy-search
2017-11-01 22:05:24 +01:00
Eric Cornelissen
b395b7837a Add support for search query in URL
As discussed in #648, implemented JavaScript based support for a search
query in the URL. This feature does two things:
1. If you go to `www.simpleicons.org/?q=adobe`, the page will load with
a search query for the string `'adobe'`.
2. If you start searching on `www.simpleicons.org`, the url will be
updated with each keystroke to `www.simpleicons.org/?q=hellowor`.

Since `window.history.replaceState` is being used, this changing of the
URL does not mess with the browser history. I.e. if the user came from
www.google.com, started searching and press the back button they will
return to www.google.com immediately.
2017-11-01 21:17:23 +01:00
Johan Fagerberg
5dd166d2d2 Merge pull request #649 from ericcornelissen/usability-noscript
Small usability improvement for users with JavaScript disabled (low priority)
2017-10-22 20:49:26 +02:00
Mudlabs_Monster
74c92db20a Fixed footer content slice issue #651 by adding 'align-items: center' to .footer 2017-10-22 15:42:16 +11:00
Eric Cornelissen
47d5f64f08 Small usability improvement for users with JavaScript disabled 2017-10-17 21:15:07 +02:00
Eric Cornelissen
b51f8b889b Add link for the NPM package to index.html 2017-09-20 10:24:28 +02:00
Eric Cornelissen
6991beae11 Push footer to bottom of the page
Now the <footer> is pushed to the bottom of the page
when the icons don't fill up the screen.
2017-09-17 17:58:41 +02:00
Johan Fagerberg
f95397b785 Update links in index.html
Updates links in index.html to refer to simple-icons/simple-icons instead of danleech/simple-icons
2017-09-11 21:25:34 +02:00
Johan Fagerberg
0a4de96f27 Update Google Analytics
With the inactivity of @danleech, this changes the GA tracking to one controlled by me (interested contributors can be added to GA upon request)
2017-09-11 21:23:20 +02:00
Eric Cornelissen
25a4350882 Change dark color to dark gray instead of black 2017-08-03 13:15:39 +02:00
Eric Cornelissen
553aa4b8fb Use BEM naming and inherit colors 2017-08-03 13:13:31 +02:00
Eric Cornelissen
8e3028c5fc Tweak Luminance thresold for darkened icon 2017-08-02 15:50:38 +02:00
Eric Cornelissen
1376b5f255 Contrast ratio proof of concept
Initial implementation of making icons/text dark on a light background, as
suggested in issue #480. This implementation is based on the suggestion by
@pushrax, using the formula provided on
http://chilliant.blogspot.nl/2012/08/srgb-approximations-for-hlsl.html

Note that this implementation is not yet as desired, as it still darkens
some icons we might not want darkened and the dark color is currently full
black.

I also used this link in the process of making this:
http://springmeier.org/www/contrastcalculator/index.php
2017-08-02 15:46:03 +02:00
birjolaxew
48632664bc
Change size/alignment of empty message 2017-07-10 13:02:23 +02:00
birjolaxew
388f1f9741
Normalize search terms 2017-07-10 12:56:28 +02:00
nietonfir
f06e07ec98 Notify the user when nothing is found 2017-07-10 00:06:04 +02:00
nietonfir
69ae7706aa Apply trim() on the search input 2017-07-09 23:04:04 +02:00
nietonfir
f1b7c69593 Lower the debounce to 50ms 2017-07-09 22:58:53 +02:00
nietonfir
b5df43cfbf Update the icon state as well if the search box is emptied 2017-07-09 22:57:19 +02:00
nietonfir
79ad92be95 Wire up the search box 2017-07-09 22:45:43 +02:00
nietonfir
704a4d884b Add a search box to the page 2017-07-09 22:45:43 +02:00
nietonfir
408b8e119a Implement search logic 2017-07-09 22:45:43 +02:00
nietonfir
ea951c0e51 Add a .hidden CSS class 2017-07-09 22:45:42 +02:00
nietonfir
6d6dad2349 Create a javascript array in an iffy containing all the icon names 2017-07-09 22:45:42 +02:00
Dan Leech
846ed6af36 Uses newer GA code 2017-05-30 17:41:46 +01:00
nietonfir
7b378df0a7 Move GA tracking snippet to the top
as suggested by the GA documentation to improve the tracking process:
https://developers.google.com/analytics/devguides/collection/analyticsjs/#the_javascript_tracking_snippet
2017-05-25 21:32:36 +02:00
Dan Leech
69d1248ebe Adds tweet button, changes microcopy, fixes indentation 2017-05-03 14:22:18 +01:00
Dan Leech
162c89b61d Tweaks padding and units in CSS 2017-05-03 08:23:48 +01:00
Dan Leech
cf59ce38e0 Adds hero text 2017-05-02 19:26:36 +01:00
Dan Leech
9149710c26 Makes icons links download by default 2017-04-27 23:12:22 +01:00
Dan Leech
097c2958be Inlines CSS, removes dependency on Sass 2017-04-27 15:41:33 +01:00
Dan Leech
27d181f50b Removes layout, as I don’t think it’s necessary 2017-04-27 10:33:57 +01:00
Dan Leech
412729da9e Adds a blank template 2017-04-26 20:19:19 +01:00
Dan Leech
be8144725c Restores includes until I can figure out the symlink issue 2017-04-26 20:09:03 +01:00
Dan Leech
dbab256700 Removes subdirectory of _includes 2017-04-26 19:07:22 +01:00
Dan Leech
b43fbf7a47 Moves icons to _includes to avoid include_relative error 2017-04-26 19:00:59 +01:00
Dan Leech
6f13777ed9 Removes relative includes from page template 2017-04-26 18:43:58 +01:00
Dan Leech
e498a8d8c3 Adds basic template with navbar 2017-04-23 17:31:56 +01:00
Dan Leech
ccc2b12163 Removes old website files 2017-04-23 16:45:26 +01:00
Dan Leech
2792067e07 Rebuilds html files 2017-04-23 16:42:58 +01:00
Dan Leech
c3f34ff37f Adds Upwork, fixes #365 2017-04-12 18:42:36 +01:00
Dan Leech
a4c46e57ac Updates Hootsuite, fixes #378 2017-04-12 18:31:53 +01:00
Dan Leech
5c0d903b7f Updates PlayStation colour, fixes #379 2017-04-12 18:28:01 +01:00
Dan Leech
3eea6ce66b Rebuilds with Auth0 2017-04-12 18:26:17 +01:00
Dan Leech
271ba3e99a Rebuilds with CSS3 2017-04-12 18:21:42 +01:00
Dan Leech
c280ce3303 Merge pull request #371 from hacknug/gh-pages
Fix Product Hunt icon
2017-04-12 18:17:49 +01:00
Dan Leech
f7fd463d95 Updates Twilio, fixes #367 2017-04-12 18:14:34 +01:00