var events = new Array(); var clubs = getclubs(""); var eventsid = new Array(); var eventcname = new Array(); var ind; var html; ind = 0; function checkeventid(eid) { var k; for (k=0;k= now() and (strpos(timezone, 'Asia/Jerusalem') >= 0) order by start_time ASC LIMIT 100&access_token=" + document.getElementById("AccessToken").value; // alert(url); $.getJSON(url, function(data) { obj = data.data; Object.keys(obj).forEach(function(key){ html = ""; //alert(obj[key].eid); if (checkeventid(obj[key].eid)==true) { if (j<20) { if (obj[key].timezone=='Asia/Jerusalem') { document.getElementById("desci").value = obj[key].description; picurl = obj[key].pic_cover.source; html = html + "אחר" + ";; "; html = html + obj[key].name + ";; " + obj[key].eid + ";; " + obj[key].start_time + ";; "+ obj[key].location + ";; "; html = html + obj[key].location + ";; " + picurl + ";; " + obj[key].description + ";; " + obj[key].eid + ";; " + obj[key].start_time + ";; " + obj[key].end_time + ";;; "; //alert(timeConverter(obj[key].start_time,"Asia/Jerusalem")); //alert(obj[key].start_time); //document.getElementById("Hidden1").innerHTM=timeConverter(obj[key].start_time,"Asia/Jerusalem") + "
"; //document.getElementById("Hidden1").innerHTML = html; // document.getElementById("Hidden1").innerHTML = obj[key].name; document.getElementById("partyy" + ind).value = html; eventsid[ind]=obj[key].eid; //eventcname[ind]=cname; ind=ind+1; j=j+1; } } } document.getElementById("indexc").value=ind; }); }); document.getElementById("myy").value="1"; var tt=setTimeout(function(){document.getElementById("form1").submit()},4000); if ((j>6) && (document.getElementById("partyy" + j-1).value!='')) { //alert(document.getElementById("partyy" + j-1).value); //var tt=setTimeout(function(){form1.submit()},6000); } } function checkEventViaFql(ev,qu,indexx) { var url, party, guy, i,q; var picurl; i = 0; guy = ev; q=qu; url = 'https://graph.facebook.com/fql?q='; url = url + 'SELECT name, start_time,pic_cover,pic_square,eid,timezone,venue, end_time, location, description FROM event WHERE eid = ' + guy + '&access_token=' + document.getElementById("AccessToken").value; //alert(url); var jsonString = '{"id": "482312621820959","name": "HaBaRvAz - Hamartef \u0040 Between reality and fantasy \u0040Saturday 22.12","timezone": "America/Sao_Paulo", "description": "\u05de\u05d3\u05d4\u05d9\u05dd \u05db\u05d9\u05e6\u05d3 \u05d0\u05e0\u05d5 \u05e6\u05d5\u05e2\u05d3\u05d9\u05dd \u05dc\u05d0\u05d5\u05e8\u05da \u05d7\u05d9\u05d9\u05e0\u05d5 \u05d1\u05d9\u05df \u05de\u05e6\u05d9\u05d0\u05d5\u05ea \u05dc\u05d3\u05de\u05d9\u05d5\u05df...\n\n\u05d7\u05d9\u05d9\u05dd \u05d1\u05e9\u05e0\u05d9 \u05e2\u05d5\u05dc\u05de\u05d5\u05ea \u05dc\u05e4\u05d7\u05d5\u05ea:\n\u05d4\u05d9\u05d5\u05dd-\u05d9\u05d5\u05dd \u05e9\u05d0\u05e0\u05d5 \u05ea\u05d5\u05e4\u05e1\u05d9\u05dd \u05db\u05de\u05e6\u05d9\u05d0\u05d5\u05ea \u05d5\u05e2\u05d5\u05dc\u05dd \u05d4\u05d7\u05dc\u05d5\u05de\u05d5\u05ea \u05d0\u05e9\u05e8 \u05e0\u05e8\u05d0\u05d4 \u05dc\u05e0\u05d5 \u05db\u05de\u05e6\u05d9\u05d0\u05d5\u05ea \u05db\u05d0\u05e9\u05e8 \u05d0\u05e0\u05d5 \u05d7\u05d5\u05dc\u05de\u05d9\u05dd.\n\n\u05d7\u05e9\u05d1\u05ea\u05dd \u05e4\u05e2\u05dd \u05d0\u05d9\u05dc\u05d5 \u05ea\u05d7\u05d5\u05de\u05d9\u05dd \u05d1\u05d7\u05d9\u05d9\u05db\u05dd \u05d4\u05d9\u05d9\u05ea\u05dd \u05e8\u05d5\u05e6\u05d9\u05dd \u05dc\u05e9\u05e4\u05e8 ?\n\n\u05d0\u05d9\u05dc\u05d5 \u05d0\u05de\u05d5\u05e0\u05d5\u05ea \u05de\u05e2\u05db\u05d1\u05d5\u05ea \u05d5\u05d7\u05d5\u05e1\u05de\u05d5\u05ea \u05d2\u05e8\u05de\u05d5 \u05dc\u05db\u05dd \u05dc\u05d7\u05d9\u05d5\u05ea \u05e2\u05dd \u05e4\u05d7\u05d5\u05ea \u05de\u05d4\u05d0\u05d9\u05d3\u05d9\u05d0\u05dc \u05e9\u05dc\u05db\u05dd?\n\n\u05d6\u05d4 \u05d9\u05db\u05d5\u05dc \u05dc\u05d4\u05d9\u05d5\u05ea \u05de\u05e2\u05e8\u05db\u05ea \u05d9\u05d7\u05e1\u05d9\u05dd, \u05d7\u05dc\u05e7 \u05de\u05d4\u05e1\u05d1\u05d9\u05d1\u05d4 \u05d4\u05e4\u05d9\u05d6\u05d9\u05ea \u05d1\u05d4 \u05d7\u05d9\u05d9\u05dd, \u05d4\u05e8\u05d2\u05dc \u05de\u05d2\u05d5\u05e0\u05d4, \u05d3\u05e4\u05d5\u05e1 \u05dc\u05d0 \u05d1\u05e8\u05d9\u05d0, \u05d3\u05d1\u05e8\u05d9\u05dd \u05e9\u05e2\u05d5\u05e9\u05d9\u05dd \u05d1\u05d0\u05d5\u05e4\u05df \u05d0\u05d5\u05d8\u05d5\u05de\u05d8\u05d9, \u05dc\u05dc\u05d0 \u05d1\u05d7\u05d9\u05e8\u05d4 \u05de\u05d5\u05d3\u05e2\u05ea, \u05d5\u05e2\u05d5\u05d3.\n\n\u05e9\u05d9\u05de\u05d5 \u05dc\u05d1 \u05dc\u05d3\u05d1\u05e8\u05d9\u05dd \u05e9\u05d4\u05e9\u05dc\u05de\u05ea\u05dd \u05d0\u05d9\u05ea\u05dd \u05d5\u05d4\u05dd \u05e8\u05d7\u05d5\u05e7\u05d9\u05dd \u05de\u05df \u05d4\u05d0\u05d9\u05d3\u05d9\u05d0\u05dc \u05e9\u05dc\u05db\u05dd \u05e2\u05dc \u05d4\u05d7\u05d9\u05d9\u05dd. \u05d0\u05d5\u05dc\u05d9 \u05e0\u05ea\u05ea\u05dd \u05dc\u05de\u05d7\u05e9\u05d1\u05d5\u05ea \u05dc\u05e0\u05d3\u05d5\u05d3 \u05d1\u05d0\u05d5\u05e4\u05df \u05dc\u05d0 \u05de\u05de\u05d5\u05e7\u05d3 \u05e2\u05dc \"\u05de\u05d4 \u05d9\u05db\u05d5\u05dc \u05d4\u05d9\u05d4 \u05dc\u05d4\u05d9\u05d5\u05ea \u05d0\u05d9\u05dc\u05d5...\"\n\n\u05d4\u05e8\u05e9\u05d5 \u05dc\u05e2\u05e6\u05de\u05db\u05dd \u05dc\u05d8\u05e4\u05dc \u05d1\u05db\u05dc \u05d3\u05d1\u05e8 \u05e9\u05d9\u05db\u05d5\u05dc \u05dc\u05d4\u05e4\u05d5\u05da \u05d0\u05ea \u05d7\u05d9\u05d9\u05db\u05dd \u05dc\u05d8\u05d5\u05d1\u05d9\u05dd \u05d9\u05d5\u05ea\u05e8, \u05de\u05ea\u05d5\u05da \u05d9\u05d3\u05d9\u05e2\u05d4 \u05db\u05d9 \u05d4\u05d6\u05de\u05df \u05d5\u05d4\u05d0\u05e0\u05e8\u05d2\u05d9\u05d4 \u05d4\u05de\u05d5\u05e9\u05e7\u05e2\u05d9\u05dd \u05d9\u05d5\u05d7\u05d6\u05e8\u05d5 \u05d0\u05dc\u05d9\u05db\u05dd \u05d1\u05e6\u05d5\u05e8\u05d4 \u05e9\u05dc \u05e9\u05dc\u05d5\u05d5\u05d4, \u05d0\u05d5\u05e9\u05e8, \u05d1\u05e8\u05d9\u05d0\u05d5\u05ea \u05d5\u05e9\u05d1\u05d9\u05e2\u05d5\u05ea \u05e8\u05e6\u05d5\u05df, \u05d9\u05d5\u05ea\u05e8 \u05de\u05d0\u05d9 \u05e4\u05e2\u05dd \u05d1\u05d7\u05d9\u05d9\u05dd.\n\n\u05d0\u05e0\u05d7\u05e0\u05d5 \u05db\u05d1\u05e8 \u05d1\u05d7\u05e8\u05e0\u05d5 \u05de\u05d4 \u05d8\u05d5\u05d1 \u05dc\u05e0\u05d5 ,\u05d4\u05e6\u05d8\u05e8\u05e4\u05d5 :\n\nSaturday | HaBaRvAz - Hamartef\n\n\nmusic : Hiphop & Electro House Set\n\n\u05e4\u05ea\u05d9\u05d7\u05ea \u05e9\u05e2\u05e8\u05d9\u05dd \u05d122:00 \n\n\u05d4\u05d1\u05e0\u05e7\u05d9\u05dd 2 ,\u05e2\u05d9\u05e8 \u05ea\u05d7\u05ea\u05d9\u05ea ,\u05d7\u05d9\u05e4\u05d4 \n\u05de\u05d5\u05e2\u05d3\u05d5\u05df \u05d4\u05de\u05e8\u05ea\u05e3\u05e3\n\n\u05db\u05e0\u05d9\u05e1\u05d4 \u05e2\u05d3 23:00 \u05d1\u05d7\u05d9\u05e0\u05dd \u05e9\u05dc\u05e0\u05d5 \u05dc\u05e8\u05e9\u05d5\u05de\u05d9\u05dd \u05d1\u05dc\u05d1\u05d3!!(10 \u05e9\"\u05d7)\n\u05db\u05e0\u05d9\u05e1\u05d4 \u05dc\u05e8\u05e9\u05d5\u05de\u05d9\u05dd \u05dc\u05d0\u05d7\u05e8 23:00 , 30 \u05e9\"\u05d7\n\n\u05dc\u05de\u05d9\u05d3\u05e2 \u05e0\u05d5\u05e1\u05e3, \u05e8\u05e9\u05d9\u05de\u05d5\u05ea,\u05d0\u05d9\u05e8\u05d5\u05e2\u05d9\u05dd \u05d5\u05d4\u05e0\u05d7\u05d5\u05ea \u05d0\u05e6\u05dc \u05e6\u05d5\u05d5\u05ea \u05d4\u05d1\u05e8\u05d5\u05d5\u05d6 \u05d0\u05d5 \u05d1\u05d0\u05ea\u05e8 \u05e9\u05dc\u05e0\u05d5\nwww.habarvaz.com\n\n\u05d4\u05db\u05e0\u05d9\u05e1\u05d4 \u05dc\u05e8\u05e9\u05d5\u05de\u05d9\u05dd \u05d1\u05dc\u05d1\u05d3!!","start_time": "2012-12-22","location": "Habarvaz","updated_time": "2012-12-18T09:46:27+0000""photos": { "data": [ { "id": "450713158390640", "from": { "name": "היפנוטיק לאונג בר היוזר", "id": "100003558798060" }, "picture": "https://fbcdn-photos-h-a.akamaihd.net/hphotos-ak-prn1/t1/1604554_450713158390640_1458906801_s.jpg", "source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-prn1/t1/s720x720/1604554_450713158390640_1458906801_n.jpg", "height": 266, "width": 720, "images": [ { "height": 758, "width": 2048, "source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-frc3/t31/s2048x2048/1486123_450713158390640_1458906801_o.jpg" }, { "height": 720, "width": 1945, "source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-frc3/t31/p720x720/1486123_450713158390640_1458906801_o.jpg" }, { "height": 600, "width": 1620, "source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotosx600/1486123_450713158390640_1458906801_o.jpg" }, { "height": 480, "width": 1296, "source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-frc3/t31/p480x480/1486123_450713158390640_1458906801_o.jpg" }, { "height": 320, "width": 864, "source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-frc3/t31/p320x320/1486123_450713158390640_1458906801_o.jpg" }, { "height": 540, "width": 1458, "source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-frc3/t31/p180x540/1486123_450713158390640_1458906801_o.jpg" }, { "height": 130, "width": 351, "source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-prn1/t1/p130x130/1604554_450713158390640_1458906801_n.jpg" }, { "height": 225, "width": 608, "source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-prn1/t"}]}'; //var jsonString = '{"id": "277853212338012","name": "SILVESTER 2013 @ Mirpeset 31.12.2012 @ +26","description": "אז איפה הייתם כאשר 2013 הגיעה אלינו?\nאנחנו יודעים שבערב חגיגי כזה לא מומלץ לקחת צ'אנסים ולכן ליין שישי חברים יוצא להפקה חד פעמית ומיוחדת לכבוד תחילת השנה האזרחית במרפסת.\n\nמה יהיה לנו? \nשטיח אדום יקבל אתכם בכניסה וכמובן- כוס שמפניה לפני העלייה במעלית. וכשהמעלית תפתח תגלו תפאורה חגיגית, בלונים, דוכן סושי של אצה רמת ישי ועוד המון הפתעות! \n\nמומלץ לשריין מקומות מראש!\n\nעל המוסיקה: \nDJ צחי גרין\n\nפתיחה : 21:00 . משקה ראשון גולדסטאר\\אבסולוטXL עלינו עד22:00\nביום זה לא תהיה כניסה חינם בחצי שעה הראשונה\nגילאים: 26+, הכניסה בהצגת ת.ז רשיון בלבד, הזמנת מקום מראש ואישורו. דף הלייק אינו מהווה בסיס להזמנת מקום.\n\nמחכים לכם!\nבן & נוי , יובל & עבודי, אוהד & סער ושמש\nוכל צוות המרפסת\n\nלסגירת אירועים וימי הולדת - מוזמנים לפנות אלינו באינבוקס לחגיגה כמו שצריך! \nבמרפסת עושים גם אירועים פרטיים ואירועי חברה ברמה הגבוהה ביותר. לפרטים: http://www.mirpeset-bar.co.il/","start_time": "2012-12-31T21:00:00+0200","location": "מרפסת רמת ישי","updated_time": "2012-12-31T12:25:19+0000","picture": {"data": {"url": "https://fbcdn-profile-a.akamaihd.net/hprofile-ak-ash4/372912_277853212338012_737023057_q.jpg","is_silhouette": false}}}'; //html = ""; picurl=""; html = ""; // if (checkeventid(guy)==true) // { $.getJSON(url, function(data) { obj = data.data; html = ""; picurl = obj[0].pic_cover.source; //alert(picurl); // Object.keys(obj).forEach(function(key){ // $('#content').append('
'+''+obj[key].name+'
'); //html = html + data.description + ";; "; document.getElementById("desci").value = obj[0].description; // picurl = obj.picture.data.url; //alert(picurl); //picurl = obj.source; //alert(picurl); // imgp.src = picurl; padesc=obj[0].description; padesc=padesc.replace("><",""); //alert(padesc); pname=obj[0].name; pname=pname.replace("><",""); html = html + q + ";; "; html = html + pname + ";; " + obj[0].eid + ";; " + obj[0].start_time + ";; "+ obj[0].location + ";; "; html = html + obj[0].location + ";; " + picurl + ";; " + padesc + ";; " + obj[0].eid + ";; " + obj[0].start_time + ";; " + obj[0].end_time + ";;; "; if (obj[0].timezone=='Asia/Jerusalem') { events[indexx] = events[indexx] + html; //document.getElementById("Hidden1").innerHTML = html; document.getElementById("Hidden1").innerHTML = q; document.getElementById("partyy" + indexx).value = html; i=i+1; } else { // alert(data.timezone); } // }); if (indexx==ind) { resizescroll2(100); } else { resizescroll2((100/ind)*indexx); } }); // } } function checkevent2(ev,qu,indexx) { var url, party, guy, i,q; var picurl; i = 0; guy = ev; q=qu; url = 'https://graph.facebook.com/'; url = url + guy + '?fields=id,name,description,start_time,location,end_time,timezone,picture,updated_time,photos&access_token=' + document.getElementById("AccessToken").value; //alert(url); var jsonString = '{"id": "482312621820959","name": "HaBaRvAz - Hamartef \u0040 Between reality and fantasy \u0040Saturday 22.12","timezone": "America/Sao_Paulo", "description": "\u05de\u05d3\u05d4\u05d9\u05dd \u05db\u05d9\u05e6\u05d3 \u05d0\u05e0\u05d5 \u05e6\u05d5\u05e2\u05d3\u05d9\u05dd \u05dc\u05d0\u05d5\u05e8\u05da \u05d7\u05d9\u05d9\u05e0\u05d5 \u05d1\u05d9\u05df \u05de\u05e6\u05d9\u05d0\u05d5\u05ea \u05dc\u05d3\u05de\u05d9\u05d5\u05df...\n\n\u05d7\u05d9\u05d9\u05dd \u05d1\u05e9\u05e0\u05d9 \u05e2\u05d5\u05dc\u05de\u05d5\u05ea \u05dc\u05e4\u05d7\u05d5\u05ea:\n\u05d4\u05d9\u05d5\u05dd-\u05d9\u05d5\u05dd \u05e9\u05d0\u05e0\u05d5 \u05ea\u05d5\u05e4\u05e1\u05d9\u05dd \u05db\u05de\u05e6\u05d9\u05d0\u05d5\u05ea \u05d5\u05e2\u05d5\u05dc\u05dd \u05d4\u05d7\u05dc\u05d5\u05de\u05d5\u05ea \u05d0\u05e9\u05e8 \u05e0\u05e8\u05d0\u05d4 \u05dc\u05e0\u05d5 \u05db\u05de\u05e6\u05d9\u05d0\u05d5\u05ea \u05db\u05d0\u05e9\u05e8 \u05d0\u05e0\u05d5 \u05d7\u05d5\u05dc\u05de\u05d9\u05dd.\n\n\u05d7\u05e9\u05d1\u05ea\u05dd \u05e4\u05e2\u05dd \u05d0\u05d9\u05dc\u05d5 \u05ea\u05d7\u05d5\u05de\u05d9\u05dd \u05d1\u05d7\u05d9\u05d9\u05db\u05dd \u05d4\u05d9\u05d9\u05ea\u05dd \u05e8\u05d5\u05e6\u05d9\u05dd \u05dc\u05e9\u05e4\u05e8 ?\n\n\u05d0\u05d9\u05dc\u05d5 \u05d0\u05de\u05d5\u05e0\u05d5\u05ea \u05de\u05e2\u05db\u05d1\u05d5\u05ea \u05d5\u05d7\u05d5\u05e1\u05de\u05d5\u05ea \u05d2\u05e8\u05de\u05d5 \u05dc\u05db\u05dd \u05dc\u05d7\u05d9\u05d5\u05ea \u05e2\u05dd \u05e4\u05d7\u05d5\u05ea \u05de\u05d4\u05d0\u05d9\u05d3\u05d9\u05d0\u05dc \u05e9\u05dc\u05db\u05dd?\n\n\u05d6\u05d4 \u05d9\u05db\u05d5\u05dc \u05dc\u05d4\u05d9\u05d5\u05ea \u05de\u05e2\u05e8\u05db\u05ea \u05d9\u05d7\u05e1\u05d9\u05dd, \u05d7\u05dc\u05e7 \u05de\u05d4\u05e1\u05d1\u05d9\u05d1\u05d4 \u05d4\u05e4\u05d9\u05d6\u05d9\u05ea \u05d1\u05d4 \u05d7\u05d9\u05d9\u05dd, \u05d4\u05e8\u05d2\u05dc \u05de\u05d2\u05d5\u05e0\u05d4, \u05d3\u05e4\u05d5\u05e1 \u05dc\u05d0 \u05d1\u05e8\u05d9\u05d0, \u05d3\u05d1\u05e8\u05d9\u05dd \u05e9\u05e2\u05d5\u05e9\u05d9\u05dd \u05d1\u05d0\u05d5\u05e4\u05df \u05d0\u05d5\u05d8\u05d5\u05de\u05d8\u05d9, \u05dc\u05dc\u05d0 \u05d1\u05d7\u05d9\u05e8\u05d4 \u05de\u05d5\u05d3\u05e2\u05ea, \u05d5\u05e2\u05d5\u05d3.\n\n\u05e9\u05d9\u05de\u05d5 \u05dc\u05d1 \u05dc\u05d3\u05d1\u05e8\u05d9\u05dd \u05e9\u05d4\u05e9\u05dc\u05de\u05ea\u05dd \u05d0\u05d9\u05ea\u05dd \u05d5\u05d4\u05dd \u05e8\u05d7\u05d5\u05e7\u05d9\u05dd \u05de\u05df \u05d4\u05d0\u05d9\u05d3\u05d9\u05d0\u05dc \u05e9\u05dc\u05db\u05dd \u05e2\u05dc \u05d4\u05d7\u05d9\u05d9\u05dd. \u05d0\u05d5\u05dc\u05d9 \u05e0\u05ea\u05ea\u05dd \u05dc\u05de\u05d7\u05e9\u05d1\u05d5\u05ea \u05dc\u05e0\u05d3\u05d5\u05d3 \u05d1\u05d0\u05d5\u05e4\u05df \u05dc\u05d0 \u05de\u05de\u05d5\u05e7\u05d3 \u05e2\u05dc \"\u05de\u05d4 \u05d9\u05db\u05d5\u05dc \u05d4\u05d9\u05d4 \u05dc\u05d4\u05d9\u05d5\u05ea \u05d0\u05d9\u05dc\u05d5...\"\n\n\u05d4\u05e8\u05e9\u05d5 \u05dc\u05e2\u05e6\u05de\u05db\u05dd \u05dc\u05d8\u05e4\u05dc \u05d1\u05db\u05dc \u05d3\u05d1\u05e8 \u05e9\u05d9\u05db\u05d5\u05dc \u05dc\u05d4\u05e4\u05d5\u05da \u05d0\u05ea \u05d7\u05d9\u05d9\u05db\u05dd \u05dc\u05d8\u05d5\u05d1\u05d9\u05dd \u05d9\u05d5\u05ea\u05e8, \u05de\u05ea\u05d5\u05da \u05d9\u05d3\u05d9\u05e2\u05d4 \u05db\u05d9 \u05d4\u05d6\u05de\u05df \u05d5\u05d4\u05d0\u05e0\u05e8\u05d2\u05d9\u05d4 \u05d4\u05de\u05d5\u05e9\u05e7\u05e2\u05d9\u05dd \u05d9\u05d5\u05d7\u05d6\u05e8\u05d5 \u05d0\u05dc\u05d9\u05db\u05dd \u05d1\u05e6\u05d5\u05e8\u05d4 \u05e9\u05dc \u05e9\u05dc\u05d5\u05d5\u05d4, \u05d0\u05d5\u05e9\u05e8, \u05d1\u05e8\u05d9\u05d0\u05d5\u05ea \u05d5\u05e9\u05d1\u05d9\u05e2\u05d5\u05ea \u05e8\u05e6\u05d5\u05df, \u05d9\u05d5\u05ea\u05e8 \u05de\u05d0\u05d9 \u05e4\u05e2\u05dd \u05d1\u05d7\u05d9\u05d9\u05dd.\n\n\u05d0\u05e0\u05d7\u05e0\u05d5 \u05db\u05d1\u05e8 \u05d1\u05d7\u05e8\u05e0\u05d5 \u05de\u05d4 \u05d8\u05d5\u05d1 \u05dc\u05e0\u05d5 ,\u05d4\u05e6\u05d8\u05e8\u05e4\u05d5 :\n\nSaturday | HaBaRvAz - Hamartef\n\n\nmusic : Hiphop & Electro House Set\n\n\u05e4\u05ea\u05d9\u05d7\u05ea \u05e9\u05e2\u05e8\u05d9\u05dd \u05d122:00 \n\n\u05d4\u05d1\u05e0\u05e7\u05d9\u05dd 2 ,\u05e2\u05d9\u05e8 \u05ea\u05d7\u05ea\u05d9\u05ea ,\u05d7\u05d9\u05e4\u05d4 \n\u05de\u05d5\u05e2\u05d3\u05d5\u05df \u05d4\u05de\u05e8\u05ea\u05e3\u05e3\n\n\u05db\u05e0\u05d9\u05e1\u05d4 \u05e2\u05d3 23:00 \u05d1\u05d7\u05d9\u05e0\u05dd \u05e9\u05dc\u05e0\u05d5 \u05dc\u05e8\u05e9\u05d5\u05de\u05d9\u05dd \u05d1\u05dc\u05d1\u05d3!!(10 \u05e9\"\u05d7)\n\u05db\u05e0\u05d9\u05e1\u05d4 \u05dc\u05e8\u05e9\u05d5\u05de\u05d9\u05dd \u05dc\u05d0\u05d7\u05e8 23:00 , 30 \u05e9\"\u05d7\n\n\u05dc\u05de\u05d9\u05d3\u05e2 \u05e0\u05d5\u05e1\u05e3, \u05e8\u05e9\u05d9\u05de\u05d5\u05ea,\u05d0\u05d9\u05e8\u05d5\u05e2\u05d9\u05dd \u05d5\u05d4\u05e0\u05d7\u05d5\u05ea \u05d0\u05e6\u05dc \u05e6\u05d5\u05d5\u05ea \u05d4\u05d1\u05e8\u05d5\u05d5\u05d6 \u05d0\u05d5 \u05d1\u05d0\u05ea\u05e8 \u05e9\u05dc\u05e0\u05d5\nwww.habarvaz.com\n\n\u05d4\u05db\u05e0\u05d9\u05e1\u05d4 \u05dc\u05e8\u05e9\u05d5\u05de\u05d9\u05dd \u05d1\u05dc\u05d1\u05d3!!","start_time": "2012-12-22","location": "Habarvaz","updated_time": "2012-12-18T09:46:27+0000""photos": { "data": [ { "id": "450713158390640", "from": { "name": "היפנוטיק לאונג בר היוזר", "id": "100003558798060" }, "picture": "https://fbcdn-photos-h-a.akamaihd.net/hphotos-ak-prn1/t1/1604554_450713158390640_1458906801_s.jpg", "source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-prn1/t1/s720x720/1604554_450713158390640_1458906801_n.jpg", "height": 266, "width": 720, "images": [ { "height": 758, "width": 2048, "source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-frc3/t31/s2048x2048/1486123_450713158390640_1458906801_o.jpg" }, { "height": 720, "width": 1945, "source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-frc3/t31/p720x720/1486123_450713158390640_1458906801_o.jpg" }, { "height": 600, "width": 1620, "source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotosx600/1486123_450713158390640_1458906801_o.jpg" }, { "height": 480, "width": 1296, "source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-frc3/t31/p480x480/1486123_450713158390640_1458906801_o.jpg" }, { "height": 320, "width": 864, "source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-frc3/t31/p320x320/1486123_450713158390640_1458906801_o.jpg" }, { "height": 540, "width": 1458, "source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-frc3/t31/p180x540/1486123_450713158390640_1458906801_o.jpg" }, { "height": 130, "width": 351, "source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-prn1/t1/p130x130/1604554_450713158390640_1458906801_n.jpg" }, { "height": 225, "width": 608, "source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-prn1/t"}]}'; //var jsonString = '{"id": "277853212338012","name": "SILVESTER 2013 @ Mirpeset 31.12.2012 @ +26","description": "אז איפה הייתם כאשר 2013 הגיעה אלינו?\nאנחנו יודעים שבערב חגיגי כזה לא מומלץ לקחת צ'אנסים ולכן ליין שישי חברים יוצא להפקה חד פעמית ומיוחדת לכבוד תחילת השנה האזרחית במרפסת.\n\nמה יהיה לנו? \nשטיח אדום יקבל אתכם בכניסה וכמובן- כוס שמפניה לפני העלייה במעלית. וכשהמעלית תפתח תגלו תפאורה חגיגית, בלונים, דוכן סושי של אצה רמת ישי ועוד המון הפתעות! \n\nמומלץ לשריין מקומות מראש!\n\nעל המוסיקה: \nDJ צחי גרין\n\nפתיחה : 21:00 . משקה ראשון גולדסטאר\\אבסולוטXL עלינו עד22:00\nביום זה לא תהיה כניסה חינם בחצי שעה הראשונה\nגילאים: 26+, הכניסה בהצגת ת.ז רשיון בלבד, הזמנת מקום מראש ואישורו. דף הלייק אינו מהווה בסיס להזמנת מקום.\n\nמחכים לכם!\nבן & נוי , יובל & עבודי, אוהד & סער ושמש\nוכל צוות המרפסת\n\nלסגירת אירועים וימי הולדת - מוזמנים לפנות אלינו באינבוקס לחגיגה כמו שצריך! \nבמרפסת עושים גם אירועים פרטיים ואירועי חברה ברמה הגבוהה ביותר. לפרטים: http://www.mirpeset-bar.co.il/","start_time": "2012-12-31T21:00:00+0200","location": "מרפסת רמת ישי","updated_time": "2012-12-31T12:25:19+0000","picture": {"data": {"url": "https://fbcdn-profile-a.akamaihd.net/hprofile-ak-ash4/372912_277853212338012_737023057_q.jpg","is_silhouette": false}}}'; //html = ""; picurl=""; html = ""; // if (checkeventid(guy)==true) // { $.getJSON(url, function(data) { obj = data; html = ""; // Object.keys(obj).forEach(function(key){ // $('#content').append('
'+''+obj[key].name+'
'); //html = html + data.description + ";; "; document.getElementById("desci").value = obj.description; picurl = obj.picture.data.url; //alert(picurl); //picurl = obj.source; picurl = picurl.replace("_q", "_n"); picurl = picurl.replace("_t", "_n"); picurl = picurl.replace("_a", "_n"); picurl = picurl.replace("https://fbcdn-profile-a.akamaihd.net/hprofile-ak-ash3/", "https://fbcdn-photos-a.akamaihd.net/hphotos-ak-prn1/"); picurl = picurl.replace("c11.0.51.50/p50x50/", ""); picurl = picurl.replace("c43.0.50.50/p50x50/", ""); picurl = picurl.replace("c46.0.199.200/p200x200/", ""); picurl = picurl.replace("c154.0.200.200/p200x200/", ""); picurl = picurl.replace("c170.0.200.200/p200x200/", ""); picurl = picurl.replace("c170.0.199.200/p200x200/", ""); picurl = obj.photos.data[0].source; if (picurl==="null" || picurl===null || picurl==="" || typeof picurl === "undefined") { picurl = obj.photos.data[1].source; } //alert(picurl); // imgp.src = picurl; padesc=obj.description; padesc=padesc.replace("><",""); pname=obj.name; pname=pname.replace("><",""); html = html + q + ";; "; html = html + pname + ";; " + obj.id + ";; " + obj.start_time + ";; "+ obj.location + ";; "; html = html + obj.location + ";; " + picurl + ";; " + padesc + ";; " + obj.id + ";; " + obj.start_time + ";; " + obj.end_time + ";;; "; if (obj.timezone=='Asia/Jerusalem') { events[indexx] = events[indexx] + html; //document.getElementById("Hidden1").innerHTML = html; document.getElementById("Hidden1").innerHTML = q; document.getElementById("partyy" + indexx).value = html; i=i+1; } else { // alert(data.timezone); } // }); if (indexx==ind) { resizescroll2(100); } else { resizescroll2((100/ind)*indexx); } }); // } } function resizescroll2(val) { $(function () { $('.progress-bar').css('width', val+'%').attr('aria-valuenow', val); }); if (val == 100) { // document.getElementById("form1").submit(); } } function resizescroll(val) { $(function () { $('.progress-bar').css('width', val+'%').attr('aria-valuenow', val); }); if (val == 100) { // form1.submit(); } } function listToAray(fullString, separator) { var fullArray = []; if (fullString !== undefined) { if (fullString.indexOf(separator) == -1) { fullAray.push(fullString); } else { fullArray = fullString.split(separator); } } return fullArray; } function ch1(qu){ //checkjson2(qu); var fullArray1 = listToAray(qu,','); //alert(fullArray1[0]); getallpartyaround(fullArray1[0],fullArray1[1]); printeventsids(); } function printeventsids() { var i; for (i=0;i6) && (document.getElementById("partyy" + j-1).value!='')) { //alert(document.getElementById("partyy" + j-1).value); //var tt=setTimeout(function(){form1.submit()},6000); } } function checkbylocation(ll,dd){ var url, party, guy,j,q; j=0; guy="SELECT eid,start_time FROM event_member WHERE uid IN (SELECT page_id FROM place WHERE distance(latitude, longitude, '" + ll + "', '" + dd + "') < 1000) and start_time >= now()order by start_time DESC"; url = 'https://graph.facebook.com/fql?q='; url = url + guy + '&access_token=' + document.getElementById("AccessToken").value; //document.getElementById("Hidden1").innerHTML = url; $.getJSON(url, function(data) { obj = data.data; Object.keys(obj).forEach(function(key){ html = ""; // alert(obj[key].eid); if (checkeventid(obj[key].eid)==true) { if (j<20) { if (obj[key].timezone=='Asia/Jerusalem') { eventsid[ind]=obj[key].eid; eventcname[ind]=cname; ind=ind+1; j=j+1; } } } document.getElementById("indexc").value=ind; }); }); } function checkjson2(qu,cname) { var url, party, guy,j; guy = qu; j=0; url = 'https://graph.facebook.com/search?q='; url = url + guy + '&type=event&access_token=' + document.getElementById("AccessToken").value; //alert(url); var jsonString = '{"data": [{"name":"ben","start_time": "2012-12-21T22:00:00","end_time": "2013-02-24T01:00:00", "timezone": "America/New_York","location": "\u05de\u05e8\u05e4\u05e1\u05ea \u05e8\u05de\u05ea \u05d9\u05e9\u05d9","id": "277853212338012"},{"name":"ben","start_time": "2012-12-21T22:00:00","end_time": "2013-02-22T05:00:00", "timezone": "America/New_York","location": "\u05de\u05e8\u05e4\u05e1\u05ea \u05e8\u05de\u05ea \u05d9\u05e9\u05d9","id": "277853212338012"}],"paging": {"previous": "https:/","next": ""}}'; $.getJSON(url, function(data) { obj = data.data; Object.keys(obj).forEach(function(key){ // $('#content').append('
'+''+obj[key].name+'
'); html = ""; // guy=obj[key].id; //alert(data); if (checkeventid(obj[key].id)==true) { if (j<20) { eventsid[ind]=obj[key].id; eventcname[ind]=cname; ind=ind+1; j=j+1; } } //html = html + guy + ";; "; //nameparty.value = item[j].name; //startdate.value = item[j].start_time; //starttime.value = item[j].start_time; //partyy.value = html; // if (obj[key].timezone=='Asia/Jerusalem') // { //events[ind] = html; // checkevent2(obj[key].id,guy); // } //else //{ //alert(item[j].timezone); //} // alert(document.getElementById("partyy" + ind).value); document.getElementById("indexc").value=ind; }); }); } function checkjson(qu) { var url, party, guy,j; guy = qu; url = 'https://graph.facebook.com/search?q='; url = url + guy + '&type=event&access_token=' + document.getElementById("AccessToken").value; //alert(url); var jsonString = '{"data": [{"name":"ben","start_time": "2012-12-21T22:00:00","end_time": "2013-02-24T01:00:00", "timezone": "America/New_York","location": "\u05de\u05e8\u05e4\u05e1\u05ea \u05e8\u05de\u05ea \u05d9\u05e9\u05d9","id": "277853212338012"},{"name":"ben","start_time": "2012-12-21T22:00:00","end_time": "2013-02-22T05:00:00", "timezone": "America/New_York","location": "\u05de\u05e8\u05e4\u05e1\u05ea \u05e8\u05de\u05ea \u05d9\u05e9\u05d9","id": "277853212338012"}],"paging": {"previous": "https:/","next": ""}}'; var html; html = ""; $.getJSON(url, function (data) { $.each(data, function (index, item) { //straight-forward loop for (j = 0; j < 2; j++) { html = ""; //alert(data); if (item[j].id!=null){ if (checkeventid(item[j].id)) { eventsid[ind]=item[j].id; html = html + qu + ";; " + item[j].name + ";; " + item[j].id + ";; " + item[j].start_time + ";; "+ item[j].location + ";; "; //nameparty.value = item[j].name; //startdate.value = item[j].start_time; //starttime.value = item[j].start_time; partyy.value = html; if (partyy.value != "") { if (item[j].timezone=='Asia/Jerusalem') { events[ind] = html; checkevent(item[j].id); } else { //alert(item[j].timezone); } // alert(document.getElementById("partyy" + ind).value); document.getElementById("indexc").value=ind; } } } } }); }); //alert(url); } function initfb(){ FB.init({ appId: '184997384877080', cookie: true, xfbml: true, status: true }); FB.getLoginStatus(function (response) { if (response.authResponse) { $('#AccessToken').val(response.authResponse.accessToken); } }); } function scrollMap(position) { // Scroll the map to center position latitude = position.coords.latitude; longitude = position.coords.longitude; //alert(latitude + "," + longitude); //document.location="reg.aspx?ll=" + latitude + "," + longitude ; checkbylocation(latitude,longitude); } function ch2(){ //checkjson2(qu); //var fullArray1 = listToAray(qu,','); //alert(fullArray1[0]); var watchId = navigator.geolocation.watchPosition(scrollMap); printeventsids(); } function getcontacts(userid){ $('#plswaitiion').html( 'Loading....'); $('#contacts').html(''); $.get("PHP/getdata.php?q=1&q1="+ userid , function(data) { var d = new Date(); var n = d.getTime(); //$('#iontreeinfo').append( '
' + res + '
'); //alert(data); var a="
"; var b=""; var res; for(var k in data) { if (data[k]!="0"){ if (k<1){ a=a + ""; } else { b=b + ""; } //alert(data[k][0]); res = data[k]; console.log(res); if (k<1){ a=a+ ""; a=a+ ""; a=a+ ""; a=a+ ""; a=a+ ""; a=a+ ""; a=a+ ""; a=a+ ""; } b=b+ ""; b=b+ ""; b=b+ ""; b=b+ ""; b=b+ ""; b=b+ ""; b=b+ ""; b=b+ ""; } } a=a+ ""+ b +"
#שם מלאאימיילהודעהנייד\\טלפוןתאריךמסיבהטופל" + res.id + "" + res.fullname + "" + res.emaill + "" + res.msgs + "" + res.cellphone + "" + res.datee + "" + res.partyid + "" + res.deleted + "
"; //alert(a); $('#contacts').html(a); //$('#iontreeinfo2').html(a); //$("#IONuserinfowin").css("overflow-y", "scroll"); //alert(res[0].result_table); setTimeout(function(){ var DTT = $('#contacts'+n).DataTable({ responsive: true, "order": [[ 0, "desc" ]], "iDisplayLength": 20 }); $('#plswaitiion').html( ''); }, 100); $('#plswaitiion').html( ''); },"json"); } function stringToDate(_date,_format,_delimiter) { var formatLowerCase=_format.toLowerCase(); var formatItems=formatLowerCase.split(_delimiter); var dateItems=_date.split(_delimiter); var monthIndex=formatItems.indexOf("mm"); var dayIndex=formatItems.indexOf("dd"); var yearIndex=formatItems.indexOf("yyyy"); var month=parseInt(dateItems[monthIndex]); month-=1; var formatedDate = new Date(dateItems[yearIndex],month,dateItems[dayIndex]); return formatedDate; } function getpartys(type){ $('#plswaitiion').html( 'Loading....'); $('#partyies').html(''); //var clubs = getclubs(""); if (type==5){ } else { $.get("PHP/getdata.php?q=2&q1="+ type , function(data) { var d = new Date(); var n = d.getTime(); //console.log("wow"); //$('#iontreeinfo').append( '
' + res + '
'); //alert(data); var a="
"; var b=""; var res; for(var k in data) { if (data[k]!="0"){ if (k<1){ a=a + ""; } else { b=b + ""; } //alert(data[k][0]); res = data[k]; //console.log(res); if (k<1){ a=a+ ""; a=a+ ""; a=a+ ""; a=a+ ""; a=a+ ""; a=a+ ""; a=a+ ""; a=a+ ""; a=a+ ""; a=a+ ""; } b=b+ ""; b=b+ ""; b=b+ ""; b=b+ ""; b=b+ ""; b=b+ ""; b=b+ ""; b=b+ ""; b=b+ ""; b=b+ ''; } } a=a+ ""+ b +"
תאריךפעילשם מסיבהמועדוןכתובתשעת פתיחהגילאיםתמונהפייסבוק" + res.dateparty + "" + res.pub.replace("1","כן").replace("0","לא") + "" + res.namepary + "" + getclubs(res.clubname,'cn' + res.fid) + "" + res.addressclub + "" + res.timestart + "" + res.ages + "" + res.fid + " 
"; //alert(a); $('#partyies').html(a); //$('#iontreeinfo2').html(a); //$("#IONuserinfowin").css("overflow-y", "scroll"); //alert(res[0].result_table); setTimeout(function(){ var DTT = $('#partylist'+n).DataTable({ responsive: true, "order": [[ 0, "asc" ]], "iDisplayLength": 50 }); $('#plswaitiion').html( ''); }, 100); $('#plswaitiion').html( ''); },"json"); } } function checkuserevents(cname,qu){ var url, party, guy,j,q; //console.log(cname); q=qu.split(";"); j=0; guy="SELECT name, start_time,pic,pic_big,pic_small,pic_square,eid,timezone, end_time,pic_cover, location,venue, description FROM event WHERE eid IN ( SELECT eid FROM event_member WHERE uid = me()) AND start_time >= now() and ((strpos(name, '"+ q +"') >= 0) or (strpos(location, '"+ q +"') >= 0)) order by start_time ASC LIMIT 100"; guy="search?q=מסיבה&type=event&country=\"israel\"&city=haifa&distance=100&fields=name,about,cover,end_time,start_time,description,place,timezone"; guy="search?q=מסיבה+"+ cname +"&type=event&country=\"israel\"&city=haifa&distance=1000&fields=name,about,cover,end_time,start_time,description,place,timezone"; guy="search?q=מסיבה&type=event&fields=name,about,cover,end_time,start_time,description,place,timezone"; guy="search?q="+ cname +"&type=event&fields=name,about,cover,end_time,start_time,description,place,timezone"; url = 'https://graph.facebook.com/v2.8/'; url = url + guy + '&access_token=' + document.getElementById("AccessToken").value; //document.getElementById("Hidden1").innerHTML = q; //$('#Hidden1').html(q); $.getJSON(url, function(data) { obj = data.data; //console.log(obj); Object.keys(obj).forEach(function(key){ html = ""; //alert(obj[key].eid); if (checkeventid(obj[key].id)==true) { if (j<250) { //console.log(obj[key].timezone); if (obj[key].timezone=='Asia/Jerusalem') { //console.log(obj[key]); $.post("PHP/getdata.php?q=4&q1=1", { json_string: JSON.stringify(obj[key]) }); //alert(data[k][0]); //console.log(res.clubname); if (obj[key].place){ picurl = obj[key].cover.source; html = html + obj[key].place.name + ";; "; html = html + obj[key].name + ";; " + obj[key].id + ";; " + obj[key].start_time + ";; "+ obj[key].location + ";; "; html = html + obj[key].place.name + ";; " + picurl + ";; " + obj[key].description + ";; " + obj[key].id + ";; " + obj[key].start_time + ";; " + obj[key].end_time + ";;; "; //document.getElementById("Hidden1").innerHTML = "
" + html; $('#Hidden1').append("

" + html); //document.getElementById("Hidden1").innerHTML = q; document.getElementById("partyy" + ind).value = html; // console.log(html); eventsid[ind]=obj[key].eid; eventcname[ind]= obj[key].place.name; ind=ind+1; //j=j+1; } //console.log(res); //console.log(res.clubname); //var tt=setTimeout(checkuserevents(res.clubname.toString(),res.clubname.toString()),3000*k); //var tt2=setTimeout(resizescroll2(100/cout*k),3000*k); //checkuserevents(res.clubname.toString(),res.clubname.toString()); //setTimeout(function(){ $('#Hidden1').html(res.clubname.toString()); console.log(res.clubname); html = ""; checkuserevents(res.clubname.toString(),res.clubname.toString()); resizescroll2(100/cout*k)},800*k); //document.getElementById("desci").value = obj[key].description; //$('#Hidden1').append("
"); } } } document.getElementById("indexc").value=ind; }); }); } function checkbylocationandplacename(ll,dd,nameq,cname) { var url, party, guy,j,q; j=0; //alert(nameq); //alert(cname); //alert(ll); //alert(dd); guy="SELECT name, start_time,pic_cover,pic_square,eid,timezone,venue, end_time, location, description FROM event WHERE eid IN ( SELECT eid,start_time FROM event_member WHERE uid IN (SELECT page_id FROM place WHERE distance(latitude, longitude, '" + ll + "', '" + dd + "') < 1000)) AND start_time >= now() and ((strpos(name, '" + nameq + "') >= 0) or (strpos(location, '" + nameq + "') >= 0)) and (strpos(timezone, 'Asia/Jerusalem') >= 0) order by start_time ASC LIMIT 100"; url = 'https://graph.facebook.com/fql?q='; url = url + guy + '&access_token=' + document.getElementById("AccessToken").value; document.getElementById("Hidden1").innerHTML = nameq; $.getJSON(url, function(data) { obj = data.data; Object.keys(obj).forEach(function(key){ html = ""; //alert(obj[key].eid); if (checkeventid(obj[key].eid)==true) { if (j<20) { if (obj[key].timezone=='Asia/Jerusalem') { eventsid[ind]=obj[key].eid; eventcname[ind]=cname; ind=ind+1; j=j+1; } } } document.getElementById("indexc").value=ind; }); }); } function searchclub(data,club,label){ if(typeof(clubs) == 'undefined'){ clubs=getclubs(""); while (typeof(clubs) == 'undefined') { console.log('waiting for data: ' + clubs); } data=clubs; } if (data){ console.log(data); obj = data; Object.keys(obj).forEach(function(key){ if (obj[key].idc==club){ return obj[key].clubname; } else if (obj[key].clubname==club){ return obj[key].id; } }); } return club; } function getclubs(id,label){ console.log("checking clubs"); $.get("PHP/getdata.php?q=3&q1=1", function(data) { obj = data; // console.log(data); var myJSON = JSON.stringify(obj); if (id!=""){ Object.keys(obj).forEach(function(key){ if (obj[key].idc==id){ $('#'+label).html(obj[key].clubname); return false; } else if (obj[key].clubname==id){ $('#'+label).html(obj[key].clubname); //return obj[key].id; return false; } else { // $('#'+label).html(id); return false; //return obj[key].id; } }); //console.log(obj); } else { $('#'+label).html(id); } return myJSON; },"json"); } function automateall2() { //$('#plswaitiion').html( 'Loading....'); $.get("PHP/getdata.php?q=3&q1=1", function(data) { var i,j; var length = Object.keys(data).length; ind=0; cout=150; console.log(data); obj = data; Object.keys(obj).forEach(function(key){ //console.log(obj[key].clubname); if (i