257 lines
10 KiB
PHP
257 lines
10 KiB
PHP
@extends('web.layouts.app')
|
|
@section('after_styles')
|
|
<link rel="stylesheet" href="https://user12658.clients-cdnnow.ru/assets/css/simple-line-icons.css">
|
|
@endsection
|
|
|
|
@if(!empty($pageSliders) && $pageSliders->count()>0)
|
|
@section('content')
|
|
<div class="tpl-block-list tpl-component-mahslider">
|
|
<div class="container-fluid header-carousel mahabat">
|
|
<div class="row">
|
|
<div class="slider-container">
|
|
<div class="slider-content">
|
|
@foreach($pageSliders as $pageSlider)
|
|
<div class="slider-single">
|
|
<img class="slider-single-image" src="https://user12658.clients-cdnnow.ru/{{ $pageSlider->img_url }}" />
|
|
<div class="black-bg" style="z-index: -12;position: absolute; top: 0; background-color: black; height: 100%; width: 100%; margin-left: 50%; display: none;"></div>
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
<!-- NEXT PREV buttons -->
|
|
<a class="slider-left" href="javascript:void(0);"><i class="ti-arrow-circle-left"></i></a>
|
|
<a id="nextq" class="slider-right" href="javascript:void(0);"><i class="ti-arrow-circle-right"></i></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|
|
@endif
|
|
|
|
@section('content2')
|
|
<div class="container wrapper " style="{{ $pageSliders->count()>0 ? 'margin-top:38%' : 'margin-top: 5%' }}">
|
|
<div class="row" style="padding-top: 0">
|
|
<div class="pages-tree">
|
|
<ol class="breadcrumb" style="background: none">
|
|
<li><a href="{{ route ('homeWeb') }}" class='fontRegular'>Baş Sahypa</a></li>
|
|
<li class="active"><span class='fontRegular'>{{ $page->title}}</span></li>
|
|
</ol>
|
|
</div>
|
|
|
|
<div class="container mahabat">
|
|
<div class="row">
|
|
<div class="tpl-block-list tpl-component-aboutmah" id="nc-block-99cb3c351687119504bfe255cd614ba0">
|
|
<div id="aboutmah"></div>
|
|
{{-- <h2><a href="" class="fontSemiBold">"{{ $page->group == 0 ? $page->title : $group->name}}" <i class="fa fa-play-circle-o"></i></a></h2>--}}
|
|
@if(!empty($page->description))
|
|
<div class="mahabat-content">
|
|
{!! $page -> description !!}
|
|
</div>
|
|
@endif
|
|
</div>
|
|
|
|
<div class="tpl-block-list tpl-component-bestadv tpl-template-212" id="nc-block-65830ee3ad0cadee448c685324b10d4a">
|
|
<div id="bestadv"></div>
|
|
<div class="tpl-block-list tpl-component-bestadv tpl-template-213" id="nc-block-c11f6de2ee5c0ef1304c940bc6341eb2">
|
|
|
|
<div class="container best-adver">
|
|
<div class="row">
|
|
|
|
@if(!empty($shows) && $shows->count()>0)
|
|
@include('web.partials.shows')
|
|
@endif
|
|
|
|
@if(!empty($advs) && $advs->count()>0)
|
|
@include('web.partials.advs')
|
|
@endif
|
|
|
|
{{--@if(!empty($programmes) && $programmes->count()>0)--}}
|
|
{{--@include('web.partials.programmes')--}}
|
|
{{--@endif--}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@if(!empty($topheaderadvs))
|
|
<div class="tpl-block-list tpl-component-bottomadv" id="nc-block-6defb4ff5eae82edb30bd8e923b820f1"><div id="bottomadv"></div><div class="container kesde" style="width: 100%; margin-top: 30px">
|
|
<a href="{{$topheaderadvs -> url_bottom}}">
|
|
<img src="https://user12658.clients-cdnnow.ru/{{$topheaderadvs->bottom_img_url}}" alt="{{$topheaderadvs->alt_bottom}}" style="width: 100%">
|
|
</a>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
@endsection
|
|
@section('after_scripts')
|
|
<script src="https://user12658.clients-cdnnow.ru/assets/hls.min.js"></script>
|
|
<script>
|
|
var urlq = new URL(window.location.href);
|
|
var query_string = urlq.search;
|
|
var search_params = new URLSearchParams(query_string);
|
|
var c = search_params.get('from');
|
|
|
|
if(!c){
|
|
c = 1
|
|
}else{
|
|
c
|
|
}
|
|
|
|
|
|
var video_source = 'https://alpha.tv.online.tm/legacyhls/ch00'+ c +'.m3u8';
|
|
if(Hls.isSupported()) {
|
|
var video = document.getElementById('webtv-video');
|
|
var hls = new Hls();
|
|
hls.loadSource(video_source);
|
|
hls.attachMedia(video);
|
|
hls.on(Hls.Events.MANIFEST_PARSED,function() {
|
|
video.play();
|
|
});
|
|
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
|
|
video.src = video_source;
|
|
video.addEventListener('canplay',function() {
|
|
video.play();
|
|
});
|
|
}
|
|
</script>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
function setupVar1(){
|
|
|
|
var video_source = 'https://alpha.tv.online.tm/legacyhls/ch001.m3u8';
|
|
|
|
if(Hls.isSupported()) {
|
|
var video = document.getElementById('webtv-video');
|
|
var hls = new Hls();
|
|
hls.loadSource(video_source);
|
|
hls.attachMedia(video);
|
|
hls.on(Hls.Events.MANIFEST_PARSED,function() {
|
|
video.play();
|
|
});
|
|
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
|
|
video.src = video_source;
|
|
video.addEventListener('canplay',function() {
|
|
video.play();
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
function setupVar2(){
|
|
var video_source = 'https://alpha.tv.online.tm/legacyhls/ch002.m3u8';
|
|
|
|
if(Hls.isSupported()) {
|
|
var video = document.getElementById('webtv-video');
|
|
var hls = new Hls();
|
|
hls.loadSource(video_source);
|
|
hls.attachMedia(video);
|
|
hls.on(Hls.Events.MANIFEST_PARSED,function() {
|
|
video.play();
|
|
});
|
|
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
|
|
video.src = video_source;
|
|
video.addEventListener('canplay',function() {
|
|
video.play();
|
|
});
|
|
}
|
|
}
|
|
function setupVar3(){
|
|
var video_source = 'https://alpha.tv.online.tm/legacyhls/ch003.m3u8';
|
|
|
|
if(Hls.isSupported()) {
|
|
var video = document.getElementById('webtv-video');
|
|
var hls = new Hls();
|
|
hls.loadSource(video_source);
|
|
hls.attachMedia(video);
|
|
hls.on(Hls.Events.MANIFEST_PARSED,function() {
|
|
video.play();
|
|
});
|
|
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
|
|
video.src = video_source;
|
|
video.addEventListener('canplay',function() {
|
|
video.play();
|
|
});
|
|
}
|
|
}
|
|
function setupVar4(){
|
|
var video_source = 'https://alpha.tv.online.tm/legacyhls/ch007.m3u8';
|
|
|
|
if(Hls.isSupported()) {
|
|
var video = document.getElementById('webtv-video');
|
|
var hls = new Hls();
|
|
hls.loadSource(video_source);
|
|
hls.attachMedia(video);
|
|
hls.on(Hls.Events.MANIFEST_PARSED,function() {
|
|
video.play();
|
|
});
|
|
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
|
|
video.src = video_source;
|
|
video.addEventListener('canplay',function() {
|
|
video.play();
|
|
});
|
|
}
|
|
}
|
|
function setupVar5(){
|
|
var video_source = 'https://alpha.tv.online.tm/legacyhls/ch005.m3u8';
|
|
|
|
if(Hls.isSupported()) {
|
|
var video = document.getElementById('webtv-video');
|
|
var hls = new Hls();
|
|
hls.loadSource(video_source);
|
|
hls.attachMedia(video);
|
|
hls.on(Hls.Events.MANIFEST_PARSED,function() {
|
|
video.play();
|
|
});
|
|
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
|
|
video.src = video_source;
|
|
video.addEventListener('canplay',function() {
|
|
video.play();
|
|
});
|
|
}
|
|
}
|
|
function setupVar6(){
|
|
var video_source = 'https://alpha.tv.online.tm/legacyhls/ch006.m3u8';
|
|
|
|
if(Hls.isSupported()) {
|
|
var video = document.getElementById('webtv-video');
|
|
var hls = new Hls();
|
|
hls.loadSource(video_source);
|
|
hls.attachMedia(video);
|
|
hls.on(Hls.Events.MANIFEST_PARSED,function() {
|
|
video.play();
|
|
});
|
|
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
|
|
video.src = video_source;
|
|
video.addEventListener('canplay',function() {
|
|
video.play();
|
|
});
|
|
}
|
|
}
|
|
function setupVar7(){
|
|
var video_source = 'https://alpha.tv.online.tm/legacyhls/ch004.m3u8';
|
|
|
|
if(Hls.isSupported()) {
|
|
var video = document.getElementById('webtv-video');
|
|
var hls = new Hls();
|
|
hls.loadSource(video_source);
|
|
hls.attachMedia(video);
|
|
hls.on(Hls.Events.MANIFEST_PARSED,function() {
|
|
video.play();
|
|
});
|
|
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
|
|
video.src = video_source;
|
|
video.addEventListener('canplay',function() {
|
|
video.play();
|
|
});
|
|
}
|
|
}
|
|
</script>
|
|
@endsection
|