Прямой эфир
var project_structure_id = '155331', /* id проекта, в рамках которого работают трансляции */ options = { sporticon_svg: '//static.1tv.ru/special/olympic-2018/schedule/img/icon-ceremonies.svg', /* эта иконка отображается возле названия позиции-церемонии */ chronicle_label: 'Олимпийские хроники' /* этот текст используется как заголовок у позиции-хроники */ };var player_url = 'https://www.1tv.ru/iframed/eump-embedlive_yo.html', /* url спорт.плеера */ api = { sports_api_url: 'https://api.1tv.ru/v2/special/sports.json', /* api видов спорта */ channels_api_url: `https://api.1tv.ru/v2/special/channels.json?project_structure_id=${project_structure_id}` /* api каналов проекта */ }, full_player_url = `${player_url}?channel_id={{id}}&channels_api_url=${api.channels_api_url}`; /* url спорт.плеера со вспомогательными параметрами */$(document).ready(function () { Promise.resolve() .then(loadSports) .then(loadChannels) .then(initChannelClick);});var broadcastApp = {};function loadSports() { return new Promise(function (resolve, reject) { $.get(api.sports_api_url) .then(function (data) { var sports = {}; data.sports.forEach(function (s) { sports[s.id] = s; }); broadcastApp.sports = sports; resolve(); }); });}function loadChannels() { return new Promise(function (resolve, reject) { var cardTemlpate = $('#w1tv-ol18-broadcast-card-template').html(); var cards = document.getElementById('w1tv-ol18-broadcast-cards-container'); var cardsHtml = ''; $.get(api.channels_api_url) .then(function (data) { broadcastApp.channels = data.channels; var active_channels = []; data.channels.forEach( function (ch) { if (ch.schedule_item || ch.schedule_next_item) active_channels.push(ch) } ); data.channels.forEach(function (ch) { var item = ch.schedule_item ? ch.schedule_item : ch.schedule_next_item; var itemType = ch.schedule_item ? 'current' : 'next'; if (item === undefined) { return; } var type = item.type; var sportbg = item.sport != undefined ? broadcastApp.sports[item.sport.id].background_url : '#'; var sporticon = item.sport != undefined ? broadcastApp.sports[item.sport.id].icon_url : '#'; if (item.sport == undefined && (type == "Церемонии")) { sporticon = options.sporticon_svg; } if (broadcastApp.mainChannel === undefined && item.options.main === true && itemType === 'current') { broadcastApp.mainChannel = ch.id; } if (type == "Хроника") { type = options.chronicle_label; } var sporttitle = item.sport != undefined ? item.sport.title : type; cardsHtml += cardTemlpate.replace(/{{}}/g, ch) .replace(/{{sportBg}}/g, sportbg) .replace(/{{sportIcon}}/g, sporticon ? sporticon : '#') .replace(/{{sport}}/g, sporttitle) .replace(/{{poster}}/g, ch.poster_thumb_url) .replace(/{{time}}/g, moment(item.begin_at).utcOffset('+0300').format('HH:mm')) .replace(/{{title}}/g, item.title) .replace(/{{classname}}/g, 'w1tv-ol18-broadcast-card--' + itemType) .replace(/{{channelId}}/g, ch.id); }); cards.innerHTML = cardsHtml; if (active_channels.length > 1) { document.querySelectorAll("[data-role='channel_item']").forEach(function (item) { item.className = item.className.replace(/\bhidden\b/g, ""); }) } var player_el = document.getElementById('olympics-broadcats-player'), hash = location.hash.substr(1); if (parseInt(hash) !== NaN && parseInt(hash) > 0 && parseInt(hash) < 9) { player_el.src = full_player_url.replace('{{id}}', hash); } else { var channel = broadcastApp.mainChannel; if (channel == undefined) { channel = broadcastApp.channels[0] ? broadcastApp.channels[0].id : ''; } player_el.src = full_player_url.replace('{{id}}', channel); } window.location.replace("#"); try { history.replaceState({}, '', window.location.href.slice(0, -1)); } catch (e) { } resolve(); }); });}function initChannelClick() { $('.js-w1tv-ol18-broadcast-card').on('click', function (e) { var player_el = document.getElementById('olympics-broadcats-player'); player_el.src = full_player_url.replace('{{id}}', e.currentTarget.dataset.channelId); $('@@scroll_top').trigger('scroll_to', window.scrollY + player_el.getBoundingClientRect().top - 60); });}
Лучшие фигуристы мира сразятся в следующих дисциплинах: мужское и женское одиночное катание, парное катание и спортивные танцы на льду. Смотрите прямые трансляции и лучшие моменты соревнований на сайте Первого канала.
Состав российской команды
Женщины: Алена Косторная, Анна Щербакова, Александра Трусова
Мужчины: Дмитрий Алиев, Артур Даниелян
Пары: Александра Бойкова/Дмитрий Козловский, Евгения Тарасова/Владимир Морозов, Дарья Павлюченко/ Денис Ходыкин
Танцы на льду: Виктория Синицина/Никита Кацалапов, Александра Степанова/Иван Букин, Тиффани Загорски/ Джонатан Гурейро
16 — 22 марта, Монреаль, Канада