summaryrefslogtreecommitdiff
path: root/static/f
AgeCommit message (Collapse)AuthorFilesLines
2023-04-26SVG: Optimize and merge rss & list iconsYorhel9-52/+0
The idea behind the list icon CSS filters was that they could be adjusted in themes, but (1) that never happened and (2) even with colors embedded in the SVG they can still be adjusted with the same mechanism. In that light, embedding the colors in the SVG is the cleaner solution.
2023-04-25SVG: Optimize release icons + move into spriteYorhel16-189/+0
A repeat of what I did with platform icons.
2023-04-25Merge platform icons into an SVG spriteYorhel47-356/+0
Couldn't get fragment identifiers to work satisfyingly, so ended up going back to old-fashioned CSS background-position. Oh well.
2023-04-24SVG: Normalize platform icons viewbox to 16x16 + aggresive size optimizationsYorhel47-586/+253
I totally botched a few icons in the hopes that the differences won't be too noticable when rendered at the tiny 16x16px. Poor Saturn logo lol. General procedure I used: - Manually remove clip paths and stroke- and fill-rule attributes that don't appear to have a visible effect. - Manually set the correct viewbox, adding a <g transform="scale(..)"> as necessary and centering the rest in Inkscape. - Look for path/node simplifications in Inkscape. - Change xlink:href to regular href. - Throw it through SVGO (I used scour before, but SVGO does a much better job for sure). - Some more fiddling here and there. SVGO is great at optimizing away transforms in paths, but not so much when there's other shapes or gradients. I converted some shapes into paths and removed some gradients, but wasn't able to optimize all of them. General goal here, aside from saving a little bandwidth, is to normalize the SVG so that these icons can be merged into a single sprite file. Not quite sure how I'll do that yet though, perhaps fragment identifiers, perhaps old-fashioned CSS background-position.
2022-04-08Release listing: another attempt at indicating ero & censoringYorhel2-12/+0
Properly aligned this time.
2022-04-05Releases: Add "has ero" flagYorhel1-0/+10
2021-07-21Fix display of blacklist icon + add more colors for list iconsYorhel1-0/+0
Colors by https://vndb.org/t950.984 The blacklist and dropped icons now have nearly the same color - I'll have to take the blame for that as the icon never showed up before. :(
2021-07-08Ulist.Widget: Experiment with a VN list management widgetYorhel8-0/+43
Currently only added on VN listings in row view, but the goal is to add this widget to other listings and pages as well. This should make it easy to see whether a VN is on your list and to add/remove/edit your list status. The code is one of the messiest copy-paste jobs I've ever done. I'm totally going to regret having to maintain this crap. But anyway, let's first see how this UI is received.
2021-04-20Icons: Replace feed icon with SVGYorhel1-0/+9
Removing old PNG icons, one by one.
2021-04-19SVG: Minor cleanupYorhel33-46/+35
Removed some SVG properties that didn't do anything and inlined properties that were pointlessly declared in CSS. (I was experimenting with SVG sprite sheets, but not yet sure if that's such a good idea) The PS1 icon now looks a bit larger because the pixel dimensions didn't match the aspect ratio of the icon, so it got cropped before.
2021-04-02Layout: Replace support banners with textYorhel2-0/+0
So it's less distracting. The banners weren't very effective, either way.
2021-03-11Add generic mobile platformYorhel1-0/+23
2021-03-07Bunch more platforms (and icons)Yorhel9-0/+91
2021-03-06SVG platform iconsYorhel37-0/+586
Still kind of experimental, let's see how people react. Icons contributed by eacil. Some are colored versions based on the SVG icons contributed by xy2, some are vectorized versions of old icons. These retain much of the legibility of the old png icons by virtue of not being monochrome. At least for the dark skins. I may experiment later to see if the monochrome icons may be a solution for light skins, now that I have the infrastructure in place anyway. Not sure I really want to maintain two icon sets, though. I used scour to optimize the SVGs for size, but they're still rather less efficient than the combined PNG sprites. Maybe I'll use an SVG merge trick later, but that tends to be less widely supported among browsers. Closes #30.
2020-04-17imgflag: Add quick-and-dirty fullscreen modeYorhel1-1/+1
2020-03-26imgflag: Document keyboard shortcuts + make them available to users with ↵Yorhel1-0/+2
>=100 votes
2019-12-09Add SubscribeStar buttonYorhel1-0/+0
2019-10-12Add Patreon link to main menu + minor fixesYorhel1-0/+0
2019-08-09Replace Wikipedia links with Wikidata IDsYorhel1-0/+0
+ Automatically fetch other links from Wikidata
2018-06-19Add uncensored iconYorhel1-0/+2
Icon created by fuukanou: https://vndb.org/t10665.49 File size reduced a bit further by removing metadata and using scour Closes #3
2018-01-05Add info icons for each release in vn page.TigerShark16-0/+189
2015-10-03Rewrote screenshot uploader to support multiple files + use jsonYorhel1-0/+0
This might have broken the screenshot uploader on some crappy browsers, but it's much cleaner than the old iframe hack. The ability to upload multiple files in one go is also very convenient.
2015-05-11Generate icons.png and associated CSS automaticallyYorhel1-0/+0
It became a bit of a hassle to keep updating that file manually in Gimp. This script performs surprisingly well for our set of icons.
2014-10-12Add PS4 and Xbox One platformsYorhel1-0/+0
2014-08-21Add Romanian languageYorhel1-0/+0
2013-09-14Add platforms: Game Boy Color, PC-88, PC-FX and XBOXYorhel1-0/+0
2013-09-14Added Arabic and Hebrew languagesYorhel1-0/+0
2012-09-05Added PSVita and Nintendo 3DS platformsYorhel1-0/+0
2012-03-27Added Indonesian languageYorhel1-0/+0
2012-01-09Added language for UkrainianYorhel1-0/+0
And added an update_2.23.sql file which now also includes the previously added indices. Currently, this update file can be run as often as you want, it doesn't make any noticable changes when you run it on a database that has already been updated. (i.e. I can update the main site without a new release)
2011-08-22Added new platforms: Android, Web and DB-PGYorhel1-0/+0
+ Fixed makefile I haven't been able to properly test this yet as a bug[1] in PostgreSQL 9.0.4 is preventing me from editing release entries. [1] http://archives.postgresql.org/pgsql-bugs/2011-08/msg00119.php
2011-07-16Fixed CSS bug with language icon opacity in OperaYorhel1-0/+0
2011-02-22chardb: +image quality, -other blood type, typo fix, +gender iconsYorhel1-0/+0
2010-11-13Homepage: Added feed iconsYorhel1-0/+0
2010-11-01Added Apple iProduct platformYorhel1-0/+0
2010-02-02Differentiate between pt-PT and pt-BR in the languagesYorhel1-0/+0
As requested, http://vndb.org/t423
2010-01-11Added Slovak to the list of languagesYorhel1-0/+0
2009-10-07JS: Moved script.js to data/ and added jsgen.pl to process itYorhel1-1758/+0
While this 'processing' is currently limited to minifying the file if JavaScript::Minifier::XS is available, this change would make it a lot easier to make the strings in the JS code translatable.
2009-10-05JS: Moved, split and rewrote release <-> VN & producer linkingYorhel2-123/+208
+ removed last traces of forms.js + converted code to use tables, as that is easier to expand more accurate for this purpose. The reason I probably didn't use tables before was that the innerHTML property doesn't work on tr elements. The split was mainly because the producer linking is going to be expanded with an additional field later on.
2009-10-05JS: Documented function/attribute prefixesYorhel1-0/+13
Because I am bound to forget all those and add duplicates.
2009-10-05JS: Fixed syntax errors on Midori and some other minor problemsYorhel1-29/+29
I use Midori as a representative for all webkit-based browsers, not sure how reliable that is, but it definitely can't do harm to fix javascript problems in Midori. :-)
2009-10-05JS: Moved, rewrote and improved VN tag linkingYorhel2-164/+193
- You can now click the spoiler column to scroll through the options - Or mouse-over the spoiler column to see a JS dropdown with the options (no more select box, which introduces several more clicks to do the same)
2009-10-04JS: Moved and rewrote VN screenshot uploaderYorhel2-259/+251
Works pretty much the same as the old version.
2009-10-04JS: Moved and rewrote the release media selectorYorhel2-110/+82
It works slightly different from the previous, in that it enforces a proper selection instead of validating the selection on form submit, and it handles adding new media differently. Probably a bit less efficient, but less code and easier to maintain.
2009-10-04JS: Moved and rewrote VN relations editorYorhel2-168/+128
+ Some fixes and improvements in the dropdown search + Renamed 'relations' field to 'vnrelations', as other relations are going to be implemented as well New relation editor code is somewhat smaller than the old, mostly thanks to the tag() function. Also tried to make things less error-prone and easier to maintain by referencing things using self-explainable class names instead of the ordering of the HTML tags.
2009-10-03JS: Converted and improved dropdown search and moved to script.jsYorhel2-202/+186
Also converted the last onload function in script.js. I think I'll merge forms.js into script.js when converting that functionality. The total file probably wouldn't larger than 15kB gzipped, which is still smaller than the jquery core, and that doesn't even do anything by itself.
2009-10-03JS: Rewrote and generalized row group expand codeYorhel1-34/+38
2009-10-03JS: Updated and generalized list expand/collapse functionsYorhel1-25/+21
2009-10-03JS: Rewrote/updated most of the minor onload functionsYorhel1-129/+148
2009-10-03JS: Rewrote date selector and fixed onclick bug added in c7f7fdbfYorhel1-40/+45