Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var $container = false;
- var numeroFeeds = 20;
- posicaoScroll = $(document).height();
- var updateFeed = function(limite) {
- $('.social-feed-container').socialfeed({
- // FACEBOOK
- facebook: {
- accounts: ['@jointecnologiai'],
- limit: limite,
- source: 'all',
- access_token: '150849908413827|a20e87978f1ac491a0c4a721c961b68c'
- },
- /*// Twitter
- twitter: {
- accounts: ["@mateus_quevedo"],
- limit: limite,
- consumer_key: 'K7VOGoc0kL7clpg0YYlnS7knD', // make sure to have your app read-only
- consumer_secret: 'ekUo6A3FTZZZG00SBRxsHInxaZgEqxirOxMrb6pfaadHaUzsXL', // make sure to have your app read-only
- },*/
- // GENERAL SETTINGS
- length: 200,
- show_media: true,
- callback: function() {
- console.log("todos os feeds carregados");
- var $container = $('.social-feed-container').imagesLoaded( function() {
- // initialize Packery after all images have loaded
- $container.packery({
- itemSelector: '.social-feed-element',
- gutter: 20
- });
- });
- }
- });
- if($container) {
- $container.packery('destroy');
- setTimeout(function(){
- console.log("ok");
- var $container = $('.social-feed-container').imagesLoaded( function() {
- // initialize Packery after all images have loaded
- $container.packery({
- itemSelector: '.social-feed-element',
- gutter: 20
- });
- });
- $("html, body").animate({
- scrollTop: posicaoScroll
- }, 1000);
- console.log("mudou?"+posicaoScroll);
- }, 3000);
- setTimeout(function(){
- $("body").removeAttr("style");
- $("#loader").fadeOut();
- }, 4000);
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement