1хбет линия ставки

.quiz_question { }
.quiz_text { padding: 0px 15px; }
.quiz_question_picture { margin-left: 15px; }
.quiz_header { font-size: 18px; padding: 20px 0px 10px 0px; margin-left: 14px; font-weight: bold; }
.quiz_answer { font-size: 14px; margin-left: 15px; padding: 5px 5px 5px 38px; width: 590px; border: 1px solid white; background: url(https://s5o.ru/storage/simple/ru/edt/46/85/28/83/rued9bf42b853.gif) no-repeat; background-position: left 14px center; cursor: pointer; }
.quiz_answer_selected { border: 1px solid #959595 !important; background: url(https://s5o.ru/storage/simple/ru/edt/33/43/74/24/rue777cdbbc0e.gif) no-repeat; background-position: left 14px center; }
.quiz_answer_gray { color: #bebebe;
-webkit-transition: all 0.5s ease-in-out; -moz-transition: all 0.5s ease-in-out; -o-transition: all 0.5s ease-in-out; transition: all 0.5s ease-in-out; }
.quiz_answer:hover {
-webkit-transition: all 0.5s ease-in-out; -moz-transition: all 0.5s ease-in-out; -o-transition: all 0.5s ease-in-out; transition: all 0.5s ease-in-out;
background: url(https://s5o.ru/storage/simple/ru/edt/33/43/74/24/rue777cdbbc0e.gif) no-repeat; background-position: left 14px center;
border: 1px solid #959595; }
.quiz_picture { cursor: pointer; display: inline-block; padding: 15px; border: 1px solid white; margin: 0px 10px 10px 0px;
filter: grayscale(30%); -webkit-filter: grayscale(30%); -moz-filter: grayscale(30%); -ms-filter: grayscale(30%); -o-filter: grayscale(30%); filter: gray; -webkit-filter: grayscale(0.5); }
.quiz_question_fullcolor .quiz_picture { -webkit-transition: all 0.5s ease-in-out; -moz-transition: all 0.5s ease-in-out; -o-transition: all 0.5s ease-in-out; transition: all 0.5s ease-in-out; -webkit-filter: grayscale(0%); }
.quiz_picture.quiz_answer_gray { cursor: pointer; display: inline-block; padding: 15px; border: 1px solid white; margin: 0px 10px 10px 0px;
filter: grayscale(100%); -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: grayscale(100%); -o-filter: grayscale(100%); filter: gray; -webkit-filter: grayscale(1.0); }
.quiz_picture:hover {
border: 1px solid #959595;
-webkit-transition: all 0.5s ease-in-out; -moz-transition: all 0.5s ease-in-out; -o-transition: all 0.5s ease-in-out; transition: all 0.5s ease-in-out;
filter: grayscale(0%); -webkit-filter: grayscale(0%); -moz-filter: grayscale(0%); -ms-filter: grayscale(0%); -o-filter: grayscale(0%); -webkit-filter: grayscale(0); }
.quiz_picture.quiz_answer_selected {
background: none !important; border: 1px solid #959595 !important;
-webkit-transition: all 0.5s ease-in-out; -moz-transition: all 0.5s ease-in-out; -o-transition: all 0.5s ease-in-out; transition: all 0.5s ease-in-out;
filter: grayscale(0%) !important; -webkit-filter: grayscale(0%) !important; -moz-filter: grayscale(0%) !important; -ms-filter: grayscale(0%) !important; -o-filter: grayscale(0%) !important; -webkit-filter: grayscale(0) !important; }
.quiz_result { font-size: 18px; font-weight: bold; }
.quiz_result img { margin: 20px 0px; }
.quiz_restart { cursor: pointer; padding-top: 25px; }
.answer_likes { margin-bottom: 10px; }

window.onload = function () { require(["jquery"], function ($) {
var ANSWERS = new Array(); var RESULT = 0;
function check_end() // проверяем, не конец ли теста наступил {
for (i = 0; i < ANSWERS.length; i++) { if (ANSWERS[i] == 0) { return false; // еще не все заполнено } }
// если конец наступил, ищем самый нередкий ответ var occ = [], k = 0, max = ”, maxi = 0; for (i = 0; i < ANSWERS.length; i++) { k = ANSWERS[i];
if (occ[k]) { occ[k]++; } else { occ[k] = 1; }
if (maxi < occ[k]) { max = k; maxi = occ[k]; } }
var res = $(".quiz_result[data-result=’" + max + "’]"); res.find("[data-control=’Common.Share’]").view("Common.Share"); res.fadeIn(‘slow’); res.siblings(".quiz_result").hide(); var offset = res.offset(); window.scrollTo(0, offset.top-40); }
function restart() // начать тест поначалу { for (i = 0; i < ANSWERS.length; i++) { ANSWERS[i] = 0; } $(‘.quiz_result’).fadeOut(‘slow’); $(‘.quiz_answer, .quiz_picture’).removeClass(‘quiz_answer_selected’).removeClass(‘quiz_answer_gray’); $(‘.quiz_question’).fadeIn(‘slow’);
var p = $(‘#quiz_start_picture’); var offset = p.offset(); window.scrollTo(0, offset.top-80); }
$(document).ready(function () {
//получаем перечень вопросов ANSWERS = $(".quiz_question").map(function () { return this.getAttribute(‘data-answer’); }) .get();
//обработчик нажатий на вопросы $(".quiz_answer, .quiz_picture").bind("click", function (event) { var rr = parseInt($(this).attr(‘data-result’)); var qq = parseInt($(this).parent().attr(‘data-question’));
if (ANSWERS[qq-1] == rr) { ANSWERS[qq-1] = 0; $(this).removeClass(‘quiz_answer_selected’); $(this).siblings(".quiz_answer, .quiz_picture").removeClass(‘quiz_answer_gray’); } else { ANSWERS[qq-1] = rr; $(this).siblings(".quiz_answer, .quiz_picture").removeClass(‘quiz_answer_selected’) .addClass(‘quiz_answer_gray’); $(this).addClass(‘quiz_answer_selected’).removeClass(‘quiz_answer_gray’); } check_end(); });
//обработчик начала поновой $(".quiz_restart").bind("click", function (event) { restart(); });
}); }); };

Внимание: если в приложении формат теста не поддерживается, попытайтесь открыть его в браузере.

Избери джедая