-
Notifications
You must be signed in to change notification settings - Fork 0
/
animate.js
executable file
·96 lines (85 loc) · 2.05 KB
/
animate.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
/*var shake = 'animated shake';
var animationend = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';
$('#ieskoti').on('click', function(){
$('#searchField').addClass(shake).one(animationend, function(){
$(this).removeClass(shake)
});
});
*/
var p = $('.question');
p.css({ cursor: 'pointer' });
$('#Q1').click(function(){
if($('#A1').css('display') == 'none')
{$('#A1').show();}
else
{$('#A1').hide();}
});
$('#Q2').click(function(){
if($('#A2').css('display') == 'none')
{$('#A2').show();}
else
{$('#A2').hide();}
});
$('#Q3').click(function(){
if($('#A3').css('display') == 'none')
{$('#A3').show();}
else
{$('#A3').hide();}
});
$('#Q4').click(function(){
if($('#A4').css('display') == 'none')
{$('#A4').show();}
else
{$('#A4').hide();}
});
$('#Q5').click(function(){
if($('#A5').css('display') == 'none')
{$('#A5').show();}
else
{$('#A5').hide();}
});
$('#Q6').click(function(){
if($('#A6').css('display') == 'none')
{$('#A6').show();}
else
{$('#A6').hide();}
});
///////////////////
$('#p1').click(function(){
$_SESSION["krepselis"] = "p1";
$_SESSION["kiekis"] = 1;
});
$('#p2').click(function(){
$_SESSION["krepselis"] = "p1";
$_SESSION["kiekis"] = 1;
});
$('#p3').click(function(){
$_SESSION["krepselis"] = "p1";
$_SESSION["kiekis"] = 1;
});
$('#p4').click(function(){
$_SESSION["krepselis"] = "p1";
$_SESSION["kiekis"] = 1;
});
/////////////////
function initMap() {
var myLatLng = {lat: 55.98271769999999, lng: 22.24843910000004};
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 12,
center: myLatLng
});
var marker = new google.maps.Marker({
position: myLatLng,
map: map,
title: 'Hello World!'
});
}
//////////////////
function btnEdit(id,review){
$('#redaguoti').show();
$('#reviewText').val(review);
$('#rewid').val(id);
}
$("#remember").on("click", function(){
$("#rememberForm").toggle();
});