Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <main>
- <div class="wrapper">
- l= javascript_include_tag "/assets/articles/main.js"
- <link href="/assets/select2/select2.css" media="screen" rel="stylesheet">
- <div class="fluid-container page-banner article-banner">
- <div class="container">
- <div class="intro-text">
- <h2>Cмотрите, оценивайте и комментируйте видео
- об изучении русского языка и не только</h2>
- </div>
- </div>
- </div>
- <div class="container" data-app="app/index">
- <div class="list-container">
- <div class="cr-left" style="float:left;margin-top: 10px;">
- <div class="b filters">
- <div class="item" style="float:left;">
- <div class="lb" style="float:left;margin-right:10px;margin-top: 3.3px;">Дата</div>
- <div class="f range" style="float:right;">
- <span class="part">
- <a class="date-btn meetings_datetimepicker" data-bind="dfrom" data-control="commons/controls/stateful-date-picker" data-empty="Выбрать дату" data-value="">
- <span data-name="inp">
- Выбрать дату
- </span>
- <span class="caret first"></span>
- </a>
- </span>
- <span class="part">
- <a class="date-btn meetings_datetimepicker" data-bind="dto" data-control="commons/controls/stateful-date-picker" data-empty="Выбрать дату" data-value="">
- <span data-name="inp">
- Выбрать дату
- </span>
- <span class="caret second"></span>
- </a>
- </span></div>
- </div>
- <div class="item" style="float:left;margin-right: 15px;">
- <span class="lb">Организации</span>
- <input data-bind="org" data-control="commons/controls/stateful-org-selector" data-init-url="/orgbyid.json" data-multiple="true" data-url="/orgbyname.json" style="width: 200px" value=""></div>
- <div class="item" style="float:left;margin-right: 15px;">
- <span class="lb">Доступные языки</span>
- <input data-bind="locale" data-control="commons/controls/stateful-locale-selector" data-init-url="/localebyid.json" data-multiple="true" data-url="/localebyname.json" style="width: 200px" value=""></div>
- <div class="item" style="float:right;">
- <span class="lb">Теги</span>
- <input class="search-tags" style=" width: 200px; height: 30px; font-size: 16px;color: #12141a;" value=""></div>
- </div>
- </div>
- <div style="width:100%; float: left;">
- <div class="fright" style="margin-top: 10px;margin-bottom: 20px;margin-right: 60px; "></div>
- </div>
- <div class="content-uploader handler" data-list-selector="video-list" data-page="1" data-pages="15" data-url="/videos">
- <div class="cr-content">
- <div class="list" data-bind="list" data-control="app/controls/list" data-initial-refresh="false" data-page-size="8" data-url="/search_videos">
- <div class="row video-list">
- <div class="col-lg-24 col-md-48 video-item" id="video_page_3324">
- <div class="row">
- <div class="col-lg-24 col-md-17 img-wrapper">
- <a href="/videos/3324">
- <div class="duration">00:04:08</div>
- </a><a href="/videos/3324"></a><a href="/videos/3324"></a>
- </div>
- <div class="col-lg-24 col-md-31 content-wrapper">
- <div class="content">
- <span class="line"></span>
- <h5 class="title">
- <a href="/videos/3324">День Победы - поздравление студентов Института Пушкина</a></h5>
- <div class="date">
- 6 мая 2019</div>
- <div class="rating">
- <div class="star" data-cancel-hint="Cancel current rating!" data-cancel-off="cancel-off.png" data-cancel-on="cancel-on.png" data-cancel-place="left" data-cancel="false" data-classname="VideoPage" data-disable-after-rate="true" data-enable-half="false" data-half-show="true" data-id="3324" data-no-rated-message="I'am readOnly and I haven't rated yet!" data-rating="0" data-readonly="true" data-single="false" data-space="false" data-star-count="5" data-star-half="star-half.png" data-star-off="star-off.png" data-star-on="star-on.png" data-star-path="/ratyrate" data-target-format="{score}" data-target-score="4" data-target-text="" data-target-type="hint" data-target="" title="Not rated yet!"> <input name="score" type="hidden" readonly=""></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-lg-24 col-md-48 video-item" id="video_page_3294">
- <div class="row">
- <div class="col-lg-24 col-md-17 img-wrapper">
- <a href="/videos/3294">
- <div class="duration">00:40:00</div>
- </a><a href="/videos/3294"></a><a href="/videos/3294"></a>
- </div>
- <div class="col-lg-24 col-md-31 content-wrapper">
- <div class="content">
- <span class="line"></span>
- <h5 class="title">
- <a href="/videos/3294">Как всё начиналось</a></h5>
- <div class="date">
- 11 апреля 2019</div>
- <div class="rating">
- <div class="star" data-cancel-hint="Cancel current rating!" data-cancel-off="cancel-off.png" data-cancel-on="cancel-on.png" data-cancel-place="left" data-cancel="false" data-classname="VideoPage" data-disable-after-rate="true" data-enable-half="false" data-half-show="true" data-id="3294" data-no-rated-message="I'am readOnly and I haven't rated yet!" data-rating="0" data-readonly="true" data-single="false" data-space="false" data-star-count="5" data-star-half="star-half.png" data-star-off="star-off.png" data-star-on="star-on.png" data-star-path="/ratyrate" data-target-format="{score}" data-target-score="4" data-target-text="" data-target-type="hint" data-target="" title="Not rated yet!"> <input name="score" type="hidden" readonly=""></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-lg-24 col-md-48 video-item" id="video_page_1786">
- <div class="row">
- <div class="col-lg-24 col-md-17 img-wrapper">
- <a href="/videos/1786">
- <div class="duration">00:19:34</div>
- </a><a href="/videos/1786"></a><a href="/videos/1786"></a>
- </div>
- <div class="col-lg-24 col-md-31 content-wrapper">
- <div class="content">
- <span class="line"></span>
- <h5 class="title">
- <a href="/videos/1786">Геометрия 10 класс. Урок 7. Тетраэдр и параллелепипед. Часть 1</a></h5>
- <div class="date">
- 25 мая 2017</div>
- <div class="rating">
- <div class="star" data-cancel-hint="Cancel current rating!" data-cancel-off="cancel-off.png" data-cancel-on="cancel-on.png" data-cancel-place="left" data-cancel="false" data-classname="VideoPage" data-disable-after-rate="true" data-enable-half="false" data-half-show="true" data-id="1786" data-no-rated-message="I'am readOnly and I haven't rated yet!" data-rating="4.0" data-readonly="true" data-single="false" data-space="false" data-star-count="5" data-star-half="star-half.png" data-star-off="star-off.png" data-star-on="star-on.png" data-star-path="/ratyrate" data-target-format="{score}" data-target-score="4" data-target-text="" data-target-type="hint" data-target="" title="good"> <input name="score" type="hidden" value="4" readonly=""></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-lg-24 col-md-48 video-item" id="video_page_1785">
- <div class="row">
- <div class="col-lg-24 col-md-17 img-wrapper">
- <a href="/videos/1785">
- <div class="duration">00:23:16</div>
- </a><a href="/videos/1785"></a><a href="/videos/1785"></a>
- </div>
- <div class="col-lg-24 col-md-31 content-wrapper">
- <div class="content">
- <span class="line"></span>
- <h5 class="title">
- <a href="/videos/1785">Геометрия 10 класс. Урок 7. Тетраэдр и параллелепипед. Часть 2</a></h5>
- <div class="date">
- 25 мая 2017</div>
- <div class="rating">
- <div class="star" data-cancel-hint="Cancel current rating!" data-cancel-off="cancel-off.png" data-cancel-on="cancel-on.png" data-cancel-place="left" data-cancel="false" data-classname="VideoPage" data-disable-after-rate="true" data-enable-half="false" data-half-show="true" data-id="1785" data-no-rated-message="I'am readOnly and I haven't rated yet!" data-rating="5.0" data-readonly="true" data-single="false" data-space="false" data-star-count="5" data-star-half="star-half.png" data-star-off="star-off.png" data-star-on="star-on.png" data-star-path="/ratyrate" data-target-format="{score}" data-target-score="4" data-target-text="" data-target-type="hint" data-target="" title="gorgeous"> <input name="score" type="hidden" value="5" readonly=""></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-lg-24 col-md-48 video-item" id="video_page_1784">
- <div class="row">
- <div class="col-lg-24 col-md-17 img-wrapper">
- <a href="/videos/1784">
- <div class="duration">00:23:03</div>
- </a><a href="/videos/1784"></a><a href="/videos/1784"></a>
- </div>
- <div class="col-lg-24 col-md-31 content-wrapper">
- <div class="content">
- <span class="line"></span>
- <h5 class="title">
- <a href="/videos/1784">Биология 11 класс. Урок 23. Глобальные проблемы биосферы. Сохранение равновесия. Часть 1</a></h5>
- <div class="date">
- 25 мая 2017</div>
- <div class="rating">
- <div class="star" data-cancel-hint="Cancel current rating!" data-cancel-off="cancel-off.png" data-cancel-on="cancel-on.png" data-cancel-place="left" data-cancel="false" data-classname="VideoPage" data-disable-after-rate="true" data-enable-half="false" data-half-show="true" data-id="1784" data-no-rated-message="I'am readOnly and I haven't rated yet!" data-rating="0" data-readonly="true" data-single="false" data-space="false" data-star-count="5" data-star-half="star-half.png" data-star-off="star-off.png" data-star-on="star-on.png" data-star-path="/ratyrate" data-target-format="{score}" data-target-score="4" data-target-text="" data-target-type="hint" data-target="" title="Not rated yet!"> <input name="score" type="hidden" readonly=""></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-lg-24 col-md-48 video-item" id="video_page_1783">
- <div class="row">
- <div class="col-lg-24 col-md-17 img-wrapper">
- <a href="/videos/1783">
- <div class="duration">00:22:01</div>
- </a><a href="/videos/1783"></a><a href="/videos/1783"></a>
- </div>
- <div class="col-lg-24 col-md-31 content-wrapper">
- <div class="content">
- <span class="line"></span>
- <h5 class="title">
- <a href="/videos/1783">Биология 11 класс. Урок 23. Глобальные проблемы биосферы. Сохранение равновесия. Часть 2</a></h5>
- <div class="date">
- 25 мая 2017</div>
- <div class="rating">
- <div class="star" data-cancel-hint="Cancel current rating!" data-cancel-off="cancel-off.png" data-cancel-on="cancel-on.png" data-cancel-place="left" data-cancel="false" data-classname="VideoPage" data-disable-after-rate="true" data-enable-half="false" data-half-show="true" data-id="1783" data-no-rated-message="I'am readOnly and I haven't rated yet!" data-rating="0" data-readonly="true" data-single="false" data-space="false" data-star-count="5" data-star-half="star-half.png" data-star-off="star-off.png" data-star-on="star-on.png" data-star-path="/ratyrate" data-target-format="{score}" data-target-score="4" data-target-text="" data-target-type="hint" data-target="" title="Not rated yet!"> <input name="score" type="hidden" readonly=""></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-lg-24 col-md-48 video-item" id="video_page_1761">
- <div class="row">
- <div class="col-lg-24 col-md-17 img-wrapper">
- <a href="/videos/1761">
- <div class="duration">00:13:50</div>
- </a><a href="/videos/1761"></a><a href="/videos/1761"></a>
- </div>
- <div class="col-lg-24 col-md-31 content-wrapper">
- <div class="content">
- <span class="line"></span>
- <h5 class="title">
- <a href="/videos/1761">Школа русского языка со Смешариками. 1-й урок «Знакомство»</a></h5>
- <div class="date">
- 18 мая 2017</div>
- <div class="rating">
- <div class="star" data-cancel-hint="Cancel current rating!" data-cancel-off="cancel-off.png" data-cancel-on="cancel-on.png" data-cancel-place="left" data-cancel="false" data-classname="VideoPage" data-disable-after-rate="true" data-enable-half="false" data-half-show="true" data-id="1761" data-no-rated-message="I'am readOnly and I haven't rated yet!" data-rating="5.0" data-readonly="true" data-single="false" data-space="false" data-star-count="5" data-star-half="star-half.png" data-star-off="star-off.png" data-star-on="star-on.png" data-star-path="/ratyrate" data-target-format="{score}" data-target-score="4" data-target-text="" data-target-type="hint" data-target="" title="gorgeous"> <input name="score" type="hidden" value="5" readonly=""></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-lg-24 col-md-48 video-item" id="video_page_1762">
- <div class="row">
- <div class="col-lg-24 col-md-17 img-wrapper">
- <a href="/videos/1762">
- <div class="duration">00:13:08</div>
- </a><a href="/videos/1762"></a><a href="/videos/1762"></a>
- </div>
- <div class="col-lg-24 col-md-31 content-wrapper">
- <div class="content">
- <span class="line"></span>
- <h5 class="title">
- <a href="/videos/1762">Школа русского языка со Смешариками. 2-й урок «Семья»</a></h5>
- <div class="date">
- 18 мая 2017</div>
- <div class="rating">
- <div class="star" data-cancel-hint="Cancel current rating!" data-cancel-off="cancel-off.png" data-cancel-on="cancel-on.png" data-cancel-place="left" data-cancel="false" data-classname="VideoPage" data-disable-after-rate="true" data-enable-half="false" data-half-show="true" data-id="1762" data-no-rated-message="I'am readOnly and I haven't rated yet!" data-rating="5.0" data-readonly="true" data-single="false" data-space="false" data-star-count="5" data-star-half="star-half.png" data-star-off="star-off.png" data-star-on="star-on.png" data-star-path="/ratyrate" data-target-format="{score}" data-target-score="4" data-target-text="" data-target-type="hint" data-target="" title="gorgeous"> <input name="score" type="hidden" value="5" readonly=""></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="big center show-more">
- Показать ещё</div>
- </div>
- </div>
- </div>
- <script><br />
- document.body.style.lineHeight = 'normal';<br />
- $(document).ready(function(){<br />
- input = $('.search-tags');<br />
- list = $('.filter-option');<br />
- $('.btn-default').trigger('click');<br />
- $('.star').each( function( index, rate_element ){<br />
- $(rate_element).raty({ readOnly: true, score: $(rate_element).raty('score') });<br />
- });<br />
- $('.search-tags').keypress(function(e){<br />
- if (e.keyCode == 13){<br />
- value = $('.search-tags').val();<br />
- categs = $('.filter-option.pull-left')[0].innerHTML;<br />
- container = $('.cr-content');<br />
- $.ajax({<br />
- type: "GET",<br />
- dataType: 'html',<br />
- url: "/search_videos",<br />
- data: {"tags": value}<br />
- }).done(function(e) {<br />
- container.hide();<br />
- container.before(e);<br />
- container.remove();<br />
- }).fail(function(err) {<br />
- console.log(err);<br />
- });<br />
- }<br />
- });<br />
- $('.search.btn.btn-default').click(function(){<br />
- input.trigger(jQuery.Event( 'keypress', { keyCode: 13, which: 13 }));<br />
- });<br />
- $('.btn-default').click(function(e){</p>
- <p> $('.filter-option')[0].innerHTML='';<br />
- input.val('');<br />
- $('.selected').removeClass('selected');<br />
- input.focus();<br />
- input.trigger(jQuery.Event( 'keypress', { keyCode: 13, which: 13 }));<br />
- });<br />
- });<br />
- </script>
- </div>
- <div id="virtualKeyboard" class="ui-draggable ui-draggable-handle"></div>
- </main>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement