Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminando elementos del index #1

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resources/
107 changes: 72 additions & 35 deletions css/estilos.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,19 @@ header {
.videobg {
position: fixed;
right: 0;
bottom: 0;
bottom: 0;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: 0;

}

.overlay {
position: absolute;
right: 0;
bottom: 0;
min-width: 100%;
min-height: 100%;
width: auto;
Expand All @@ -26,13 +38,13 @@ header {

nav {
color: #000f2f;
padding-top:30px;
padding-bottom:20px;
position:absolute;
top:0;
width:100%;
z-index:1;
padding-top: 30px;
padding-bottom: 20px;
position: absolute;
top: 0;
width: 100%;
z-index: 1;

}

h1 {
Expand All @@ -42,6 +54,12 @@ h1 {
padding: 0px;
}

img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}

.container {
position: absolute;
display: grid;
Expand All @@ -56,7 +74,7 @@ h1 {
min-width: 240px;
max-width: 1920px;


/* background: #D1D1D1; */
}

Expand All @@ -71,39 +89,51 @@ h1 {

.videocontainer0 {
position: absolute;
background: #000010;
top: 113px;
left: 990px;
/* background: #000010; */
top: 200px;
left: 960px;
width: 854px;
height: 480px;
height: 480px;
max-height: 480px;
border-radius: 5px;
margin: 7px 7px;
border: 8px solid rgba(255, 255, 255, 0.8);
box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 5);
}

.videocontainer1,.videocontainer2, .videocontainer3 {
position: absolute;
top: 113px;
left: 61px;
.videocontainer1,
.videocontainer2,
.videocontainer3,
.videocontainer4,
.videocontainer5,
.videocontainer6 {
/* resize: both; */
overflow:hidden;
position:absolute;
top: 200px;
left: 80px;
min-width: 352px;
min-height: 240px;
width: 854px;
height: 480px;
max-height: 480px;
height: 480px;
max-width: 960px;
max-height: 560px;
/* aspect-ratio: 16/9; */
border-radius: 5px;
margin: 7px 7px;
border: 8px solid rgba(255, 255, 255, 0.8);
box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 5);

}



.videocontainer1con2y3 {
position: absolute;
top: 56px;
left: 113px;
width: 640px;
height: 360px;
top: 100px;
left: 300px;
width: 550px;
height: 310px;
border-radius: 5px;
margin: 7px 7px;
border: 8px solid rgba(255, 255, 255, 0.8);
Expand All @@ -112,10 +142,10 @@ h1 {

.videocontainer2con3 {
position: absolute;
top: 56px;
left: 113px;
width: 640px;
height: 360px;
top: 100px;
left: 300px;
width: 550px;
height: 310px;
border-radius: 5px;
margin: 7px 7px;
border: 8px solid rgba(255, 255, 255, 0.8);
Expand All @@ -124,10 +154,10 @@ h1 {

.videocontainer2con1 {
position: absolute;
top: 472px;
left: 113px;
width: 640px;
height: 360px;
top: 450px;
left: 300px;
width: 550px;
height: 310px;
border-radius: 5px;
margin: 7px 7px;
border: 8px solid rgba(255, 255, 255, 0.8);
Expand All @@ -136,12 +166,19 @@ h1 {

.videocontainer3con1y2 {
position: absolute;
top: 472px;
left: 113px;
width: 640px;
height: 360px;
top: 450px;
left: 300px;
width: 550px;
height: 310px;
border-radius: 5px;
margin: 7px 7px;
border: 8px solid rgba(255, 255, 255, 0.8);
box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 5);
}


img {
max-width: 100%;
max-height: 100%;
object-fit: cover;
}
31 changes: 31 additions & 0 deletions getbackground.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php
$dir = './videobg/';
// Verificamos si existe directorio
if (file_exists($dir) && is_dir($dir) ) {

// Escanea todos los archivos del directorio
$scan_arr = scandir($dir);
// Excluimos el . y el ..
$files_arr = array_diff($scan_arr, array('.','..') );

// Get each files of our directory with line break
foreach ($files_arr as $file) {
//Get the file path
$file_path = $dir.$file;
// Get the file extension
$file_ext = pathinfo($file_path, PATHINFO_EXTENSION);
if ($file_ext=="jpg" || $file_ext=="png" || $file_ext=="JPG" || $file_ext=="PNG"|| $file_ext=="mp4"|| $file_ext=="MP4") {
echo $file_path.",";
}

}
}
else {
echo "Directorio no existe";
}





?>
23 changes: 14 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,25 @@
<meta charset="UTF-8">

<title>MAS TV</title>
<script src="./js/jquery-3.6.1.js"></script>
<script src="./js/jquery-3.6.1.min.js"></script>
<script src="./js/ovenplayer.js"></script>
<script src="./js/hls.js"></script>

<!-- <link rel="stylesheet" href="./css/bootstrap.min.css"> -->
<link rel="stylesheet" href="./css/estilos.css">
</head>

<body>
<video class="videobg" autoplay="autoplay" muted="muted" loop="loop">
<source src="./bg.mp4" type="video/mp4">
<source src="" type="video/mp4">
</video>

<!-- OVERLAY DEMO Y ZONA SEGURA-->
<!-- <img class="overlay" src="./overlay.png" alt="#"> -->

</head>

<body>


<header>

<!-- <nav>
Expand All @@ -31,7 +37,7 @@

<div class="container" id="contenedorPrincipal">

<div class="videocontainer1">
<!-- <div class="videocontainer1">
<div id="reproductor1"></div>
</div>

Expand All @@ -41,11 +47,10 @@

<div class="videocontainer3">
<div id="reproductor3"></div>
</div>
</div> -->

<div class="videocontainer0">
<img src="./studio.jpg" width="854" height="480"></img>
<div id="reproductor100"></div>
<div class="videocontainer0" id="dummy" hidden="hidden">
<img src="./rw.png" style='height: 100%; width: 100%; object-fit: cover'></img>
</div>


Expand Down
Loading