I have the following code:
<div class="auto" id="auto">
Ocultar
</div>
Could you tell me if the label has any property to hide.
I have the following code:
<div class="auto" id="auto">
Ocultar
</div>
Could you tell me if the label has any property to hide.
Sorry that I have not put code but I have searched and I have not been able to approach the subject. I have a table that consists of: id, name, position, idboss. the latter is included in the same table but I want to make a loop that shows me the hierarchy of each person example: the hierarchy is made up of (from least to most): auditor=>supervisor=>coordinator=>director and the loop What I need is for the immediate boss of each person to bring me to the superior, who in this case is the director; I have put an image with the result of what I want you to consult me.
My question is the following, I am making a Telegram bot with help to the user in various cases. I would like to capture a piece of the message that it sends me to use it as a variable, that is:
switch($mensaje)
case '/tiempo Madrid':
$ciudad="Madrid";
$horas=FALSE;
getTiempo($chatId,$ciudad,$horas);
break;
In this case I would like not to have to write the city directly in the case, but to make a kind of /tiempo $ciudad
, whose variable I $ciudad
can use to call the function getTiempo()
and thus not have to write all the cities of the world one by one as different cases.
That is, something like this:
switch($mensaje)
case '/tiempo $ciudad':
$horas=FALSE;
getTiempo($chatId,$ciudad,$horas);
break;
Thank you very much for the help.
I have the game marker structure, but would like to be able to add, more than one game in progress.
I would like to be able to create a Slider where the next container <div class="item"></div>
passes the other container for certain x
minutes.
How can I implement a very simple simple slider for what I want?
.upcoming-section {
text-align: center;
padding: 93px 0 98px;
}
.upcoming-section .container {
max-width: 900px;
margin: 0 auto;
}
.upcoming-section h2 {
text-align: center;
color: #000;
margin-bottom: 40px;
font-weight: 600;
letter-spacing: 1px;
}
.upcoming-section h4 {
color: #000;
font-size: 15px;
font-weight: 400;
margin: 14px 0 0;
text-transform: uppercase;
}
.upcoming-section span.date {
padding-top: 10px;
font-weight: 500;
font-family: 'Poppins', sans-serif;
font-size: 18px;
}
.upcoming-section span {
display: block;
text-transform: uppercase;
font-size: 15px;
margin-right: 0;
}
.upcoming-section .vs {
color: #fbc02d;
font-size: 25px;
font-weight: 600;
padding: 50px 0;
}
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<div class="upcoming-section">
<div class="container">
<h2>Upcoming Match</h2>
<div id="upcoming" class="carousel">
<div class="item">
<div class="col-md-4 col-sm-4 col-xs-4">
<img src="https://ssl.gstatic.com/onebox/media/sports/logos/9toerdOg8xW4CRhDaZxsyw_96x96.png" alt="">
<h4>Trirsal</h4>
</div>
<div class="col-md-4 col-sm-4 col-xs-4">
<span class="date">JUNE 16, 17:00</span>
<span class="vs">VS</span>
<span>Central Olympic Stadium</span>
</div>
<div class="col-md-4 col-sm-4 col-xs-4">
<img src="https://ssl.gstatic.com/onebox/media/sports/logos/9toerdOg8xW4CRhDaZxsyw_96x96.png" alt="">
<h4>Kapa Club</h4>
</div>
</div>
<div class="item">
<div class="col-md-4 col-sm-4 col-xs-4">
<img src="https://ssl.gstatic.com/onebox/media/sports/logos/9toerdOg8xW4CRhDaZxsyw_96x96.png" alt="">
<h4>Trirsal</h4>
</div>
<div class="col-md-4 col-sm-4 col-xs-4">
<span class="date">JUNE 16, 17:00</span>
<span class="vs">VS</span>
<span>Central Olympic Stadium</span>
</div>
<div class="col-md-4 col-sm-4 col-xs-4">
<img src="https://ssl.gstatic.com/onebox/media/sports/logos/9toerdOg8xW4CRhDaZxsyw_96x96.png" alt="">
<h4>Kapa Club</h4>
</div>
</div>
</div>
</div>
</div>
A simple slider, something like that, how can I create it?
I want to replace all the words with span, my code is as follows:
let written = '';
document.getElementById('test').addEventListener('keyup', function(e) {
var palabra = written;
written += String.fromCharCode(e.which);
if (e.which === 32) {
let text = document.getElementById('test').innerHTML;
console.log(text);
var wordsWithSpan = text.split(' ').map(function(c) {
return '<span class="word">' + c + '</span>';
}).join('');
document.getElementById('test').innerHTML = wordsWithSpan;
}
});
.word {
color: red;
padding-right: 2px;
}
div {
margin: 50px;
}
<div contenteditable="true" id="test">hola mundo tierra</div>
At the moment it only works with the first attempt ( press space bar ), from the second attempt I get the text but with plainspan
text labels .
What I need is to get on nodes not on text.