summaryrefslogtreecommitdiff
path: root/data/js
AgeCommit message (Collapse)AuthorFilesLines
2018-10-31VNEdit: Remove "import cast" functionalityYorhel1-35/+0
https://vndb.org/t950.521
2018-10-28Ignore hidden-by-CSS NSFW images in next/prev in image viewerYorhel1-1/+1
Broken in 0687115f99 Fixes https://vndb.org/t2520.277 The JS check is based on https://makandracards.com/makandra/1339-check-whether-an-element-is-visible-or-hidden-with-javascript
2018-10-28Add JS-less NSFW screenshot togglezx141-19/+0
(cherry picked from commit 6446d7d185543440b97be009fdf2a1f0c379b26f)
2018-10-28Fix titles with commas getting truncated in VN relation tablealto1-1/+3
2018-10-23Add JS-less NSFW togglezx141-19/+0
2018-09-29Add default spoiler level to traits and use it on character editYorhel1-1/+1
https://vndb.org/t11296
2018-05-25Add uncensored flag to release entriesYorhel2-2/+10
As discussed in https://vndb.org/t10665
2018-03-04Allow decimal voting from /u+/votesYorhel1-16/+46
2017-03-03Add date filters to VN searchYorhel1-1/+4
2016-07-31vnstaff.js: Show error message when staff is credited multiple timesYorhel1-1/+20
The backend does this validation as well, but if that validation fails it will show an unhelpful "Malformed JSON" error. This JS message should be more helpful.
2016-07-03Fix adding tags to VNs after last commitYorhel1-1/+1
I changed the exact matching syntax of the tag search to be '='-prefixed rather than 'name:'-prefixed, to be similar to exact staff search. But I forgot that the JS code relied on the name-prefix.
2016-07-03Various staff search improvementsYorhel2-0/+2
- Exact match is now case-insensitive - Main staff search supports exact match with =-prefix - On VN edit dropdown: exact matches are sorted before other matches - VN edit dropdown now also displays original name
2016-07-02JS: Use alias ID in dropdown search to fix selectionYorhel2-4/+4
2016-03-01JS: Increase staff/cast box summarization cut-off pointYorhel1-1/+1
It's rather annoying to have to click "more" only to see one or two more lines. Let's just show everything in that case.
2016-01-18Fix display of spoiler in chartraits.js + warning in Handler/Chars.pmYorhel1-1/+1
2016-01-17L10N: Intern all Javascript strings and rename main JS fileYorhel20-240/+217
This has been mostly automated.
2016-01-17L10N: Intern blood_types/genders/(char|staff)_roles/discussion_boardsYorhel1-10/+2
I definitely needed the Tie::IxHash thing for these.
2016-01-16L10N: Remove all translationsYorhel1-20/+0
TODO: Intern strings again to simplify the code. The immediate effect of this commit is that starting the util/vndb.pl script and generating the JS file is much faster now and that vndb.pl uses less memory. Translations have already been disabled on the main VNDB for a week now.
2016-01-10Add 'more'/'less' buttons to staff/character boxes on VN pagesYorhel1-1/+27
2016-01-02js/filter: Fix passing null to selectCat() in IEYorhel1-1/+3
Apparently IE doesn't like it when you put a HTMLCollection object inside a DOM value.
2015-12-30Combine some tabs in release filters to avoid line wrapYorhel1-3/+3
2015-12-30Add release filters to VN browserYorhel1-109/+179
2015-11-11Misc poll improvementsYorhel1-16/+11
- Merged polls table into threads table. Not much of a storage/performance difference, and it's a bit simpler this way. - Merged DB::Polls into DB::Discussions. Mainly because of the above change in DB structure. - Add option to remove an existing poll. - Allow preview and recast to be changed without deleting the votes - Set preview option by default. Because personal preferences. :) - Minor form validation differences
2015-11-10Merge branch 'poll' of https://github.com/morkt/vndb into pollsYorhel2-0/+27
2015-11-10Merge branch 'master' into pollmorkt5-40/+35
2015-11-10Add 'has screenshots' filter to VN browserYorhel1-1/+2
2015-11-10Add language filter to staff browserYorhel1-1/+2
2015-11-01Use HTML5 'placeholder' attribute for main search boxYorhel1-15/+0
Instead of the JS hack.
2015-11-01dropdownsearch.js: Perform search when copy-pasting or dragging textYorhel1-9/+19
https://vndb.org/t950.103
2015-11-01Image viewer: Use HTML5 data- attribute instead of 'rel' for dataYorhel3-13/+13
The possible values of the rel attribute is fixed, it's not supposed to be a free-form field.
2015-11-01Switch to HTML5 doctype + s/acronym/abbr/ + s/ / /eYorhel1-3/+3
I'd have preferred to stick with XHTML 1.0, but unfortunately browsers won't allow you to use modern Javascript APIs with an older doctype. Note that most pages don't actually validate correctly as HTML5, I'm relying on browsers to be lenient. In either case, I'd like VNDB to stay valid XML (XHTML5, then), and luckily that shouldn't be a problem.
2015-10-18discussion board polls.morkt1-0/+1
2015-10-18discussion board polls.morkt1-0/+26
2015-10-03js: Minor fixesYorhel2-2/+2
2015-10-03Rewrote screenshot uploader to support multiple files + use jsonYorhel2-161/+133
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-09-03JS: Fix argument replacement regexp in mt()Yorhel1-1/+1
This caused every [_#] to be replaced multiple times.
2015-08-18vnstaff.js: Export vnsStaffData for use by vncast.jsYorhel1-4/+5
To fix the cast editor.
2015-08-17jsgen: Support external command for JS compression (like uglifyjs)Yorhel1-5/+1
Tends to compress a bit better than JavaScript::Minifier::JS. But is also a lot slower, so not really useful when devving. Stats for en.js: raw gzip uglifyjs 68199 19446 JS::Minifier::XS 79862 21624 Uncompressed 107662 28663 On an unrelated note, I like how jQuery boasts about being "Only 32kB minified and gzipped.". That's quite a bit more than all of VNDB's Javascript combined. For a damn library.
2015-08-17js: Clean up misc.jsYorhel1-127/+144
- Individual blocks don't leak variables into the parent scope anymore. Previously some blocks would re-use variables from other blocks, creating (almost invisible) dependencies between te blocks. - More consistent code for ulist-change-dropdowns, and all of them have a ref= argument now. - Use 'hidden' class instead of style.display wherever that makes sense. - Remove dead 'advselect' code. Hasn't been used since the addition of search filters. - lang_select doesn't rely on the position of the language class in className anymore (seriously that stuff is fragile...)
2015-08-17js: Add L10N strings to all relevant varsYorhel3-52/+24
This simplifies the JS code in some places and removes a whole number of L10N strings from the "l10n_str" var, thus shrinking the JS size a bit (uncompressed about 1500 bytes, in fact. 500 bytes after gzip).
2015-08-16js: Clean up charops.js & tagops.jsYorhel2-111/+123
charops.js was already recently (re)written and followed much of the new conventions, so that was easy. tagops.js has been simplified somewhat, and does not rely on the position of the "tagspl#" class anymore.
2015-08-15js: Let jsgen.pl preprocess L10N strings + add L10N strings to some varsYorhel5-52/+28
This simplifies the JS version of mt() a bit and makes the whole internationalization framework a bit more robust. I also changed the VARS.{rlist_status,age_ratings,languages,platforms,char_roles} arrays to include the L10N string. This simplifies the JS code and reduces the JS size. There's a few more of such lists that can be transformed in the same way, I'll get to that later.
2015-08-15js: Wrap included files in anonymous functionYorhel7-460/+435
This removes the need to indent all files and add the anonymous function manually, and it also provides clean and consistent semantics. I already rewrote the library-like files earlier on to add their public interfaces to the window object, so everything should keep working after this change. It's still possible that some files use use a function from another non-library file. Those will break, but I'm sure such cases will be found soon enough, if they exist.
2015-08-15js: Cleanup + improve dropdownsearch.jsYorhel1-131/+165
Same as usual. Some additional changes - Removed parfunc argument to dsInit(), not used anywhere. - The ds_box div is only created when used.
2015-08-11js: Cleanup dropdown.js + remove http_request globalYorhel3-73/+90
dropdown.js has also been improved a bit to only add the dd_box node to the DOM when it's actually going to be used, and it now only captures document.onmousemove when a box is shown.
2015-08-11js: Cleanup dateselector.jsYorhel2-59/+88
2015-08-11js: Cleanup tabs.jsYorhel1-34/+46
2015-08-10js: Clean up iv.js to use own namespace + better prev/next generationYorhel2-88/+119
2015-08-10js: Move generated variables into global VARS structureYorhel8-36/+37
This removes one source of namespace polution, and makes it more clear which code is using the variables.
2015-08-10Split script.js into multiple smaller filesYorhel24-0/+3317
First part of a Javascript cleanup.