-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpaginawebgabysphotographyweb.js
154 lines (123 loc) · 3.64 KB
/
paginawebgabysphotographyweb.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
alert("esto en la pagina de fotografia ");
var Mesaje1=" bienvenidos para mas informacion ";
Mesaje1=Mesaje1.toLowerCase();
alert(Mesaje1);
function saludar (msj) {
alert(msj)
// body...
}
function ejecultarsaludar(saludar) {
alert("bienvenidos a mi paginas ")
// body...
}
function fotografia(msj) {
// body...
}
function ejecultarfotografia() {
alert("para mas contrataciones ");
// body...
}
function siguente(msj) {
// body...
}
function ejecultarsiguente() {
alert("para continuar con la informacion");
// body...
}
var result = confirm("Do you really want to leave this page?");
if (result == true) {
alert("Thanks for visiting");
}
else {
alert("Thanks for staying with us");
}
function Myfuncion(){
saludar()
var nombre=document.getElementById('nombre').value;
var apellido=document.getElementById('apellido').value;
var telefono =document.getElementById('telefono').value;
var cedula=document.getElementById('cedula').value;
var comentarios = document.getElementById('comentarios').value;
var email=document.getElementById('email').value;
if(nombre ==""||nombre==null){
alert("debe completar el nombre ");
}
if (apellido ==""||apellido==null) {
alert("debe completar el apellido");
}
if (telefono ==""||telefono==null){
alert("debe completar el Telefono ")
}
if (email ==""||email==null) {
alert("debe completar el email");
}
if (cedula ==""||cedula==null) {
alert("debe completar la cedula ");
}
if (comentarios ==""||comentarios==null) {
alert("debe completar los comentarios");
}
function saludar(){
alert("debe completar toda la informacion para poder enviar sus consultas o dudas y tiene que estar con su informacion veradadera ");
}
}
function openModal(){
document.getElementById('myModal').style.display = "block";
}
function closeModal() {
document.getElementById('myModal').style.display = "none";
}
var slideIndex = 1;
showSlides(slideIndex);
function plusSlides(n) {
showSlides(slideIndex += n);
}
function currentSlide(n) {
showSlides(slideIndex = n);
}
function showSlides(n) {
var i;
var slides = document.getElementsByClassName("mySlides");
var dots = document.getElementsByClassName("demo");
var captionText = document.getElementById("caption");
if (n > slides.length) {slideIndex = 1}
if (n < 1) {slideIndex = slides.length}
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex-1].style.display = "block";
dots[slideIndex-1].className += " active";
captionText.innerHTML = dots[slideIndex-1].alt;
}
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.display === "block") {
panel.style.display = "none";
} else {
panel.style.display = "block";
}
});
}
function myFunction(imgs) {
var expandImg = document.getElementById("expandedImg");
var imgText = document.getElementById("imgtext");
expandImg.src = imgs.src;
imgText.innerHTML = imgs.alt;
expandImg.parentElement.style.display = "block";
}
var elements=document.getElementsByClassName("columna");
var i;
f
var modal=document.getElementById("id101");
window.onclick=function (event) {
if (event.target == modal ) {
modal.style.display="none";
} // body...
}