-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.js
119 lines (115 loc) · 3.78 KB
/
main.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
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
var homepage = {};
homepage.cardList = {
'metro' : {
imageSrc : 'playground/image/metro.png',
link : 'https://www.fxhash.xyz/generative/15606',
desc : 'Javascript, fxhash link'
},
'maze' : {
imageSrc : 'playground/image/maze.png',
link : 'https://www.fxhash.xyz/generative/13625',
desc : 'Javascript, fxhash link'
},
'zero-player stained glass' : {
imageSrc : 'playground/image/zeroPlayerStainedGlass.png',
link : 'https://www.fxhash.xyz/generative/10204',
desc : 'Javascript, fxhash link'
},
'zero-player game' : {
imageSrc : 'playground/image/zeroPlayerGame.png',
link : 'https://www.fxhash.xyz/generative/9690',
desc : 'Javascript, fxhash link'
},
'WaterColor' : {
imageSrc : 'playground/image/watercolor.png',
link : 'https://codepen.io/greentec/pen/Ogrjwx',
desc : 'Javascript, CodePen link'
},
'Perlinnoise Domain Warping' : {
imageSrc : 'playground/image/DomainWarping.png',
link : 'https://codepen.io/greentec/pen/rwgrPO',
desc : 'Javascript, CodePen link'
},
'Venation 2D' : {
imageSrc : 'playground/image/venation.png',
link : 'https://codepen.io/greentec/pen/qjQebe',
desc : 'Javascript, CodePen link'
},
'NN - Black Jack' : {
imageSrc : 'playground/image/NNBlackJack.png',
link : 'playground/html/NNBlackJack.html',
desc : 'Actionscript'
},
'GA - N-Queen Solver' : {
imageSrc : 'playground/image/NqueenSolverGA.png',
link : 'playground/html/NqueenSolverGA.html',
desc : 'Actionscript'
},
'3D Cube DFS Maze' : {
imageSrc : 'playground/image/3DMazeWithDFS.png',
link : 'playground/html/3DMazeWithDFS.html',
desc : 'Actionscript'
},
'Sum of All Possibilites, 3D' : {
imageSrc : 'playground/image/sumOfAllP3D.png',
link : 'playground/html/sumOfAllP3D.html',
desc : 'Actionscript'
},
'Segregation' : {
imageSrc : 'playground/image/Segregation.png',
link : 'playground/html/Segregation.html',
desc : 'Actionscript'
},
'Zone of Cooperation' : {
imageSrc : 'playground/image/ZoneOfCooperation.png',
link : 'playground/html/ZoneOfCooperation.html',
desc : 'Actionscript'
},
'Cellular Automata' : {
imageSrc : 'playground/image/CellularAutomata.png',
link : 'playground/html/CellularAutomata.html',
desc : 'Actionscript'
},
'Pixel Sprite Generator' : {
imageSrc : 'playground/image/PixelSpriteGenerator.png',
link : 'playground/html/PixelSpriteGenerator.html',
desc : 'Actionscript'
},
'Dungeon demo' : {
imageSrc : 'playground/image/DungeonDemo.png',
link : 'playground/html/DungeonDemo.html',
desc : 'Actionscript'
},
'Self Organizing Map' : {
imageSrc : 'playground/image/SOM.png',
link : 'playground/html/SOM.html',
desc : 'Actionscript'
},
'Self Organizing Map, 3D' : {
imageSrc : 'playground/image/SOM3D.png',
link : 'playground/html/SOM3D.html',
desc : 'Actionscript'
},
'[Game] Hexagonal Cipher' : {
imageSrc : 'playground/image/HexagonalCipher.png',
link : 'playground/html/HexagonalCipher.html',
desc : 'Actionscript'
},
'[Game] Hex Mine Sweeper' : {
imageSrc : 'playground/image/HexMineSweeper.png',
link : 'playground/html/HexMineSweeper.html',
desc : 'Actionscript'
},
'[Game] 2048' : {
imageSrc : 'playground/image/2048.png',
link : 'playground/html/2048.html',
desc : 'Actionscript'
}
}
$(document).ready(function() {
var cards = $('#playgroundCards');
for (var cardName in homepage.cardList) {
var cardObj = homepage.cardList[cardName];
cards.append('<div class="ui card"><a class="image" href="' + cardObj['link'] + '"><img src="' + cardObj['imageSrc'] + '"></a><div class="content"><div class="header">' + cardName + '</div><div class="meta">' + cardObj['desc'] + '</div></div></div>')
}
});