Web/scripts/about.js

65 lines
3.2 KiB
JavaScript
Raw Normal View History

2018-07-25 01:54:04 +02:00
const questions = [{
'q': 'How old are you?',
'a': "I'm " + getAge() + " years old. This automatically updates now, too, so I won't ever forget to update it again!"
},
{
'q': 'Where are you from?',
'a': "I am from Neuss, Germany and I'm currently living and going to university in Aachen, Germany."
},
{
'q': 'Why are you called Ellpeck?',
'a': "Well, it actually isn't as interesting of a story as some of you might hope. Long story short, when I was little (and was, apparently, very bad at English), I decided to make a YouTube channel called \"LetsPlayEveryGames.\" Shortly after, I also made a Minecraft account that I was going to call the same thing. At the time, though, there was a limit for how many characters your name could have, and so I opted for calling myself \"LPEG\" instead. When a friend of mine came along and started trying to pronounce that name, instead of saying each individual letter on its own, he started pronouncing it like a word: Ell-Peg. ...Ellpeck. I liked that pronounciation and so I stuck with the name."
},
{
2019-03-22 14:58:09 +01:00
'q': "What are your pronouns?",
'a': "I'm cis male, so I go by he/him."
2018-07-25 01:54:04 +02:00
},
{
'q': "What's your sexual orientation?",
2018-12-16 23:39:35 +01:00
'a': 'I like <a href="https://twitter.com/Sarkasaa">cute guys</a>.'
2018-07-25 01:54:04 +02:00
},
{
'q': 'What languages do you speak?',
'a': 'German, English, Java, JavaScript, C# and a bit of C, HTML and CSS.'
},
2019-06-01 22:26:20 +02:00
{
"q": "How do you make games?",
"a": "I recently fell in love with the game engine Unity. It's so great and so fun to use."
},
2018-09-24 19:52:27 +02:00
{
'q': 'What\'s your favorite programming language?',
2018-12-16 23:39:35 +01:00
'a': 'It varies between C# and Java, based on the language that I currently use more.'
2018-09-24 19:52:27 +02:00
},
2018-07-25 01:54:04 +02:00
{
'q': "What's your job/occupation?",
'a': "I'm currently studying Computer Science at the <a href=\"https://www.rwth-aachen.de/\">RWTH Aachen</a>. I don't have a job on the side or anything, though."
},
2018-09-24 19:52:27 +02:00
{
'q': 'Are you for hire?',
2019-03-28 22:01:47 +01:00
'a': 'You can commission me to make a Minecraft mod for you. You can find more information <a href="#commissions">here</a>.'
2018-09-24 19:52:27 +02:00
},
2018-07-25 01:54:04 +02:00
{
'q': 'What do you use to code?',
2018-12-16 23:39:35 +01:00
'a': "For Java, I use IntelliJ IDEA. For C#, I use JetBrains Rider. For most of my other projects, which are usually rather small, I use Visual Studio Code, which is awesome, by the way."
2018-07-25 01:54:04 +02:00
},
2018-07-25 19:34:13 +02:00
{
'q': 'How did you make this site?',
2018-08-15 23:27:17 +02:00
'a': 'I made this page using <a href="https://getbootstrap.com/">Bootstrap</a>. The content is dynamically generated using JavaScript based on a bunch of JSON data. If you\'re curious about the (probably pretty messy) code, then you can check out the <a href="https://github.com/Ellpeck/Web">GitHub repository</a>.'
2018-07-25 01:54:04 +02:00
}
];
let a = '';
for (question of questions) {
a += '<p>';
a += '<strong>Q: ' + question['q'] + '</strong><br>';
a += '<strong>A:</strong> ' + question['a'];
a += '</p>';
}
$('#about-list').html(a);
function getAge() {
2019-06-01 22:26:20 +02:00
let birthdayMillis = Date.UTC(1999, 4, 21);
let todayMillis = Date.now();
let ageSinceStart = new Date(todayMillis - birthdayMillis);
return ageSinceStart.getUTCFullYear() - 1970;
2018-07-25 01:54:04 +02:00
}