turkmentv/resources/views/web/layouts/footer.blade.php

329 lines
9.7 KiB
PHP

<script src="{{ asset('assets/js/jquery-2.1.4.min.js')}}"></script>
<script src="{{ asset('assets/js/bootstrap.min.js')}}"></script>
<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>
<script src="{{ asset('assets/hls.min.js')}}"></script>
<script>
setInterval(function () {document.getElementById("nextq").click();}, 4500);
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>
<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()};
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;
}
</script>
<script>
/* 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');
}
}
}
</script>
<script>
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');
}
})
});
</script>
<script>
$(document).ready(function () {
$('#searchId').click(function () {
$('#searchContentId').toggleClass('visible');
});
});
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-145040878-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-145040878-1');
</script>
</body>
</html>