gpt-4-0314· OpenAI
WildChat-4.8M (AI2)
Please make this code more accessible, providing complete HTML, Javascript, and CSS.…
- User
Please make this code more accessible, providing complete HTML, Javascript, and CSS. Ensure that the example is keyboard operable and accessible for screen readers.
HTML:
Javascript: (function() { var list = ('.js-dropdown-list'); var link = ('.js-link'); link.click(function(e) { e.preventDefault(); list.slideToggle(200); }); list.find('li').click(function() { var text = (this).html(); var icon = ''; link.html(text+icon); list.slideToggle(200); if (text === '* Reset') { link.html('Select one option'+icon); } }); });
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.