-
Notifications
You must be signed in to change notification settings - Fork 0
/
tg.js
60 lines (59 loc) · 2.3 KB
/
tg.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
const pphrases = [
'tiffany',
'f865426b',
'4bace723',
'david'
];
const vueApp = {
el: '#app',
data() {
return {
passcode: '',
authenticationInitiated: false,
menu: [
{
name: 'Crab cake',
url: 'https://th.bing.com/th?id=OSK.HEROFOyjThexqX3VBSaGljddgE1pUCDVmc7g4e9qzNPTjLI&w=472&h=280&c=13&rs=2&o=6&pid=SANGAM',
wikiLink: 'https://en.wikipedia.org/wiki/Crab_cake'
},
{
name: 'Pollo adobo',
url: 'https://www.bing.com/th?id=OIP.XwmxAU5-1dw09gd-HDgxtAHaE8&w=146&h=120&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2',
wikiLink: 'https://en.wikipedia.org/wiki/Adobo'
},
{
name: 'Disneyland turkey leg',
url: 'https://www.bing.com/th?id=OIP.CAg86Rlqj8phAbu4KLFkmAHaHa&w=150&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2'
},
{
name: 'Mashed potato',
url: 'https://th.bing.com/th/id/OIP.GzqKfjbmATkdwUu87oLJCgHaLG?w=197&h=361&c=7&r=0&o=5&pid=1.7',
wikiLink: 'https://en.wikipedia.org/wiki/Mashed_potato'
},
{
name: 'Egg salad',
url: 'https://th.bing.com/th?id=OSK.HEROvTqv4m2tnGKSt4gHgKAR4k9Zj-QLdImL-zJyKrarEo4&w=472&h=280&c=13&rs=2&o=6&pid=SANGAM'
},
{
name: 'TÖST Non-Alcoholic Sparkling Beverage',
url: 'https://images.food52.com/4Ju3D3vbcH8upDmCZ5ApGjNLXDg=/1500x1500/78dbbb30-0301-4af6-9210-9ae6f4a8fdae--2021-0504_tost_non-alcoholic-sparkling-beverage_family_silo_ty-mecham.jpg'
}
],
};
},
computed: {
isThxGivingWeek() {
return new Date() >= Date.parse('11-19-2023');
},
hasAccess() {
return pphrases.includes(this.passcode) ||
pphrases.includes(new URL(window.location.href).searchParams.get('user'));
},
},
methods: {
viewMenu() {
this.authenticationInitiated = !this.authenticationInitiated;
}
},
};
new Vue(vueApp);