-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
132 lines (130 loc) · 5.35 KB
/
Copy pathscript.js
File metadata and controls
132 lines (130 loc) · 5.35 KB
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
const getProjects = ()=> {
return `[
{
"name": "Search for Dark Matter",
"img": "dark_matter_uhh.jpg",
"url": "https://www.hcl.uni-hamburg.de/studentisches-forschen/studentischeforschungsgruppen/dunkle-materie.html",
"description": "A Search for Dark Matter by building a High-Frequency Cavity and utilizing Artificial Intelligence. A student research project funded by the University of Hamburg with 10,000 €. <br><br><span id='small_dscr'>Funded by the Federal Ministry of Education and Research (BMBF) and the Free and Hanseatic City of Hamburg under the Excellence Strategy of the Federal Government and the Federal States</span>"
},
{
"name": "Numerical Integration Library",
"img": "integration.jpg",
"url": "https://github.com/Malta-Project/Malta",
"description": "Library for fast Integration of arbitrary functions in n dimensions using Monte-Carlo Integration enhanced with the VEGAS-Algorithm named Malta."
},
{
"name": "Computer Vision Library<br>& Image Recognition",
"img": "computer_vision.png",
"url": "computer-vision",
"description": "A library for training and testing a user-definded Convolutional Neuronal Network model, capable of all common techniques for supervised image classification and image preprocessing."
},
{
"name": "AI Reasearch in Physics",
"img": "research.png",
"url": "https://www.dpg-verhandlungen.de/year/2024/conference/karlsruhe/part/t/session/121/contribution/5?lang=en",
"description": "Automated antenna calibration and optimization of the MADMAX booster system for Dark Matter detection using Deep Learning techniques."
},
{
"name": "Simulation of a Pandemic",
"img": "simulation.png",
"url": "simulation",
"description": "A complex reconstruction of a pandemic as Web-App using real-world actions. Validated by comparing the simulation to mathematical models."
},
{
"name": "Web Development",
"img": "web_dev.png",
"url": "http://salama-art.de/en",
"description": "Developing a <a href='http://salama-art.de/en'>personal website</a> (see footer) or a website for a <a href='./newspaper'>school newspaper</a> as well as this very site."
}
]`;
};
/*
{
"name": "Android App",
"img": "android.jpg",
"url": "android-app",
"description": "A calculator for various linear- and vector algebra operations, e.g. calculating a linear combination in n-dimensional space, vector operations, calculating the determinant, etc."
}
{
"name": "AI Research",
"img": "research.png",
"url": "research",
"description": "Developing a new type of a storage space efficient neural network by decreasing unnecessary performance by calculating weights at runtime using a “weight function” instead of saving them. Achieving about 90% less storage and 10% higher error (depending on model)."
}
*/
const init = ()=> {
const projects = JSON.parse(getProjects());
for(const project of projects) {
$('body #tiles').append(`<div class="project">
<h3>${project.name}</h3>
<p>${project.description}</p>
</div>`);
let descr_css = {
height: 0,
"font-size": 0,
opacity: 0,
display: 'none'
}
if(screen.width <= 900) descr_css = {}
let height = $('div.project:last-child p').height();
$('#tiles div.project:last-child').css({
'background-image': `url('./img/${project.img}')`
}).on('click', x=> {
window.location.href = project.url;
}).children('p').css(descr_css)
.parent('div.project').hover(function() {
$(this).children('p').css({
display: 'block',
"font-size": "1.35em"
}).animate({
height: height
}, {
duration: 400,
easing: 'swing',
complete: function() {
$(this).animate({
opacity: 1
}, 300);
}
});
}, function() {
$(this).children('p').animate({
opacity: 0
}, {
duration: 300,
complete: function() {
$(this).animate({
height: 0
}, {
duration: 400,
complete: function() {
$(this).css({
display: 'none',
"font-size": 0
});
}
});
}
});
});
}
if(screen.width <= 900) {
$('#tiles').css({
display: 'block'
});
$('#tiles div.project').css({
width: 'auto',
height: '30%'
});
$('div.project p').css({
'font-size': '2.5em'
});
$('div.project h3').css({
'font-size': '3em'
});
$('body').css({
'overflow-x': 'hidden',
'overflow': 'visible'
})
}
};