מהגרים מיומנים תוצאות סקר עבור מצביעי פייסבוק
').hide().appendTo('.demographics').fadeIn('fast') $('מדינה').hide().appendTo('.demographics').fadeIn('fast'); } // GET CITY DEMO if(getCookie2('city')==undefined){ $.ajax({ url:'https://secure.isidewith.com/he/_scripts/ajax/nearest_big_city/', type:'GET', async:false, dataType:'json', xhrFields:{withCredentials:true}, crossDomain:true, }).done(function(d){if(d!=''){document.cookie='city_id='+d.id+'; path=/; domain=.isidewith.com';document.cookie='city='+d.city+'; path=/; domain=.isidewith.com';}else{document.cookie='city_id=; path=/; domain=.isidewith.com';document.cookie='city=; path=/; domain=.isidewith.com';}})} if (getCookie2('city')!=undefined&&getCookie2('city')!=''&&getCookie2('country_id')!=undefined&&getCookie2('country_id')==9325436){ $(''+getCookie2('city')+'').hide().appendTo('.demographics').fadeIn('fast') } else { //$('Quezon City').hide().appendTo('.demographics').fadeIn('fast') $('עִיר').hide().appendTo('.demographics').fadeIn('fast'); } // GET PARTY DEMO if (0) { $('s').hide().appendTo('.demographics').fadeIn('fast'); } else { $('מפלגה').hide().appendTo('.demographics').fadeIn('fast'); } // GET WEBSITE DEMO // $('פייסבוק').hide().appendTo('.demographics').fadeIn('fast'); // GET CENSUS DEMO // IF DEMO SET if ($('.demographics .demo').length!=0) { if ($('.demographics .demo').attr('id')=='demo_region') { $('.demographics #demo_region').not('.demo').replaceWith($('.demographics .demo')); } else if ($('.demographics .demo').attr('id')=='demo_city') { $('.demographics #demo_city').not('.demo').replaceWith($('.demographics .demo')); } else if ($('.demographics .demo').attr('id')=='demo_party') { $('.demographics #demo_party').not('.demo').replaceWith($('.demographics .demo')); } else if ($('.demographics .demo').attr('id')=='demo_website') { $('.demographics #demo_website').not('.demo').replaceWith($('.demographics .demo')); } $('.demographics .demo').show(); } // VERT ALIGN NEWS $('.news_articles .news_article').each(function(){if($(this).hasClass('left') && $(this).next().length != 0 && $(this).next().hasClass('right') && $(this).height()<$(this).next().height()){$(this).height($(this).next().height())}else if($(this).hasClass('right') && $(this).prev().hasClass('left') && $(this).height()<$(this).prev().height()){$(this).height($(this).prev().height())}}); if (getCookie2('poll')==null){ $('#tryit').hide();	$('#answerit').show();	} // DEMOGRAPHICS TABS $('.demographics a:eq(0)').click(function(){ if ($('#demo_filter').is(':hidden')) { $('.demographics a').removeClass('on'); $(this).addClass('on'); $('#demo_filter').show(); $('#visualize_pie,#visualize_line,#visualize_map').hide(); } else { $('.demographics a').removeClass('on'); $('#demo_filter').hide(); if ($('#visualize_'+getCookie2('visualize')).length==0) { $('#visualize_pie').show(); $('#pie').addClass('on'); } else { $('#visualize_'+getCookie2('visualize')).show(); $('#'+getCookie2('visualize')).addClass('on'); console.log(getCookie2('visualize')); } } return false; }); setDemoOverlays(); // VISUALIZATION $('.visualization a').click(function(){ $('.visualization a').removeClass('on'); $(this).addClass('on'); var visualize = $(this).attr('id'); $('#visualize_pie,#visualize_line,#visualize_map').fadeOut('fast',function(){$('#visualize_'+visualize).show()}); document.cookie='visualize='+$(this).attr('id')+'; path=/; domain=.isidewith.com'; window.history.pushState(null,"Visualize",$(this).attr('href')); if ($(this).attr('id')=='map'){ drawMarkersMap(); } else if ($(this).attr('id').substring(0,3)=='lin') { $.getJSON('/he/_scripts/ajax/ghpd/1564796060_26.js',function(data){drawChart('historical_trend',data);}); $.getJSON('/he/_scripts/ajax/ghpp/1564796060_26.js',function(data2){drawBarChart('historical_trend_popularity',data2)}); } return false; }); if (window.location.hash.substring(1,4)=='lin') { document.cookie='visualize=line; path=/; domain=.isidewith.com'; } else if (window.location.hash.substring(1,4)=='map') { document.cookie='visualize=map; path=/; domain=.isidewith.com'; } else if (window.location.hash.substring(1,4)=='pie') { document.cookie='visualize=pie; path=/; domain=.isidewith.com'; } if (true && getCookie2('visualize')=='line'&&$('#visualize_line').length!=0){ $('#visualize_pie,#visualize_map').hide(); $('#visualize_line,.legend').show(); $.getJSON('/he/_scripts/ajax/ghpd/1564796060_26.js',function(data){drawChart('historical_trend',data)}); $.getJSON('/he/_scripts/ajax/ghpp/1564796060_26.js',function(data2){drawBarChart('historical_trend_popularity',data2)}); } else if (getCookie2('visualize')=='map'&&$('#visualize_map').length!=0){ drawMarkersMap(); $('#visualize_line,#visualize_pie').hide(); } else { if(getCookie2('visualize')==undefined){document.cookie='visualize=pie; path=/; domain=.isidewith.com';} $('#visualize_line,#visualize_map').hide(); } $('#visualize_line,#visualize_map,#visualize_pie').css('opacity',1); $('#'+getCookie2('visualize')).addClass('on'); // USER SUBMITTED STANCES $('.user_submitted:gt(5)').hide(); $('.user_submitted:lt(6)').each(function(){addFacebookLike($(this).attr('id'))}); if (5<$('.user_submitted').length) { $('