The Rise Of Qatar Airways: From Two A310s To Global Mega Airline


The Rise Of Qatar Airways: From Two A310s To Global Mega Airline – Simple Flying 0 ) { powerkitButtonsIds.push( $( this ).attr( ‘data-id’ ) ); } }); // Generate accounts data. var powerkitButtonsData = {}; if( powerkitButtonsIds.length > 0 ) { powerkitButtonsData = { ‘ids’ : powerkitButtonsIds.join(), ‘post_id’ : powerkitButtonsBox.attr( ‘data-post-id’ ), ‘url’ : powerkitButtonsBox.attr( ‘data-share-url’ ), }; } // Get results by REST API. $.ajax({ type: ‘GET’, url: ‘https://simpleflying.com/wp-json/social-share/v1/get-shares’, data: powerkitButtonsData, beforeSend: function(){ // Add Loading Class. powerkitButtonsBox.addClass( ‘pk-share-buttons-loading’ ); }, success: function( response ) { if ( ! $.isEmptyObject( response ) && ! response.hasOwnProperty( ‘code’ ) ) { // Accounts loop. $.each( response, function( index, data ) { if ( index !== ‘total_count’ ) { // Find Bsa Item. var powerkitButtonsItem = powerkitButtonsBox.find( ‘.pk-share-buttons-item[data-id=”‘ + index + ‘”]’); // Set Count. if ( data.hasOwnProperty( ‘count’ ) && data.count ) { powerkitButtonsItem.removeClass( ‘pk-share-buttons-no-count’ ).addClass( ‘pk-share-buttons-item-count’ ); powerkitButtonsItem.find( ‘.pk-share-buttons-count’ ).html( data.count ); } else { powerkitButtonsItem.addClass( ‘pk-share-buttons-no-count’ ); } } }); if ( powerkitButtonsBox.hasClass( ‘pk-share-buttons-has-total-counts’ ) && response.hasOwnProperty( ‘total_count’ ) ) { var powerkitButtonsTotalBox = powerkitButtonsBox.find( ‘.pk-share-buttons-total’ ); if ( response.total_count ) { powerkitButtonsTotalBox.find( ‘.pk-share-buttons-count’ ).html( response.total_count ); powerkitButtonsTotalBox.show().removeClass( ‘pk-share-buttons-total-no-count’ ); } } } // Remove Loading Class. powerkitButtonsBox.removeClass( ‘pk-share-buttons-loading’ ); }, error: function() { // Remove Loading Class. powerkitButtonsBox.removeClass( ‘pk-share-buttons-loading’ ); } }); }); }); })(jQuery); ]]> 0||rocketlazy_count>0){lazyLoadInstance.update()}});var b=document.getElementsByTagName(“body”)[0];var config={childList:!0,subtree:!0};observer.observe(b,config)}},!1)]]>

Source

Leave a Comment

Your email address will not be published. Required fields are marked *