0% found this document useful (0 votes)
10 views3 pages

Prueba 1

The document contains HTML code for a form with inputs for decision, rut, and clave de internet. It also contains JavaScript code to add alt text to images if it is missing.

Uploaded by

simon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views3 pages

Prueba 1

The document contains HTML code for a form with inputs for decision, rut, and clave de internet. It also contains JavaScript code to add alt text to images if it is missing.

Uploaded by

simon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

<!

--<tbody class="list">
@foreach ($disciplines as $discipline)
<tr>
<td>{{$discipline->discipline_id}}</td>
<td>{{$discipline->discipline_name}}</td>
<td>
{{-- texto muy largo --}}
<div class="scroll">
<input pattern='(^[A-Z]{1}[AEIOU]{1}[A-Z]{2}[0-9]{2}(0[1-9]|1[0-2])
(0[1-9]|1[0-9]|2[0-9]|3[0-1])[HM]{1}(AS|BC|BS|CC|CS|CH|CL|CM|DF|DG|GT|GR|HG|JC|MC|
MN|MS|NT|NL|OC|PL|QT|QR|SP|SL|SR|TC|TS|TL|VZ|YN|ZS|NE)[B-DF-HJ-NP-TV-Z]{3}[0-9A-Z]
{1}[0-9]{1}?$)'>
</div>
</td>
</tr>
@endforeach
</tbody>

<style>
.scroll{
height: 90px;
max-width: 450px;
word-break: break-all;
}
</style>
<script>
function isCurp(e){
var for_curp=/(^[A-Z]{1}[AEIOU]{1}[A-Z]{2}[0-9]{2}(0[1-9]|1[0-2])(0[1-9]|1[0-
9]|2[0-9]|3[0-1])[HM]{1}(AS|BC|BS|CC|CS|CH|CL|CM|DF|DG|GT|GR|HG|JC|MC|MN|MS|NT|NL|
OC|PL|QT|QR|SP|SL|SR|TC|TS|TL|VZ|YN|ZS|NE)[B-DF-HJ-NP-TV-Z]{3}[0-9A-Z]{1}[0-9]
{1}$)/;
curp=document.getElementById('CURP').value ;
if(for_curp.test(curp))
{ document.getElementById('CURP_COR').innerHTML='<b>CURP CORRECTA</b>'; }
else
{ document.getElementById('CURP_COR').innerHTML='<b>CURP INVALIDA&lt;</b>'; }
}
</script>-->

<html>
<header>
</header>
<body>
<select id="decision" required>
<optgroup label="Resolucion de la solicitud">
<option value="">--Seleccionar--</option>
<option value="Aprobada">Aprobada</option>
<option value="Rechazada">Rechazada</option>
</optgroup>
</select>

<div class="entradas"><div><div>K</div><div><div>ingresa tu
rut</div><input placeholder= "1111111-1" type="text" id="rut" name="rut" required
minlength="4" maxlength="8" size="10"></div></div>
<div><div>K</div><div><div>Clave de internet</div><input type="text"
id="clave" name="clave" required
minlength="4" maxlength="8" size="10"></div></div>
</div>

<style>
.entradas>div{
height:40px;
width:40%;
min-width:100px;
max-width:200px;
border:1px solid black;
border-radius:20px;
margin:20px;
display:flex;
}

.entradas input{
/*margin-top:20px;*/width: 90%;margin-left:5%;height:20px;border:none;
}

.entradas>div>div:nth-child(1){
display:flex;
justify-content:center;
align-items:center;
width:10%;
}
.entradas>div>div:nth-child(2){
width: 90%;
}
</style>

<script
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<img
src="https://i.pinimg.com/originals/2f/09/14/2f0914f277cbf58d453bb0f86537a56c.jpg"
/>
<script>
$(document).ready(function() {
$("img").each(function(){
console.log($(this).attr('alt'));// ||
evt.target.getAttribute('alt')==null
if($(this).attr("alt") === '' || $(this).attr("alt")==null){
$(this).attr("alt", "contiene una imagen");

}
});
});

</script>

<!--<div class="cont">
<div class="release_date">
<div>Release date</div>
<div>
<div><img src="link imagen fecha" /></div>
<div class="fecha"></div>
</div>
</div>
<div class="genres">
<div>
<div><img src="link imagem genero" /></div>
<div class="nom_genres"></div>
</div>
<div>
<div><img src="link imagem genero" /></div>
<div class="nom_genres"></div>
</div>
</div>
</div>-->

</body>

</html>

You might also like