-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
63 lines (42 loc) · 1.73 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
let isDroppedDown=false;
$( ".skills-container" ).click(function() {
if(this.getAttribute('isDroppedDown')==='false'){
dropDown(this);
this.setAttribute('isDroppedDown','true')
}else{
dropDownClosed(this);
this.setAttribute('isDroppedDown','false')
}
});
var dropDown = function (node) {
dropDownCloseAll();
if (screen.width <769){
$(node).children('.bottom-icons').css('height', '14vw');
$(node).children('.bottom-icons').children().children('.icons-skills').css('width','9vw');
}else {
$(node).children('.bottom-icons').css('height', '5vw');
$(node).children('.bottom-icons').children().children('.icons-skills').css('width', '3vw');
}
}
var dropDownClosed = function (node) {
$(node).children('.bottom-icons').css('height', '0');
$(node).children('.bottom-icons').children().children('.icons-skills').css('width','0');
}
var dropDownCloseAll = function(){
$( ".skills-container").each(function (index,value) {
dropDownClosed(this);
this.setAttribute('isDroppedDown','false')
})
}
//---------------------------scroll------
$(document).ready(function () {
$('a[rel="relativeanchor"]').click(function () {
$('html, body').animate({
scrollTop: $($.attr(this, 'href')).offset().top
}, 1000);
return false;
});
if (screen.width < 800){
$('.about-me-desc').text('Interactive media design is the perfect combination between design and programming. Every platform needs to be centered in how the user feels during the experience and how they interact with it. I love learning new things and experimenting with new programmable technologies. Do you want to work together?')
}
});