-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathscript.js
executable file
·83 lines (80 loc) · 1.9 KB
/
script.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
var frm = $('#contact');
frm.submit(function (e) {
e.preventDefault();
let name = document.getElementById("name").value.trim();
let messege = document.getElementById("messege").value.trim();
var win = window.open(`https://wa.me/+918450996596?text=Hi%20I%27m%20${name},%20${messege}`, '_blank');
});
new WOW().init();
$(document).ready(function () {
$(".se-pre-con").fadeOut("slow");
$(window).scroll(function () {
if ($(document).scrollTop() > 50) {
$(".navbar").css("background-color", "#111111");
} else {
$(".navbar").css("background-color", "transparent");
}
});
$('.navbar-collapse a').click(function () {
$(".navbar-collapse").collapse('hide');
});
});
var typed = new Typed("#typed", {
stringsElement: '#typed-strings',
typeSpeed: 40,
backSpeed: 10,
loop: true
});
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
$('.work').owlCarousel({
items: 1,
loop: true,
autoplay: true,
mouseDrag: true,
center: true,
autoplayTimeout: 3000,
responsiveClass: true,
});
$('.skill').owlCarousel({
loop: true,
autoplay: true,
mouseDrag: true,
center: true,
autoplayTimeout: 1000,
responsiveClass: true,
responsive: {
0: {
items: 1,
},
1000: {
items: 3,
}
}
});
$('.certificate').owlCarousel({
loop: true,
autoplay: true,
mouseDrag: true,
center: true,
rtl: true,
autoplayTimeout: 4000,
responsiveClass: true,
responsive: {
0: {
items: 1,
},
600: {
items: 2,
},
1000: {
items: 3,
}
}
});