Задание для отборочного тура #1
mik639
announced in
Announcements
Replies: 2 comments 3 replies
-
В технологиях написано использование CSS, но я правильно понимаю , что использование препроцессора SASS/SCSS не запрещено? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Тач пада устройства, подразумевает использование react native ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Задача
Создать виджет подбора очков. Ваш виджет должен подключатся к любой HTML-странице путем подключения файла со скриптом и добавления HTML-элемента с атрибутами
id="glasses-quiz-widget"
иdata-source=”https://example.com/"
в место, где нужно разместить виджет.Виджет представляет из себя набор экранов с вопросами и вариантами ответов. При прохождении пользователя по вопросам, виджет формирует URL строку вида
https://example.com/?screen_1=value_1&screen_2=value_1,value_2 ...
Где
https://example.com/
— значение, взятое изdata-source
атрибута контейнера.Параметры
screen_1
,screen_2
и так далее — зафиксированное за определенным экраном значение. Если пользователь пропустил вопрос, параметр экрана в URL добавлять не нужно. Обратите внимание что в качестве разделителя между параметрами используется символ&
.Если для экрана возможен только один вариант ответа, его значение присваивается параметру экрана
screen_1=value_1
. Если ответов может быть несколько, они присваиваются параметру экрана через запятуюscreen_2=value_1,value_2
.Технологии
Ограничения
Ограничений на окружение среды разработчика нет. Для разработки виджета используйте React. Вы можете использовать любые сторонние пакеты. Решение принимается в виде ссылки на репозиторий в GitHub. В readme.md репозитория должен быть описан процесс сборки скрипта.
Критерии оценки
Дополнительные баллы
Beta Was this translation helpful? Give feedback.
All reactions