home page modf

This commit is contained in:
merdan 2020-06-05 12:53:25 +05:00
parent 11af4239a6
commit 12e284ef8f
9 changed files with 240 additions and 214 deletions

View File

@ -1,55 +0,0 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Mail;
use App\Mail\SendMail;
use App\Models\Menu;
use App\Models\Slider;
use App\Models\News;
use App\Models\Show;
use App\Models\PageSlider;
use App\Models\Description;
use App\Models\Advertisement;
use App\Models\Pagead;
use App\Models\Page;
use App\Models\Topheaderadv;
class WebController extends Controller
{
// public function contacts(){
// return view('web.contact')->with([
// 'title' => 'Turkmen Tv | Habarlashyk',
// 'keywords' => '',
// 'meta_description' => '',
// ]);
// }
// public function habarlashyk(){
// return view('web.habarlashyk')->with([
// 'title' => 'Turkmen Tv | Habarlashyk',
// 'keywords' => '',
// 'meta_description' => '',
// ]);
// }
// public function send(Request $request){
// $data = array(
// 'name' => $request->name,
// 'email' => $request->email,
// 'subject' => $request->subject,
// 'message' => $request->message
// );
// Mail::to('mahabatmudirligi@gmail.com')->send(new SendMail($data));
// return back()->with('success', 'Hatyňyz Üstünlikli ugradyldy.');
// }
}

View File

@ -35,7 +35,7 @@ class WebNewController extends Controller
$topheaderadvs = Topheaderadv::inRandomOrder()->first();
return view('web.mainWeb')->with([
return view('web.layouts.home')->with([
'sliders' => $sliders,
'news' => $news,
'showTop3' => $showTop3,
@ -50,5 +50,5 @@ class WebNewController extends Controller
]);
}
}

View File

@ -948,4 +948,10 @@ body {
transform: translateY(-50%);
padding: 20px 15px;
margin-left: -2px;
}
}
.sliderPageq{position: relative}
.slider-containerq{width:100%;margin:0;top:0;left:0;height:auto}
.slider-contentq{position:relative;left:50%;top:50%;width:59%;height:60%;transform:translate(-50%, -50%)}
.slider-singleq{position:absolute;z-index:0;left:0;top:0;width:100%;height:auto;transition:z-index 0ms 250ms;}
.slider-leftq{position:absolute;z-index:3;display:block;right:85%;top:50%;color:#ffffff;transform:translateY(-50%);padding:20px 15px;margin-right:-2px;}
.slider-rightq{position:absolute;z-index:3;display:block;left:85%;top:50%;color:#ffffff;transform:translateY(-50%);padding:20px 15px;margin-left:-2px}

View File

@ -1607,3 +1607,64 @@ div.container.best-works > div > div{
padding: 0;
margin: -10px;
}
.fontLight{font-family:SourceSans}
.fontRegular{font-family:SourceSansRegular}
.fontSemiBold{font-family:SourceSansSemiBold}
.fontBold{font-family:SourceSansBold}
.fontBold0{font-family:SourceSansBold0}
#owl-demo>div.owl-wrapper-outer>div>div>div>div{position:absolute!important;top:50%!important;left:44%!important;transform:translate(-50%, -50%)!important}
.carousel-caption {right:20%;left:20%;padding-bottom:30px;flex-wrap:wrap;width: 65%!important}
.aq{color:white}.aq:hover{color:white;}
#owl-demo-populars .item{padding: 0 0 5px 0;margin:5px;border-radius:3px;text-align:center;box-shadow:1px 1px 10px #dddddd,-1px -1px 10px #dddddd,-1px 1px 10px #dddddd,1px -1px 10px #dddddd}
#owl-demo-populars .item .bottom-part{text-align:left;padding:5px 20px}
.most-populars .bottom-part p{font-size:24px}
.tv-projects-videos .bottom-part p{font-size:24px;}
div.container.news-releases>div>div>div>a{font-size:24px;}
.go-top{bottom:2em;right:2em}.view-counter{font-size:24px!important}
span.view-counter-most-popular{font-size:24px!important;}
div.container.news-releases>div>div>div>span{font-size:24px;}
div.container.most-populars.live>div>div>div>div:nth-child(1)>div>div>a.play-button>i{font-size:24px}
div.container.most-populars.live>div>div>div>div:nth-child(1)>div>div>a.download-button>i{font-size:24px}
.best-movies .download-button{margin-right:45px}
div.container.best-movies>div>div:nth-child(1)>div>div>a.play-button{font-size:24px}
div.container.best-movies>div>div:nth-child(1)>div>div>a.download-button{font-size:24px}
div.container.best-adver>div>div:nth-child(1)>div>div>a.play-button{font-size:24px}
div.container.best-adver>div>div:nth-child(1)>div>div>a.download-button{font-size:24px}
div.container.best-adver>div>div:nth-child(1)>div>div>a.download-button{margin-right:45px}
.proactive .black-bg{display:block!important;width:150%!important;margin-left:0!important}
.preactive .black-bg{display:block!important;width:50%!important;margin-left:-50%!important}
#cal td{height:40px}.best-movies .top-part:hover .best-movies-overlay{opacity:0.8}
body>header>div.container-fluid.header-menu.mobile{background-image:none}
body>header>div.container-fluid.header-menu.mobile>div>ul>li:nth-child(2)>div>ul>a>li{text-align:left}
body>header>div.container-fluid.header-menu.mobile>div>ul>li:nth-child(4)>div>ul>a>li{text-align:left}
body>header>div.container-fluid.header-menu.desktop>div>div.header-menu-bottom-part>ul.bottom-right-menu.pull-right > div{top:-7px}
body>header>div.container-fluid.header-menu.desktop>div>div.header-menu-bottom-part>ul.bottom-right-menu.pull-right > li:nth-child(1){margin-top:4px}
div.container.kesde{margin-top:100px!important}
footer{background-image:none!important;background-color:#2b9996}
div.container.tv-projects-releases.desktop-view{margin-bottom:100px!important}
div.container.tv-projects-releases.desktop-view>div>div>div>div>div.main-two.col-lg-12.col-md-12.col-sm-12.col-xs-12 > div > div:nth-child(1){padding-left:0}
div.container.tv-projects-releases.desktop-view>div>div>div>div>div.main-two.col-lg-12.col-md-12.col-sm-12.col-xs-12 > div > div:nth-child(2){padding-right:0}
div.other-tv-projects>div:nth-child(3){padding-left:0!important;padding-right:14px!important}
div.other-tv-projects>div:nth-child(4){padding-right:7px!important;padding-left:7px!important}
div.other-tv-projects>div:nth-child(5){padding-right:0!important;padding-left:14px!important}
@media only screen and (max-width: 1440px) {
.most-populars .bottom-part p{font-size: 16px}
.tv-projects-videos .bottom-part p{font-size: 16px}
div.container.news-releases > div > div > div > a{font-size: 16px}
.view-counter{font-size: 16px !important}
span.view-counter-most-popular{font-size: 16px !important}
div.container.news-releases > div > div > div > span{font-size: 16px}
div.container.most-populars.live > div > div > div > div:nth-child(1) > div > div > a.play-button > i{font-size: 16px}
div.container.most-populars.live > div > div > div > div:nth-child(1) > div > div > a.download-button > i{font-size: 16px}
.best-movies .download-button{margin-right: 35px}
div.container.best-movies > div > div:nth-child(1) > div > div > a.play-button{font-size: 16px}
div.container.best-movies > div > div:nth-child(1) > div > div > a.download-button{font-size: 16px}
div.container.best-adver > div > div:nth-child(1) > div > div > a.play-button{font-size: 16px}
div.container.best-adver > div > div:nth-child(1) > div > div > a.download-button{font-size: 16px}
div.container.best-adver > div > div:nth-child(1) > div > div > a.download-button{margin-right: 35px}
}
html{scroll-behavior: smooth}
.overlay{position:absolute;top:10px;bottom:0;left:10px;right:0;height:calc(100% - 20px);width: calc(100% - 20px);opacity:0;transition: .5s ease;background-color:#000000}
#searchContentId{display:none!important}
#searchContentId.visible{display:block!important}

View File

@ -46,8 +46,35 @@ $(document).ready(function() {
owltime.trigger('owl.prev');
})
var owlpop = $("#owl-demo-populars");
owlpop.owlCarousel({
itemsCustom : [
[0, 1],
[450, 1],
[600, 2],
[700, 2],
[1000, 10],
[1200, 12],
[1400, 13],
[1600, 15]
],
navigation : true,
pagination : false,
});
// Custom Navigation Events
$(".next-populars").click(function(){
owlpop.trigger('owl.next');
});
$(".prev-populars").click(function(){
owlpop.trigger('owl.prev');
});
});
function myFunction(x) {
x.classList.toggle("change");
}
}

View File

@ -1,4 +1,24 @@
@include('web.layouts.header')
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{{ $title }}</title>
<meta name='keywords' content='{{ $keywords }}' />
<meta name='description' content='{{ $meta_description }}' />
<link rel="shortcut icon" href="{{ asset ('assets/favicon.ico')}}">
<link rel="stylesheet" href="{{ asset ('assets/css/bootstrap.css') }}">
<link rel="stylesheet" href="{{ asset ('assets/css/font-awesome.min.css')}}">
@yield('after_styles')
<link rel="stylesheet" href="{{ asset ('assets/css/style.css')}}">
<link rel="stylesheet" href="{{ asset ('assets/css/media.css')}}">
<link rel="stylesheet" href="{{ asset ('assets/css/menu.css')}}">
<link rel="stylesheet" href="{{ asset ('assets/css/menumedia.css')}}">
</head>
<body>
@include('web.layouts.headerMenu')
@yield('content')
@ -6,4 +26,89 @@
@yield('content3')
@include('web.layouts.footerMenu')
@include('web.layouts.footer')
<script src="{{ asset('assets/js/jquery-2.1.4.min.js')}}"></script>
<script src="{{ asset('assets/js/bootstrap.min.js')}}"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-145040878-1"></script>
<script>
////// scroll button
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
document.getElementById("myBtn").style.display = "block";
} else {
document.getElementById("myBtn").style.display = "none";
}
}
function topFunction() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
//////drop down
/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */
function myDropdownFunc() {
document.getElementById("myDropdown").classList.toggle("show");
}
// Close the dropdown if the user clicks outside of it
window.onclick = function(e) {
if (!e.target.matches('.dropbtn')) {
var myDropdown = document.getElementById("myDropdown");
if (myDropdown.classList.contains('show')) {
myDropdown.classList.remove('show');
}
}
}
jQuery(document).ready(function (e) {
function t(t) {
e(t).bind("click", function (t) {
t.preventDefault();
e(this).parent().fadeOut()
})
}
e(".dropdown-toggle").click(function () {
var t = e(this).parents(".button-dropdown").children(".dropdown-menu").is(":hidden");
e(".button-dropdown .dropdown-menu").hide();
e(".button-dropdown .dropdown-toggle").removeClass("activee");
e(".button-dropdown").css('background-color', '#187f7e');
e(".button-dropdown .dropdown-toggle *").css('color', '#ffffff');
if (t) {
e(this).parents(".button-dropdown").children(".dropdown-menu").toggle().parents(".button-dropdown").children(".dropdown-toggle").addClass("activee");
e(this).parents(".button-dropdown").children(".dropdown-menu").toggle().parents(".button-dropdown").css('background-color', '#ffffff');
e(this).parents(".button-dropdown").children(".dropdown-menu").toggle().parents(".button-dropdown").children(".dropdown-toggle").children("*").css('color', '#187f7e');
}
});
e(document).bind("click", function (t) {
var n = e(t.target);
if (!n.parents().hasClass("button-dropdown")) e(".button-dropdown .dropdown-menu").hide();
});
e(document).bind("click", function (t) {
var n = e(t.target);
if (!n.parents().hasClass("button-dropdown")) {
e(".button-dropdown .dropdown-toggle").removeClass("activee");
e(".button-dropdown").css('background-color', '#187f7e');
e(".button-dropdown .dropdown-toggle *").css('color', '#ffffff');
}
})
});
///// google
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-145040878-1');
//////search
$(document).ready(function () {
$('#searchId').click(function () {
$('#searchContentId').toggleClass('visible');
});
});
</script>
@yield('after_scripts')
</body>
</html>

View File

@ -9,16 +9,16 @@
<script>
var urlq = new URL(window.location.href);
var query_string = urlq.search;
var search_params = new URLSearchParams(query_string);
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');
@ -40,11 +40,11 @@
<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();
@ -58,13 +58,13 @@
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();
@ -78,11 +78,11 @@
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();
@ -96,11 +96,11 @@
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();
@ -114,11 +114,11 @@
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();
@ -132,11 +132,11 @@
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();
@ -150,11 +150,11 @@
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();
@ -168,74 +168,10 @@
video.addEventListener('canplay',function() {
video.play();
});
}
}
}
</script>
<script>
$(document).ready(function() {
$("#owl-demo").owlCarousel({
pagination: false,
navigation : true, // Show next and prev buttons
slideSpeed : 3,
paginationSpeed : 3,
singleItem:true,
autoPlay: true,
stopOnHover: true,
// "singleItem:true" is a shortcut for:
// items : 1,
// itemsDesktop : false,
// itemsDesktopSmall : false,
// itemsTablet: false,
// itemsMobile : false
});
// Custom Navigation Events
$(".next").click(function(){
owl.trigger('owl.next');
});
$(".prev").click(function(){
owl.trigger('owl.prev');
});
var owlpop = $("#owl-demo-populars");
owlpop.owlCarousel({
itemsCustom : [
[0, 1],
[450, 1],
[600, 2],
[700, 2],
[1000, 10],
[1200, 12],
[1400, 13],
[1600, 15]
],
navigation : true,
pagination : false,
});
// Custom Navigation Events
$(".next-populars").click(function(){
owlpop.trigger('owl.next');
});
$(".prev-populars").click(function(){
owlpop.trigger('owl.prev');
});
});
</script>
<script>
window.onscroll = function() {scrollFunction()};
@ -323,4 +259,4 @@ window.onclick = function(e) {
gtag('config', 'UA-145040878-1');
</script>
</body>
</html>
</html>

View File

@ -24,73 +24,6 @@
<link rel="stylesheet" href="{{ asset ('assets/css/menu.css')}}">
<link rel="stylesheet" href="{{ asset ('assets/css/menumedia.css')}}">
<script src="{{ asset ('assets/js/pureJSCalendar.js')}}"></script>
<style>
.fontLight{font-family:SourceSans}
.fontRegular{font-family:SourceSansRegular}
.fontSemiBold{font-family:SourceSansSemiBold}
.fontBold{font-family:SourceSansBold}
.fontBold0{font-family:SourceSansBold0}
#owl-demo>div.owl-wrapper-outer>div>div>div>div{position:absolute!important;top:50%!important;left:44%!important;transform:translate(-50%, -50%)!important}
.carousel-caption {right:20%;left:20%;padding-bottom:30px;flex-wrap:wrap;width: 65%!important}
.aq{color:white}.aq:hover{color:white;}
#owl-demo-populars .item{padding: 0 0 5px 0;margin:5px;border-radius:3px;text-align:center;box-shadow:1px 1px 10px #dddddd,-1px -1px 10px #dddddd,-1px 1px 10px #dddddd,1px -1px 10px #dddddd}
#owl-demo-populars .item .bottom-part{text-align:left;padding:5px 20px}
.most-populars .bottom-part p{font-size:24px}
.tv-projects-videos .bottom-part p{font-size:24px;}
div.container.news-releases>div>div>div>a{font-size:24px;}
.go-top{bottom:2em;right:2em}.view-counter{font-size:24px!important}
span.view-counter-most-popular{font-size:24px!important;}
div.container.news-releases>div>div>div>span{font-size:24px;}
div.container.most-populars.live>div>div>div>div:nth-child(1)>div>div>a.play-button>i{font-size:24px}
div.container.most-populars.live>div>div>div>div:nth-child(1)>div>div>a.download-button>i{font-size:24px}
.best-movies .download-button{margin-right:45px}
div.container.best-movies>div>div:nth-child(1)>div>div>a.play-button{font-size:24px}
div.container.best-movies>div>div:nth-child(1)>div>div>a.download-button{font-size:24px}
div.container.best-adver>div>div:nth-child(1)>div>div>a.play-button{font-size:24px}
div.container.best-adver>div>div:nth-child(1)>div>div>a.download-button{font-size:24px}
div.container.best-adver>div>div:nth-child(1)>div>div>a.download-button{margin-right:45px}
.proactive .black-bg{display:block!important;width:150%!important;margin-left:0!important}
.preactive .black-bg{display:block!important;width:50%!important;margin-left:-50%!important}
#cal td{height:40px}.best-movies .top-part:hover .best-movies-overlay{opacity:0.8}
body>header>div.container-fluid.header-menu.mobile{background-image:none}
body>header>div.container-fluid.header-menu.mobile>div>ul>li:nth-child(2)>div>ul>a>li{text-align:left}
body>header>div.container-fluid.header-menu.mobile>div>ul>li:nth-child(4)>div>ul>a>li{text-align:left}
body>header>div.container-fluid.header-menu.desktop>div>div.header-menu-bottom-part>ul.bottom-right-menu.pull-right > div{top:-7px}
body>header>div.container-fluid.header-menu.desktop>div>div.header-menu-bottom-part>ul.bottom-right-menu.pull-right > li:nth-child(1){margin-top:4px}
div.container.kesde{margin-top:100px!important}
footer{background-image:none!important;background-color:#2b9996}
div.container.tv-projects-releases.desktop-view{margin-bottom:100px!important}
div.container.tv-projects-releases.desktop-view>div>div>div>div>div.main-two.col-lg-12.col-md-12.col-sm-12.col-xs-12 > div > div:nth-child(1){padding-left:0}
div.container.tv-projects-releases.desktop-view>div>div>div>div>div.main-two.col-lg-12.col-md-12.col-sm-12.col-xs-12 > div > div:nth-child(2){padding-right:0}
div.other-tv-projects>div:nth-child(3){padding-left:0!important;padding-right:14px!important}
div.other-tv-projects>div:nth-child(4){padding-right:7px!important;padding-left:7px!important}
div.other-tv-projects>div:nth-child(5){padding-right:0!important;padding-left:14px!important}
@media only screen and (max-width: 1440px) {
.most-populars .bottom-part p{font-size: 16px}
.tv-projects-videos .bottom-part p{font-size: 16px}
div.container.news-releases > div > div > div > a{font-size: 16px}
.view-counter{font-size: 16px !important}
span.view-counter-most-popular{font-size: 16px !important}
div.container.news-releases > div > div > div > span{font-size: 16px}
div.container.most-populars.live > div > div > div > div:nth-child(1) > div > div > a.play-button > i{font-size: 16px}
div.container.most-populars.live > div > div > div > div:nth-child(1) > div > div > a.download-button > i{font-size: 16px}
.best-movies .download-button{margin-right: 35px}
div.container.best-movies > div > div:nth-child(1) > div > div > a.play-button{font-size: 16px}
div.container.best-movies > div > div:nth-child(1) > div > div > a.download-button{font-size: 16px}
div.container.best-adver > div > div:nth-child(1) > div > div > a.play-button{font-size: 16px}
div.container.best-adver > div > div:nth-child(1) > div > div > a.download-button{font-size: 16px}
div.container.best-adver > div > div:nth-child(1) > div > div > a.download-button{margin-right: 35px}
}
html{scroll-behavior: smooth}
.sliderPageq{position: relative}
.slider-containerq{width:100%;margin:0;top:0;left:0;height:auto}
.slider-contentq{position:relative;left:50%;top:50%;width:59%;height:60%;transform:translate(-50%, -50%)}
.slider-singleq{position:absolute;z-index:0;left:0;top:0;width:100%;height:auto;transition:z-index 0ms 250ms;}
.slider-leftq{position:absolute;z-index:3;display:block;right:85%;top:50%;color:#ffffff;transform:translateY(-50%);padding:20px 15px;margin-right:-2px;}
.slider-rightq{position:absolute;z-index:3;display:block;left:85%;top:50%;color:#ffffff;transform:translateY(-50%);padding:20px 15px;margin-left:-2px}
.overlay{position:absolute;top:10px;bottom:0;left:10px;right:0;height:calc(100% - 20px);width: calc(100% - 20px);opacity:0;transition: .5s ease;background-color:#000000}
#searchContentId{display:none!important}
#searchContentId.visible{display:block!important}
</style>
</head>
<body onload="pureJSCalendar.open('dd.MM.yyyy', 0, 0, 1, '2018-5-5', '2019-8-20', 'txtTest', 20)">

View File

@ -1,3 +1,11 @@
@extends('web.layouts.app')
@section('after_styles')
<link rel="stylesheet" href="{{ asset ('assets/css/simple-line-icons.css')}}">
<link rel="stylesheet" href="{{ asset ('assets/libs/owl/owl-carousel/owl.carousel.css')}}">
<link rel="stylesheet" href="{{ asset ('assets/libs/owl/owl-carousel/owl.theme.css')}}">
<link rel="stylesheet" href="{{ asset ('assets/css/3dslider-style.css')}}">
@endsection
@section('content')
<div class="tpl-block-list tpl-component-slider" id="nc-block-379f70cfb1d929103a499f6c117c4222">
<style>
#owl-demo .item .carousel-caption p {
@ -246,4 +254,9 @@
</div>
</div>
</div>
@endsection
@section('after_scripts')
<script src="{{ asset('assets/libs/owl/owl-carousel/owl.carousel.js')}}"></script>
<script src="{{ asset('assets/js/index.js')}}"></script>
<script src="{{ asset('assets/js/scripts.js')}}"></script>
@endsection