-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewsad.js
311 lines (267 loc) · 38.9 KB
/
newsad.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
var DATA = {"1": ["a9d2692e2d76053045d9c4d99dc4fca5.png", "1932", "Cumhuriyet", "Fayda", "\u0130la\u00e7"], "2": ["9548b003e79f28ee18d2a1b2109012ea.png", "1929", "Son Saat", "E\u011flence Rak\u0131s\u0131", "Alkol"], "3": ["47db76cb73230a235f69aec66c38431c.png", "1936", "Tan", "Hasan Gazoz \u00d6z\u00fc", "\u0130\u00e7ecek"], "4": ["fd6fb0e305a57c8c92024522775222cf.png", "1936", "Tan", "Beykoz Kunduralar\u0131", "Giyim"], "5": ["ff75cc63a00682c38b495cfac556f3ab.png", "1936", "Tan", "Ullstein", "Giyim"], "6": ["9b4e02111543d5070d2538b83b929d55.png", "1936", "Tan", "Baronia", "Kozmetik"], "7": ["eb2b86d482fd6f2ebf5cc579a675c2cf.png", "1936", "Tan", "Perlodent Di\u015f Macunu", "Kozmetik"], "8": ["8fc6739b3c978da3c83b28ccf8890356.png", "1938", "Tan", "J. Roussel Korseleri", "Giyim"], "9": ["e63efbc4e8d3af7fd288b6af400057ba.png", "1938", "Tan", "Flit", "Di\u011fer"], "10": ["a0dd8b7b74b1dc68f0ba533ced66bc1d.png", "1938", "Tan", "Coty Gitane Rujlar\u0131", "Kozmetik"], "11": ["4021ff21eb43adcdb562e7905663e150.png", "1937", "T\u00fcrk S\u00f6z\u00fc", "Kelvinator Buzdolaplar\u0131", "Elektronik"], "12": ["a58dab2abc79beeb1f1f14ae6b609e7f.png", "1937", "T\u00fcrk S\u00f6z\u00fc", "Ankara Biras\u0131", "Alkol"], "13": ["4f0f331843afaa8be25b659182562968.png", "1937", "A\u00e7\u0131k S\u00f6z", "Radyolin", "Kozmetik"], "14": ["cac76decefa8574b2e0eee515d975a42.png", "1936", "Ak\u015fam", "Karlman Pasaj", "Ma\u011faza"], "15": ["6763ca9ee6cdddb4c5394d550fe3e586.png", "1936", "Ak\u015fam", "Akridol", "\u0130la\u00e7"], "16": ["665f592c05e8e79b55fe5e596c8fd06c.png", "1936", "Ak\u015fam", "Bromural Knoll Komprimeleri", "\u0130la\u00e7"], "17": ["8d4697f36664f731aab69eb4efa601bf.png", "1936", "Ak\u015fam", "Aspirin", "\u0130la\u00e7"], "18": ["1897aa24dcf6fe3b79c30f0745d6e8ae.png", "1936", "Ak\u015fam", "Eversharp Kalemi", "Di\u011fer"], "19": ["f1369234816e547d0755f418292b1a1b.png", "1936", "Ak\u015fam", "Revue Saatlar\u0131", "Saat"], "20": ["177b39a4b0478d547701c602d480b600.png", "1936", "Ak\u015fam", "Bomonti Bah\u00e7e \u015earab\u0131", "Alkol"], "21": ["8a1c99964087823bfdb8985f8c40c37f.png", "1936", "Ak\u015fam", "Kanzuk Meyva Tuzu", "G\u0131da"], "22": ["51ffad48d553896bf397292ea992cbaf.png", "1936", "Ak\u015fam", "Kanzuk", "\u0130la\u00e7"], "23": ["4fdb920677b91f9efc8501fa6520b63e.png", "1936", "Ak\u015fam", "Radyolin", "Kozmetik"], "24": ["23fa262d28af97955179bfe823a34b10.png", "1936", "Ak\u015fam", "Philips Radyosu", "Elektronik"], "25": ["291d05b7addbbed553052f6b9da511f5.png", "1936", "Ak\u015fam", "Comogene Kanzuk Sa\u00e7 Eksiri", "Kozmetik"], "26": ["5a40bc44f5acfac37b6ad4fd2da87549.png", "1936", "Ak\u015fam", "Paslanmaz Hasan Tra\u015f B\u0131\u00e7a\u011f\u0131", "Kozmetik"], "27": ["a0307cf8920895eb2cbca88eee924f6b.png", "1936", "Ak\u015fam", "Beyko Ticarethanesi", "Ma\u011faza"], "28": ["3771c09ba20c3d6c0a1ca2ca39cc8621.png", "1936", "Ak\u015fam", "Ziraat Bankas\u0131 Kumbara", "Banka"], "29": ["575ab75988eef1d697cfb78bd44f9ac5.png", "1936", "Ak\u015fam", "Hasan \u00d6zl\u00fc Unlar\u0131", "G\u0131da"], "30": ["de6c9f0ecaa34c70d55aeda3f08e4bff.png", "1936", "Ak\u015fam", "Philips Radyolar\u0131", "Elektronik"], "31": ["00bfdedcc06d3bdfc62139ddeb212dfd.png", "1936", "Ak\u015fam", "Poker-Play", "Kozmetik"], "32": ["51c9b89a961e0017ec9abb7c6f7db1d6.png", "1936", "Anadolu", "Z\u0131ngal Parkeleri", "Ev"], "33": ["6945db611f054f4613268582bce89f01.png", "1936", "Anadolu", "\u0130kramiyeli Yenice", "Di\u011fer"], "34": ["0f165a7c3c962c105d5b9664a2cdecf0.png", "1936", "Anadolu", "Ahmet Etiman Kitap Evi", "Ma\u011faza"], "35": ["a966bfa842d6486b6bf961b3ad19fcff.png", "1941", "Bug\u00fcn", "\u00c7apa Marka \u00c7orbal\u0131k Hububat", "G\u0131da"], "36": ["540242621cb8335ca56562e1f30691c7.png", "1939", "T\u00fcrk S\u00f6z\u00fc", "Saba Radyosu", "Elektronik"], "37": ["e481a3490a6e1ed73d595f3ebcca9850.png", "1930", "Cumhuriyet", "Bioks Di\u015f Macunu ve F\u0131r\u00e7as\u0131", "Kozmetik"], "38": ["0db40657999e975c2cb8ec0085635183.png", "1930", "Cumhuriyet", "Fort Dunlop Lastikleri", "Ara\u00e7"], "39": ["f27a7835bf89373d9f88e5ac1b3ee4b2.png", "1930", "Cumhuriyet", "Hac\u0131 Bekirzade Ali Muhiddin", "Mekan"], "40": ["9ca234f9e0826abeb0ca1b8a18829276.png", "1930", "Cumhuriyet", "Fosfotin", "G\u0131da"], "41": ["1515884a6cc61cf2bc219358ea3e4fe2.png", "1930", "Cumhuriyet", "Hasan S\u00fcrmesi", "Kozmetik"], "42": ["e9f7f2fc18549ad126cfd9157c56a3ea.png", "1930", "Cumhuriyet", "Bomonti Rak\u0131", "Alkol"], "43": ["7c2ea224500a51d84dd14d1ff57d55e1.png", "1930", "Cumhuriyet", "Bromural", "\u0130la\u00e7"], "44": ["ad5fe136a9feda59cb517fe74d25337a.png", "1930", "Cumhuriyet", "Atlas Ma\u011fazalar\u0131", "Ma\u011faza"], "45": ["c33d3bbea2130005401b00467acb85cd.png", "1930", "Cumhuriyet", "Galata Ekselsior", "Ma\u011faza"], "46": ["4ffbd73392eee4e3d5061a3ff9b57b3e.png", "1930", "Cumhuriyet", "Odor", "\u0130la\u00e7"], "47": ["1409257c350bfd8647f3e0d1c4a804f4.png", "1931", "Cumhuriyet", "Mar-T\u0131rpanlar\u0131", "Di\u011fer"], "48": ["f6d23a036556d80a50d40eda1c2678ba.png", "1931", "Cumhuriyet", "Y\u0131ld\u0131z \u015eapka Fabrikas\u0131", "Ma\u011faza"], "49": ["83fe741b4a29bdc8788457cac6bf3bb2.png", "1931", "Cumhuriyet", "Lastnicks Gabardin Pardes\u00fc", "Giyim"], "50": ["7fbb1f523ebd38ee2c48fea77f3e35c9.png", "1931", "Cumhuriyet", "Kilyos Plaj\u0131", "Mekan"], "51": ["f93ce3a7957b5b2c654bf06c78bf8e5d.png", "1938", "Do\u011fu", "Topane Terazileri", "Di\u011fer"], "52": ["d608272139f41d6c68ed3057924af207.png", "1941", "En Son Havadis", "Apiko\u011flu T\u00fcrk Sucuklar\u0131", "G\u0131da"], "53": ["26cb43dbe4cc2e3101ea68e9f09971e4.png", "1936", "Haber", "Arlon Saat", "Saat"], "54": ["947d178fa9ed6bd84cc624ac899ff188.png", "1936", "Haber", "Cennet Bah\u00e7esi", "Mekan"], "55": ["052e01ecbddba6b823aac3ad42c6c9c9.png", "1936", "Haber", "Joli Fam", "Kozmetik"], "56": ["d81d56fb00cd5a780508663333f4303f.png", "1936", "Haber", "Kibar Lokanta ve Birahanesi", "Mekan"], "57": ["1b186637a6625600d5ba80bc76077ff6.png", "1936", "Haber", "Dr. Apostel'in S\u0131hhi A\u011f\u0131zl\u0131klar\u0131", "Di\u011fer"], "58": ["62a17c8f79ed13aee8ed95bc713184cf.png", "1936", "Haber", "Kozmin Di\u015f Macunu", "Kozmetik"], "59": ["c42b869afcf68783d51c95eae73ac4bd.png", "1936", "Haber", "Krem Balsamin Kanzuk", "Kozmetik"], "60": ["832b3782cc90510806f1587cb28359e9.png", "1936", "Haber", "Y\u0131ld\u0131r\u0131m Tra\u015f B\u0131\u00e7a\u011f\u0131", "Kozmetik"], "61": ["2dc0b7f9ccb519f6ce4498ad6acce798.png", "1935", "Halk\u0131n Sesi", "Terazi", "Di\u011fer"], "62": ["ee4c0a8597eadc23e0b1401c6bb0e646.png", "1939", "\u0130kdam (Halk Gazetesi)", "Sefalin Ka\u015fe", "\u0130la\u00e7"], "63": ["b0de54b1d0984acfc7bb1cc289866c73.png", "1929", "\u0130kdam (Cumhuriyet i\u00e7in Halk i\u00e7in)", "Kolumbiya Plaklar\u0131", "Elektronik"], "64": ["a796a2afd17924cf56b4563b37c359ad.png", "1936", "Kurun", "Tungsram", "Elektronik"], "65": ["f988e8e347e1da9c04597a948e2e069f.png", "1936", "Kurun", "Bomonti Bah\u00e7e \u015earab\u0131", "Alkol"], "66": ["5e02f28e5dce7394561e9ed61da31dbe.png", "1936", "Kurun", "Raleigh Bisiklet", "Ara\u00e7"], "67": ["49c869b4b16282304796a508461e2c91.png", "1935", "Milliyet", "Daimon Elektrik Cep Fenerleri", "Elektronik"], "68": ["5f975ced5753aa8c1911012220cca5ad.png", "1942", "Son Posta", "Tokalon Pudras\u0131", "Kozmetik"], "69": ["7802d7ea265153c8842757c0e096c005.png", "1942", "Son Posta", "Deva Ka\u015feleri", "\u0130la\u00e7"], "70": ["5f28913777a988911679975eae6d98ad.png", "1929", "Son Saat", "Adler Yaz\u0131 Makinesi", "Elektronik"], "71": ["42b8ad2ad47fdbee16e9d3be57078b5d.png", "1929", "Son Saat", "Ankara Rak\u0131s\u0131", "Alkol"], "72": ["09a41ca3bb36a283c5ffe079eef8ba0a.png", "1929", "Son Saat", "Fosfatin Falier", "G\u0131da"], "73": ["f151c1af6577da1f7d806e13e0b40bb6.png", "1929", "Son Saat", "Foto\u011fraf Makinesi", "Elektronik"], "74": ["c8caa5a6893f1c7504e08c2b941af1d5.png", "1937", "Tan", "Necip Bey Itriyat", "Kozmetik"], "75": ["4fef378bf36fd2398094c16c3968e152.png", "1937", "Tan", "Reve d\u2019or", "Kozmetik"], "76": ["509fef04ebe728aa2672e1f098db09ee.png", "1937", "Tan", "Yerli Mallar Pazarlar\u0131", "Giyim"], "77": ["7e3a83d586aaa13ed6c3a98ebaf46d87.png", "1937", "Tan", "Kanzuk Meyva Tuzu", "G\u0131da"], "78": ["1449654b1306775336949a1f8a5446ff.png", "1941", "T\u00fcrk S\u00f6z\u00fc", "Blaupunkt Radyo", "Elektronik"], "79": ["fd6ac6fd25e05898ec6fe0c642452c2a.png", "1941", "T\u00fcrk S\u00f6z\u00fc", "Oreon Radyolar\u0131", "Elektronik"], "80": ["1556192e16182eb2dbcf9e856ed69090.png", "1941", "T\u00fcrk S\u00f6z\u00fc", "Deva Ka\u015feleri", "\u0130la\u00e7"], "81": ["84eb02bd3748223dff2c59b88cb722ff.png", "1935", "Ulusal Birlik", "T\u00fcrkiye Ziraat Bankas\u0131", "Banka"], "82": ["2540ba1fb3a1adef8537be5cfc1d815f.png", "1935", "Ulusal Birlik", "S\u0131hhat Bal\u0131k Ya\u011f\u0131", "G\u0131da"], "83": ["0ef53f7b86961e93d7f0428e693b6b97.png", "1935", "Ulusal Birlik", "P\u00fcrjen \u015eahap M\u00fcshil Pastilleri", "\u0130la\u00e7"], "84": ["3878cf8fedc6543aefb3d1ef1503f0f5.png", "1952", "Vatan", "Bonochord \u0130\u015fitme Cihazlar\u0131", "Elektronik"], "85": ["edb7fcbd79b8d3dcc69f642b9b7349b5.png", "1952", "Vatan", "\u0130pana", "Kozmetik"], "86": ["5cf56ba5beae4eeecbc1c7a925caf602.png", "1952", "Vatan", "\u00c7apamarka \u00c7orbal\u0131k Komprimeler", "G\u0131da"], "87": ["07e8a3bee146d444b2ea97b5ae3cdf90.png", "1929", "Yar\u0131n", "Asr\u00ee Mobilye", "Ev"], "88": ["b97c93ea0585387e3872b24c35bf5729.png", "1930", "Yar\u0131n", "Keyf Rak\u0131s\u0131", "Alkol"], "89": ["ab2b2cd88091afaaa4989557fc8c2158.png", "1937", "Yeni As\u0131r", "Kanzuk Nas\u0131r ilac\u0131", "\u0130la\u00e7"], "90": ["fcf87d284e6c791c30a538b72a22e582.png", "1937", "Yeni As\u0131r", "Daimon Vantilator", "Elektronik"], "91": ["4b6cc4337c0eeba5e957de49ee89b0d2.png", "1939", "Yeni Sabah", "Derman Ka\u015fe", "\u0130la\u00e7"], "92": ["66b152425e22ccf0a0af3c83cd40778d.png", "1941", "En Son Havadis", "Top\u00e7ular Kaz\u0131kl\u0131ba\u011f Gazinosu", "Mekan"], "93": ["067a02be691ced5a5ac0cb3fbfc19f64.png", "1939", "\u0130kdam (Halk Gazetesi)", "T\u00fcrkiye \u0130\u015f Bankas\u0131", "Banka"], "94": ["6a82916ccbca4519714899177417a9f0.png", "1939", "\u0130kdam (Halk Gazetesi)", "Krem Pertev", "Kozmetik"], "95": ["eba03472f5d9bf7a2d80189a5c27094d.png", "1939", "\u0130kdam (Halk Gazetesi)", "Aspirin", "\u0130la\u00e7"], "96": ["7791a65a3e0b88fdd9382ed0dd4a2a51.png", "1934", "Sava\u015f", "Aspirin", "\u0130la\u00e7"], "97": ["4e71569c48703967c14200d72e7f6fc7.png", "1934", "Sava\u015f", "Tav\u015fanl\u0131l\u0131 Zade Fahri", "Ma\u011faza"], "98": ["0fa44bd3526cabcbe2ebfc956e1500eb.png", "1934", "Sava\u015f", "Karatepe \u015earab\u0131", "Alkol"], "99": ["239bef3cdc5b4c217bf1bf3b1278424b.png", "1940", "Tasviri Efkar", "Yayla Makarnas\u0131", "G\u0131da"], "100": ["dff65cc305f553ceda14d6c40e94dd6c.png", "1940", "Tasviri Efkar", "Santa", "\u0130la\u00e7"], "101": ["3143fd8855744edeecbd1bad708acb90.png", "1938", "Yeni As\u0131r", "Yerlimal\u0131 \u00c7atal B\u0131\u00e7ak Ka\u015f\u0131k", "Ev"], "102": ["e6a0fb55be445b2619bdadca49991c91.png", "1938", "Yeni As\u0131r", "Kanzuk Meyva Tuzu", "G\u0131da"], "103": ["0303d1cab1cc07f5251bc21ee59eaa25.png", "1938", "Yeni As\u0131r", "Paris Hap\u0131", "\u0130la\u00e7"], "104": ["6aa424385d3075a584d04433534b3faf.png", "1938", "Yeni As\u0131r", "Daimon Fener", "Elektronik"], "105": ["564439fd445013f6bd68f0b294ddf0c8.png", "1936", "Yeni Yol", "Frigidaire", "Elektronik"], "106": ["b08b4087fee8f5e2456cba322ceee696.png", "1936", "Yeni Yol", "H\u0131slon Cep ve Kol Saatlar\u0131", "Saat"], "107": ["845e08ab54f0177b876927ac505727a7.png", "1936", "Yeni Yol", "Foto\u011fraf Makinas\u0131", "Elektronik"], "108": ["c0c2155bad569b4eeda00f72d070a448.png", "1936", "Yeni Yol", "Habik \u015eapka", "Giyim"], "109": ["3122fa8bcfd77f970c9818e90717b8ed.png", "1930", "Milliyet", "Dr. Hommel'in Hematogen'i", "\u0130la\u00e7"], "110": ["24db8bf93a285d6c0ec925d8453595c3.png", "1930", "Milliyet", "Filips", "Elektronik"], "111": ["b0add70416e8fa9e170474ac5dc34cd7.png", "1930", "Milliyet", "Valda Pastilleri", "\u0130la\u00e7"], "112": ["c59fe14e501fe756a36c7ab6c7c56dc1.png", "1930", "Milliyet", "Firestone Lastikleri", "Ara\u00e7"], "113": ["467d95e3779108667c3c790c432e837d.png", "1939", "Tan", "Mazon Meyva Tuzu", "G\u0131da"], "114": ["a19977f89b0299e910c069b8dfe2c1fe.png", "1939", "Tan", "\u015eirketi Hayriye", "Ula\u015f\u0131m"], "115": ["7c7acdc67831dda3329c3e0acdfc741d.png", "1939", "Tan", "K\u00fc\u00e7\u00fcksu Pl\u00e2j ve Gazinosu", "Mekan"], "116": ["a83be0d1ab4d39591b7583934920a6e5.png", "1937", "T\u00fcrk S\u00f6z\u00fc", "\u00c7iftehan Kapl\u0131cas\u0131", "Mekan"], "117": ["3435505a2335e45f47d91a53170251d4.png", "1937", "T\u00fcrk S\u00f6z\u00fc", "Kelvinator So\u011fuk Hava Dolaplar\u0131", "Elektronik"], "118": ["77998f59eca4222454c5c21ea5d211a0.png", "1937", "T\u00fcrk S\u00f6z\u00fc", "\u0130\u015f Bankas\u0131", "Banka"], "119": ["b48987c3a8fac7c23338bc0f56c741b5.png", "1937", "T\u00fcrk S\u00f6z\u00fc", "Ankara Biras\u0131", "Alkol"], "120": ["3655aae863ed795dcce34bd5af8f1fad.png", "1934", "Hakimiyeti Milliye", "Chevrolet", "Ara\u00e7"], "121": ["da44d7504e5f425386e85899af334d97.png", "1942", "Son Posta", "\u0130\u015f Bankas\u0131", "Banka"], "122": ["58a87b868f60d175b30eaabc04de1ee0.png", "1934", "Ak\u015fam", "Pertev \u015eurubu", "\u0130la\u00e7"], "123": ["fdd380302545eea723fa48152f3d0a33.png", "1940", "Hakikat", "Marvin Saat", "Saat"], "124": ["ce4aecdebea1c525f762e8900d68fb96.png", "1940", "Hakikat", "T\u00fcrkiye \u0130\u015f Bankas\u0131", "Banka"], "125": ["6904dc32bfee4bddaf5ce852e55dd264.png", "1932", "Milliyet", "Fettu", "Alkol"], "126": ["53f1d8299c051d7f796ba743252a616c.png", "1932", "Son Posta", "Satie Tenvirat", "Elektronik"], "127": ["6f567426603f28fd2611d2785143031b.png", "1940", "Tasviri Efkar", "\u00c7apamarka \u00c7orbal\u0131k Komprime", "G\u0131da"], "128": ["21df4477b10777e9ceb9984c55cac570.png", "1940", "Tasviri Efkar", "Marelli Radyo", "Elektronik"], "129": ["2d413a4f1fbff4aeb369c6a54001c918.png", "1940", "T\u00fcrk S\u00f6z\u00fc", "K\u0131r Kahvesi", "Mekan"], "130": ["9b6da97f5fbb3e7e08b1292b45103381.png", "1940", "Yeni Sabah", "Odeon Plak", "Elektronik"], "131": ["48b0617cf09640f1ba2c9212cf3bf88b.png", "1934", "\u0130zmir Postas\u0131", "Metallum Lambalar\u0131", "Elektronik"], "132": ["fc4051e441f2fdde989392cb4e5cbff5.png", "1934", "\u0130zmir Postas\u0131", "Sulfato Komprimesi", "\u0130la\u00e7"], "133": ["ea53e5e21e1312755399b55fbe1ee3ec.png", "1934", "\u0130zmir Postas\u0131", "\u015eifa Bal\u0131k Ya\u011f\u0131", "\u0130la\u00e7"], "134": ["e73f9b1a232a5cd6d2465e1da51dd93a.png", "1934", "\u0130zmir Postas\u0131", "Abbas Hilmi", "Giyim"], "135": ["16b06008da37c32f0d7b63fb9c9a3cf2.png", "1935", "Sava\u015f", "Bal\u0131kesir Palas", "Mekan"], "136": ["bba89afe29e546f9b43bd2ce8f458311.png", "1929", "Son Saat", "Asr\u00ee Mobilye", "Ev"], "137": ["1ad0a28a412e734409eb06cb24998bee.png", "1929", "Son Saat", "Arsenoferatos", "\u0130la\u00e7"], "138": ["203bfa1ccbafa856e10e7ff9c5f9390a.png", "1929", "Son Saat", "Jubol", "\u0130la\u00e7"], "139": ["b406e3175950429f11f282f11e5c0599.png", "1937", "A\u00e7\u0131k S\u00f6z", "Radyolin", "Kozmetik"], "140": ["3875689a0de67c6595228be2d943016f.png", "1941", "En Son Havadis", "Sanin Di\u015f Macunu", "Kozmetik"], "141": ["e4ae4e2337c22bb29129122dacd8e0ce.png", "1934", "\u0130zmir Postas\u0131", "Ferit Bahar Kolonyas\u0131", "Kozmetik"], "142": ["b697661de9ebce997e841747be78e921.png", "1934", "\u0130zmir Postas\u0131", "L\u00fcks Bisk\u00fcit", "G\u0131da"], "143": ["ec384396a6c631679fe093558b1b91b2.png", "1934", "\u0130zmir Postas\u0131", "Hara\u00e7c\u0131 Zade Mobilya", "Ev"], "144": ["a93af5dd1f0d931ec9beca63e0cc1c28.png", "1934", "\u0130zmir Postas\u0131", "Bayrak\u00e7\u0131 Hac\u0131 \u015e\u00fckr\u00fc", "Ma\u011faza"], "145": ["7c593803892433d04984afad427ae622.png", "1929", "Son Saat", "Sahibinin Sesi", "Elektronik"], "146": ["0d85a187f5d7a335095c095a7578f772.png", "1934", "Son Posta", "Nivea", "Kozmetik"], "147": ["bb4b8a2b8e23baaedb465047cac97412.png", "1934", "Son Posta", "Be\u015fir Kemal Nas\u0131r \u0130lac\u0131", "\u0130la\u00e7"], "148": ["5a5e09b7f3c712ee57e6b94f9b3fbcba.png", "1934", "Son Posta", "\u0130\u015f Bankas\u0131", "Banka"], "149": ["785b8f76430b75798f121c928076ee1e.png", "1934", "Son Posta", "Kodak Foto\u011fraf Makineleri", "Elektronik"], "150": ["50893582ae1e0fee10916c9b97e9d134.png", "1934", "Son Posta", "Tuzla \u0130\u00e7meleri ve Oteli", "Mekan"], "151": ["7bccf7f2e1e07a710f5bb595e78f3632.png", "1934", "Son Posta", "Rolleiflex Foto\u011fraf Makinesi", "Elektronik"], "152": ["fae9a923c32bddf4781a3d5baf20b73b.png", "1934", "Son Posta", "Raleigh Bisikletleri", "Ara\u00e7"], "153": ["c2a6c4a1694f084cc15ed999815d15d0.png", "1937", "A\u00e7\u0131k S\u00f6z", "Turan Di\u015f Macunu", "Kozmetik"], "154": ["d0c284e3fd8182fa349830a7ebf02eb8.png", "1939", "\u0130kdam (Halk Gazetesi)", "T\u00fcrkiye \u0130\u015f Bankas\u0131", "Banka"], "155": ["9142e83f55c5183135222b33095e6051.png", "1934", "\u0130zmir Postas\u0131", "Hil\u00e2l Mobilye", "Ev"], "156": ["2ce10a97afb11a2e55de43289116c352.png", "1934", "\u0130zmir Postas\u0131", "Bilecik Rak\u0131s\u0131", "Alkol"], "157": ["c2c0a3f25ae7fcf34ff8c73f1a4746a7.png", "1934", "\u0130zmir Postas\u0131", "\u0130zmir Ferit Kolonyalar\u0131", "Kozmetik"], "158": ["7b56e41008949acc4d15d8bdeea38aa0.png", "1934", "\u0130zmir Postas\u0131", "T\u00fcrk Pazar\u0131", "Giyim"], "159": ["d73da0518b96a0d4eef74e487a3dccbe.png", "1941", "Son Posta", "\u00c7apamarka \u00c7orbal\u0131k Komprime", "G\u0131da"], "160": ["47512a405cb9f91367691bc7345bf370.png", "1941", "Son Posta", "Ralco Saat", "Saat"], "161": ["ec3f9a818e01a2578fc82db032777291.png", "1937", "T\u00fcrk Dili", "Bozkurt ve Halk Tra\u015f B\u0131\u00e7aklar\u0131", "Kozmetik"], "162": ["5d929f61de1a2a46139cd24e310e03be.png", "1937", "T\u00fcrk Dili", "Haskalmin Ka\u015fe", "\u0130la\u00e7"], "163": ["9c3a6223a6dd9f3bc40e5067d62cbb32.png", "1941", "Haber", "T\u00fcrkiye \u0130\u015f Bankas\u0131", "Banka"], "164": ["d68d2e6e70883909c4d071d32eaf6779.png", "1929", "\u0130kdam (Cumhuriyet i\u00e7in Halk i\u00e7in)", "Pertev \u015eurubu", "\u0130la\u00e7"], "165": ["407f83cca386ee6079bf1cf4a6af5fca.png", "1929", "\u0130kdam (Cumhuriyet i\u00e7in Halk i\u00e7in)", "Flida", "\u0130la\u00e7"], "166": ["6409ca9c5e76b365dd3bd3f3b93d67df.png", "1929", "\u0130kdam (Cumhuriyet i\u00e7in Halk i\u00e7in)", "AEG Yaz\u0131 Makineleri", "Elektronik"], "167": ["19ce15b7050e193a54e9806ee0b1a238.png", "1939", "\u0130kdam (Halk Gazetesi)", "Sevko", "Ma\u011faza"], "168": ["a2f81c237f1da2fffa2934ee824855f7.png", "1939", "\u0130kdam (Halk Gazetesi)", "\u0130nhisar Kolonyas\u0131", "Kozmetik"], "169": ["c3589b8081fd1f27ec20e80051df787f.png", "1932", "Milliyet", "Bioks Sabunu", "Kozmetik"], "170": ["7da33d480435387226863ad1f7ef6a8e.png", "1940", "Son Telgraf", "Ralco Saati", "Saat"], "171": ["d5cc663fd1bd1646417a7679791c56ba.png", "1940", "Tan", "Petrol Nizam", "Kozmetik"], "172": ["22e8e9ae6a272957eb01eb4b778a8798.png", "1934", "T\u00fcrk Dili", "H\u0131rdavat\u00e7\u0131 Cumal\u0131 Hasan", "Ma\u011faza"], "173": ["ae67c5ae3dd199dfcdc75a707b7f9659.png", "1934", "T\u00fcrk Dili", "Merkez K\u0131athanesi", "Mekan"], "174": ["fe7957ba02e4f4fff200ec881d368da2.png", "1934", "T\u00fcrk Dili", "Aspirin", "\u0130la\u00e7"], "175": ["67bc5fdfe4cd2dd2798b642f08c506f9.png", "1941", "Anadolu", "Derman Ka\u015fe", "\u0130la\u00e7"], "176": ["9766db4a7912407dc18ab031648511b5.png", "1941", "Tan", "Sanin Di\u015f Macunu", "Kozmetik"], "177": ["03f7537d5f1aaf9e1e4287f7c88a8176.png", "1937", "Yeni As\u0131r", "Hilal Eczanesi", "Di\u011fer"], "178": ["f822f62b6615b6cddefae4681bae2ead.png", "1937", "Yeni As\u0131r", "Optimus Fenerleri", "Ev"], "179": ["602a3b8fd3ba903d511659e1f1aff6f2.png", "1939", "Yeni Mersin", "Kayadelen Sular\u0131", "\u0130\u00e7ecek"], "180": ["d23657d4fd80f76416571e3b954685d8.png", "1938", "Yeni Sabah", "\u0130nhisar \u015earaplar\u0131", "Alkol"], "181": ["1c1a32822ce1ab2876927216740989cd.png", "1938", "Yeni Sabah", "Helmobleu", "\u0130la\u00e7"], "182": ["9df78e5f074aecec5b9ed3508c7f0961.png", "1941", "Yeni Sabah", "Tokalon Pudras\u0131", "Kozmetik"], "183": ["5a05b143fc9e0616f159fad36dff20c6.png", "1938", "Yeni As\u0131r", "Radyolin", "Kozmetik"], "184": ["d7d9a3f37b888a6a65bce6e7eb90a1dd.png", "1936", "Kurun", "Rosemary Sabun", "Kozmetik"], "185": ["4a8ea59e5d7916375c0af0685ec1828b.png", "1940", "Yeni As\u0131r", "Zenith Saat", "Saat"], "186": ["58f329fabc1496af119f5fd219428099.png", "1937", "Ulusal Birlik", "Ziraat Bankas\u0131", "Banka"], "187": ["5fa1fb6bcf09f59c5536de22d3144261.png", "1938", "Yeni As\u0131r", "Daimon Fener", "Elektronik"], "188": ["ec47524825e9024355c911438038e0b9.png", "1938", "Yeni As\u0131r", "M. Tevfik Baykent", "Elektronik"], "189": ["606f18037d9672794f17f6e0448a39cb.png", "1938", "Yeni Sabah", "Nevrozin", "\u0130la\u00e7"], "190": ["c43c3cd091b7c8f34af06469a11a5ced.png", "1936", "A\u00e7\u0131k S\u00f6z", "Hasan T\u0131ra\u015f B\u0131\u00e7aklar\u0131", "Kozmetik"], "191": ["643c4640c6b64cc0dde30e38038d3d39.png", "1936", "A\u00e7\u0131k S\u00f6z", "Holantse Bank", "Banka"], "192": ["e7fcda109196a47303b9831122296ded.png", "1929", "\u0130kdam (Cumhuriyet i\u00e7in Halk i\u00e7in)", "Lux", "Kozmetik"], "193": ["7af54e2a664498f84970397db97c9664.png", "1929", "\u0130kdam (Cumhuriyet i\u00e7in Halk i\u00e7in)", "Kappel Yaz\u0131 Makinesi", "Elektronik"], "194": ["6c531e6c2b39df9bdc4760bad52eed83.png", "1929", "\u0130kdam (Cumhuriyet i\u00e7in Halk i\u00e7in)", "Osram", "Elektronik"], "195": ["14c84970d04631adff93459e76c3ac68.png", "1940", "\u0130kdam (Sabah Postas\u0131)", "\u00c7apamarka M\u00fcstahzarat\u0131", "G\u0131da"], "196": ["e0c05b7f38d54290737e596f90480001.png", "1929", "Son Saat", "Satie", "Elektronik"], "197": ["1ad366cd176656e68b6b6d4590c4a565.png", "1931", "Yar\u0131n", "K\u00f6rting Amplifikat\u00f6rleri", "Elektronik"], "198": ["7a9b6eb1566f9f9104c77e82200a9141.png", "1937", "Yeni Yol", "Silko", "\u0130la\u00e7"], "199": ["9fe5734ca7c9791e1806881152e8a2fc.png", "1934", "Hakimiyeti Milliye", "Krem Balsamin", "Kozmetik"], "200": ["6494f4cbd89bf500f5d6c0f6d7c876be.png", "1934", "Hakimiyeti Milliye", "Aspirin", "\u0130la\u00e7"], "201": ["0b5f55f1b94394bb817e8f20c935dfa5.png", "1934", "Hakimiyeti Milliye", "T\u00fcrkiye \u0130\u015f Bankas\u0131", "Banka"], "202": ["aa7889ff7c84cd13a4a63bc8c8535d14.png", "1929", "Son Saat", "Kodak Foto\u011fraf Makineleri", "Elektronik"], "203": ["705c202249a038cfc4ef560a595dfe7c.png", "1929", "Son Saat", "Arsenoferatos", "\u0130la\u00e7"], "204": ["d3ed80babdbcf27f507e589507582782.png", "1929", "Son Saat", "Vim", "Ev"], "205": ["c55f1e54c3a4c93782409f833f9551a2.png", "1929", "Son Saat", "Pertev", "Kozmetik"], "206": ["473e341c4d58c23598852e6f84ac550e.png", "1929", "Son Saat", "Gillette", "Kozmetik"], "207": ["4ce8d9baf683fafb94a0ad683dd27e75.png", "1929", "Son Saat", "Flit", "Di\u011fer"], "208": ["0064b34e8d74769e1005fcaf55981cda.png", "1929", "Son Saat", "Bioks Di\u015f Macunu", "Kozmetik"], "209": ["4f5f3221b437eb9e603b3e4db2ccb77b.png", "1939", "Yeni Sabah", "Nevrozin", "\u0130la\u00e7"], "210": ["cac6d25305be7ada8aa8bbb2d814e06a.png", "1939", "Yeni Sabah", "Batteria Torino", "Elektronik"], "211": ["c437089f13cfbad05abaf309b079cbbb.png", "1939", "Yeni Sabah", "Neok\u00fcrin", "\u0130la\u00e7"], "212": ["356e255dc1a2b59ae25ecb29f335ccb6.png", "1939", "Yeni Sabah", "Radyolin", "Kozmetik"], "213": ["768dc2139713e80dd182b56ef42d572e.png", "1936", "A\u00e7\u0131k S\u00f6z", "Hasan H\u00fcsn\u00fc Bursa Pazar\u0131", "Ma\u011faza"], "214": ["dfd00f6d44dcd25fbffdc999a1b81897.png", "1936", "A\u00e7\u0131k S\u00f6z", "Frigidaire", "Elektronik"], "215": ["89ab5d66e8635fa2b93ff4d04af891e8.png", "1930", "Milliyet", "Remington Yaz\u0131 Makineleri", "Elektronik"], "216": ["054bcc7d335daf054312f68fcc2869a6.png", "1936", "Tan", "Briyantin Pertev", "Kozmetik"], "217": ["00347ca3059dd79c503d6244fd726498.png", "1936", "Tan", "Kelvinator So\u011fuk Hava Dolaplar\u0131", "Elektronik"], "218": ["01569b124a453934c277a4073cd4434f.png", "1936", "Tan", "Holantse Bank", "Banka"], "219": ["9960392b8fa7c77d0c6d6e13c29b48d8.png", "1936", "Tan", "Dr. Apostel S\u0131hhi A\u011f\u0131zl\u0131klar\u0131", "Di\u011fer"], "220": ["26d2a9d5ffa3fd4d6114e0916fbdd1f0.png", "1936", "Tan", "Hasan Pudralar\u0131", "Kozmetik"], "221": ["57e0241828f54e29074f605f53def157.png", "1939", "Ak\u015fam", "Petrol Nizam Sa\u00e7 Bak\u0131m", "Kozmetik"], "222": ["138f64b19c056c0758d268c5aab87ac4.png", "1939", "Ak\u015fam", "Radyolin", "Kozmetik"], "223": ["ed2f55ef12a0bb6fc20acab8d896e07c.png", "1939", "Ak\u015fam", "Demag Motorlu Kompres\u00f6rleri", "Di\u011fer"], "224": ["709c21c0c5132bb1b41bd199fbed7b74.png", "1939", "Ak\u015fam", "Singer Saati", "Saat"], "225": ["4aaf5bb322735f8727a7f3af868ffd55.png", "1939", "\u0130kdam (Halk Gazetesi)", "Lorenz ve Tefag Alman Radyolar\u0131", "Elektronik"], "226": ["5a9b88e8eed343182350ddef7628583c.png", "1939", "\u0130kdam (Halk Gazetesi)", "T\u00fcrkiye \u0130\u015f Bankas\u0131", "Banka"], "227": ["c4dcbeac035ad803f51d5053ba0d16e0.png", "1932", "Son Posta", "\u0130peki\u015f", "Giyim"], "228": ["3c164a5d64a83ffc157d36ed7fa9d348.png", "1932", "Son Posta", "Koryzal", "\u0130la\u00e7"], "229": ["cd61e039c7c1ca561bd65e4fdd164f98.png", "1941", "Yeni As\u0131r", "Alt\u0131nr\u00fcya Kolonyas\u0131", "Kozmetik"], "230": ["82b9a09653fe6d0cf39db1eb5da4a287.png", "1929", "\u0130kdam (Cumhuriyet i\u00e7in Halk i\u00e7in)", "Arsenoferratose", "\u0130la\u00e7"], "231": ["df48f851d301dee5fbbb0281852525f4.png", "1929", "\u0130kdam (Cumhuriyet i\u00e7in Halk i\u00e7in)", "Vim", "Ev"], "232": ["b81ba558b4786da836ca75b923c4a783.png", "1940", "\u0130kdam (Sabah Postas\u0131)", "\u00c7apamarka", "G\u0131da"], "233": ["4fc23cfcc8f61334b329c3f19d267ab9.png", "1930", "Milliyet", "\u015eark Malt H\u00fclasas\u0131", "\u0130la\u00e7"], "234": ["b98bce639679ed3e6dda26fe211f28d1.png", "1930", "Milliyet", "Filips Radyosu", "Elektronik"], "235": ["a25adc6649d67cd1ed3e390d52e3da7c.png", "1930", "Milliyet", "Standard \u0130ngiliz Karyolalar\u0131", "Ev"], "236": ["6876f5dd054e763567e2e3c425951d81.png", "1938", "Anadolu", "T\u00fcrkiye \u0130\u015f Bankas\u0131", "Banka"], "237": ["47bfa62d08ae050e2e61304b719821d3.png", "1935", "Hakk\u0131n Sesi", "T\u00fcrkiye \u0130\u015f Bankas\u0131", "Banka"], "238": ["2bd900336c14cbea81b82d1ed2688881.png", "1929", "\u0130kdam (Cumhuriyet i\u00e7in Halk i\u00e7in)", "Flitoks", "Di\u011fer"], "239": ["b01d0a84cc6655eafd22e7d4648a51b5.png", "1939", "\u0130kdam (Halk Gazetesi)", "\u015een Varyete - Lokanta", "Mekan"], "240": ["bab485f5a0fb4524def2ef8c64595ecc.png", "1934", "\u0130zmir Postas\u0131", "Hil\u00e2l Mobilya", "Ev"], "241": ["93d7cbeb650e556311db925ae0b8bf91.png", "1934", "\u0130zmir Postas\u0131", "Aspirin", "\u0130la\u00e7"], "242": ["4a3199a65b6872e22eebd7c804bb13ca.png", "1937", "Ulus Sesi", "Hermes Baby", "Elektronik"], "243": ["6e773155462d448131c097c17b8558c9.png", "1938", "Ulus Sesi", "Kelvinator", "Elektronik"], "244": ["b0b55e9a5c05082ce6f76f88d5ea5ce3.png", "1939", "Vakit", "Ziraat Bankas\u0131", "Banka"], "245": ["ea2200c8fe15d34c2e454b1df02d7c5b.png", "1933", "Milliyet", "Osram", "Elektronik"], "246": ["4de2a2f9d1eb32c5100d631de3510996.png", "1941", "Vatan", "Aga Radyolar\u0131", "Elektronik"], "247": ["ff9ae4c609b3a0472c24c2526662a5f4.png", "1941", "Vatan", "Tungsram Kripton", "Elektronik"], "248": ["673be3c9e0fe8577595957500980e930.png", "1954", "Vatan", "T\u00fcrkiye Eml\u00e2k Kredi Bankas\u0131", "Banka"], "249": ["b4f58b9ef94081df04c3523db719af8a.png", "1954", "Vatan", "Puro Tuvalet Sabunu", "Kozmetik"], "250": ["93ad6447c85043862a9a436e2085a1ae.png", "1954", "Vatan", "Windsor K\u00fcrk Evi", "Ma\u011faza"], "251": ["e6094c527fb9a382184247604aa09d46.png", "1954", "Vatan", "Nevrozin", "\u0130la\u00e7"], "252": ["649a329f1e9e25c1be95a3fb307dbcf8.png", "1954", "Vatan", "Do\u011fu Bank", "Banka"], "253": ["f0f16ea544031ad2e626fc640ab9b03d.png", "1954", "Vatan", "Hawkins Tazyikli Tencereleri", "Ev"], "254": ["80886401b87ee1a0715f97014eefed94.png", "1954", "Vatan", "Ar\u0131 Bisk\u00fcileri", "G\u0131da"], "255": ["0c0f953e0447762127e8cfa75c09bb5c.png", "1954", "Vatan", "KLM", "Ula\u015f\u0131m"], "256": ["f98399fd5be4ad051f725bd602aa48b0.png", "1954", "Vatan", "Goodyear Lastikleri", "Ara\u00e7"], "257": ["8961bfc5838a8537a03ec6d5e8b6e392.png", "1954", "Vatan", "SAS", "Ula\u015f\u0131m"], "258": ["ed76dd77ccb51a268801ad0777dbc0cf.png", "1936", "A\u00e7\u0131k S\u00f6z", "Poker-Play", "Kozmetik"], "259": ["63e93a2cc70802ee2ba006dd44c34c22.png", "1934", "Halk\u0131n Sesi", "Aspirin", "\u0130la\u00e7"], "260": ["1fcae9abeb5553ae6758a99ed213785a.png", "1937", "Son Posta", "Reosil", "\u0130la\u00e7"], "261": ["e0a700cacef1f5bddbd01ce1e9f61914.png", "1937", "Son Posta", "Satie", "Elektronik"], "262": ["21bef639ca4ad0504f41ba8283f08f70.png", "1938", "Ulus Sesi", "Sparton Radyo", "Elektronik"], "263": ["d9dab1d2d270268dc73d2b234b5e6c65.png", "1938", "Ulus Sesi", "Veblid", "Elektronik"]};
var CAT_DATA = {};
var CATS = [];
const Page = {
RAND: 1,
DETAIL: 2,
CAT: 3,
};
var currentPage = Page.RAND;
var context = null;
var recentData = getRecentData(5);
function processData() {
Object.keys(DATA).forEach(i => {
var push = DATA[i].slice(0);
push.unshift(i);
var c = DATA[i][4];
if(!CATS.includes(c)) {
CATS.push(c)
}
c = trChars(c).toLowerCase();
if(CAT_DATA[c]) {
CAT_DATA[c].push(push);
} else {
CAT_DATA[c] = [push];
}
});
CATS.sort((a, b) => a.localeCompare(b, 'tr'));
}
function fillCats() {
var c = document.getElementById('cats');
var cd = '';
for(var i=0; i<CATS.length; i++) {
cd += '<span class="tag"><a onclick="gaTrack(1, \'top_tag\', \''+trChars(CATS[i]).toLowerCase()+'\')" href="#'+trChars(CATS[i]).toLowerCase()+'">#' + CATS[i] + '</a></span> ';
}
c.innerHTML = cd;
}
function processHash() {
currentPage = Page.RAND;
var h = location.hash;
try {
h = h.substring(1);
if(Number.isInteger(Number(h)) && Number(h) > 0) {
logg("ad detail: " + h);
context = h;
currentPage = Page.DETAIL;
} else {
var parts = h.split('-');
var page = 1;
try {
page = parseInt(parts[1]);
if(isNaN(page) || page < 1) {
page = 1;
}
} catch(e) {
page = 1;
}
c = trChars(parts[0]).toLowerCase();
if(CAT_DATA[c]) {
logg("cat: " + c);
context = [CAT_DATA[c], page];
currentPage = Page.CAT;
} else {
logg("RAND!");
currentPage = Page.RAND;
}
}
} catch(err) {
logg("RAND (err)!");
currentPage = Page.RAND;
}
}
function processContent() {
scrollTop();
document.getElementById('detail-view').classList.add('is-hidden');
document.getElementById('cat-view').classList.add('is-hidden');
if(currentPage === Page.DETAIL) {
if(!DATA[context]) {
randomContent();
return;
}
document.getElementById('detail-title').innerText = DATA[context][3];
document.getElementById('detail-year').innerText = DATA[context][1];
document.getElementById('detail-cat').innerText = '#' + DATA[context][4];
document.getElementById('detail-tweet').innerHTML = '';
try {
document.getElementById('detail-tweet').innerHTML = '<a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="twitter-share-button" data-size="large" data-text="'+DATA[context][3] + ' reklamı (' + DATA[context][2] + ' Gazetesi, ' + DATA[context][1] + ') - '+'" data-lang="tr" data-show-count="false">Tweetle</a>';
if(typeof twttr !== 'undefined') {
twttr.widgets.load(document.getElementById('detail-tweet'));
}
} catch(e) {
logg(e);
document.getElementById('detail-tweet').innerHTML = '';
}
document.getElementById('cat-other').innerText = DATA[context][4] + ' Kategorisindeki Diğer Reklamlar';
document.getElementById('detail-paper').innerText = DATA[context][2] + ' Gazetesi';
document.getElementById('detail-img').src = ''; //TODO - set placeholder img first
document.getElementById('detail-img').src = 'img/' + DATA[context][0];
document.getElementById('detail-img').setAttribute('alt', DATA[context][3]);
document.getElementById('detail-cat').onclick = function(e) {
gaTrack(1, 'detail_tag_from', context);
gaTrack(1, 'detail_tag_to', trChars(DATA[context][4]).toLowerCase());
window.location.hash = trChars(DATA[context][4]).toLowerCase();
e.preventDefault();
}
var c = trChars(DATA[context][4]).toLowerCase();
var randElements = getRandom(CAT_DATA[c], 4);
var similar = document.getElementById('cat-similar');
similar.innerHTML = '<div class="column"></div>';
for(var i=0; i<randElements.length; i++) {
similar.innerHTML += '<div class="column"> <div class="card"><a onclick="detailContent(\''+context+'\',\''+randElements[i][0]+'\');"><div class="card-image"> <figure class="image is-4by3"> <img src="img/'+randElements[i][1]+'" alt="'+randElements[i][4]+'"> </figure> </div> <div class="card-content"> <div class="content"> <p> <strong>'+randElements[i][4]+'</strong> </p> '+randElements[i][2]+' </div> </div> </a> </div> </div>';
}
similar.innerHTML += '<div class="column"></div>';
var recent = document.getElementById('recent');
recent.innerHTML = '<div class="column"></div>';
for(var i=0; i<recentData.length; i++) {
recent.innerHTML += '<div class="column"> <div class="card"><a onclick="detailContent(\''+context+'\',\''+recentData[i][0]+'\');"><div class="card-image"> <figure class="image is-4by3"> <img src="img/'+recentData[i][1]+'" alt="'+recentData[i][4]+'"> </figure> </div> <div class="card-content"> <div class="content"> <p> <strong>'+recentData[i][4]+'</strong> </p> '+recentData[i][2]+' </div> </div> </a> </div> </div>';
}
recent.innerHTML += '<div class="column"></div>';
document.getElementById('detail-view').classList.remove('is-hidden');
gaTrack(2, 'detail', context.toString());
} else if(currentPage === Page.RAND) {
randomContent();
document.getElementById('detail-view').classList.remove('is-hidden');
} else if(currentPage === Page.CAT) {
logg(context[0]);
logg(context[1]);
document.getElementById('cat-title').innerText = context[0][0][5] + ' Kategorisindeki Reklamlar';
var colLimit = 4;
var rowLimit = 2;
var page = context[1];
var counter = 0;
var elContent = '';
var pageData = context[0].slice((page-1)*(colLimit*rowLimit), (page-1)*(colLimit*rowLimit)+colLimit*rowLimit);
for(var i=0; i<pageData.length; i++) {
counter++;
if(counter === 1) {
elContent += '<div class="columns body-columns"><div class="column"></div>';
}
var ad = pageData[i];
elContent += '<div class="column"> <a onclick="gaTrack(1, \'cat_from\', \''+trChars(context[0][0][5]).toLowerCase()+'\'); gaTrack(1, \'cat_to\', \''+ad[0]+'\');" href="#'+ad[0]+'"><div class="card"> <div class="card-image"> <figure class="image is-4by3"> <img src="img/'+ad[1]+'" alt="'+ad[4]+'"> </figure> </div> <div class="card-content"> <div class="content"> <p> <strong>'+ad[4]+'</strong> </p> '+ad[2]+' </div> </div> </div> </a> </div>';
if(counter === colLimit) {
elContent += '<div class="column"></div> </div>';
}
if(counter === colLimit) {
counter = 0;
}
}
if(counter !== colLimit && counter !== 0) {
for(var y=0; y < colLimit-counter+1; y++) {
elContent += '<div class="column"></div>';
}
elContent += '</div>';
}
document.getElementById('cat-cols').innerHTML = elContent;
var pagesContent = '';
for(var i=0; i<Math.ceil(context[0].length/(colLimit*rowLimit)); i++) {
pagesContent += '<li><a onclick="gaTrack(1, \'cat_page\', \''+trChars(context[0][0][5]).toLowerCase()+'\');" href="#'+trChars(context[0][0][5]).toLowerCase()+'-'+(i+1).toString()+'" class="pagination-link';
if((i+1) === page) {
pagesContent += ' has-background-grey-lighter';
}
pagesContent += '">'+(i+1).toString()+'</a></li>';
}
document.getElementById('pages').innerHTML = pagesContent;
document.getElementById('cat-view').classList.remove('is-hidden');
gaTrack(2, 'cat', trChars(context[0][0][5]).toLowerCase());
}
}
function randomContent() {
gaTrack(2, 'view_random', '');
var dd = Object.keys(DATA);
window.location.hash = dd[Math.floor(Math.random()*dd.length)];
}
function detailContent(from, to) {
gaTrack(1, 'detail_similar_from', from);
gaTrack(1, 'detail_similar_to', to);
window.location.hash = to;
}
function scrollTop() {
window.scroll({
top: 0,
behavior: 'smooth'
});
}
function getRandom(arr, n) {
if (n > arr.length){
n = arr.length;
}
var result = new Array(n),
len = arr.length,
taken = new Array(len);
while (n--) {
var x = Math.floor(Math.random() * len);
result[n] = arr[x in taken ? taken[x] : x];
taken[x] = --len in taken ? taken[len] : len;
}
return result;
}
function getRecentData(count) {
var recent = [];
var dataSize = Object.keys(DATA).length;
for(var i=0; i<count; i++) {
var d = DATA[dataSize-i].slice(0);
d.unshift((dataSize-i).toString());
recent.push(d);
}
return recent;
}
function trChars(s) {
return s.replaceAll('ğ','g').replaceAll('ı','i').replaceAll('ü','u').replaceAll('ş','s').replaceAll('ö','o').replaceAll('ç','c').replaceAll('Ğ','G').replaceAll('Ü','U').replaceAll('Ş','S').replaceAll('İ', 'I').replaceAll('Ö','O').replaceAll('Ç','C');
}
function logg(s) {
if(false) {
console.log(s);
}
}
/**
* @param event 1=click, 2=view
*/
function gaTrack(event, cat, label) {
var e = '';
if(event === 1) {
e = 'click';
} else if(event === 2) {
e = 'view';
} else {
return;
}
/*
gtag('event', e, {
'event_category' : cat,
'event_label' : cat + '_' + label
});
*/
var d = e + '/' + cat + '/' + label;
gtag('event', 'page_view', {
page_title: d,
page_location: d,
page_path: d
});
logg("ga: " + d);
}
function twitterLoaded() {
try {
twttr.ready(function (twttr) {
twttr.events.bind('tweet', function(event) {
gaTrack(1, 'tweet', location.hash.substring(1));
});
twttr.widgets.load(document.getElementById('detail-tweet'));
});
} catch(e) {
logg(e);
}
}
function loaded() {
processData();
fillCats();
processHash();
processContent();
}
document.addEventListener('DOMContentLoaded', function() {
loaded();
}, false);
window.addEventListener('hashchange', function() {
logg('hash: ' + location.hash);
processHash();
processContent();
}, false);