Web/scripts/greet.js

17 lines
405 B
JavaScript
Raw Normal View History

2018-07-24 22:45:53 +02:00
//Select a random greeting each time
const greetings = [
'Hey!',
'How\'s it going?',
'Welcome!',
'Hello to you!',
'It\'s nice to see you!',
'How are you?',
'What\'s up?',
2018-07-25 01:54:04 +02:00
'Hello!',
'You\'re looking great today!',
'Good day mate!',
'Hello friend!',
'Howdy!',
'Guten Tag!'
2018-07-24 22:45:53 +02:00
];
$('#intro-text').html(greetings[Math.floor(Math.random() * greetings.length)]);