public/js/pipe.js
function twitterOneUpClickHandler(e){

    closeOneUp()    
    
    var standardResUrl = $(e.target).attr('data-standard-resolution') // e.target.dataset.standardResolution
    var img = new Image()

    $spin.show()

    img.src = standardResUrl
    img.onload = function(){
      
      $spin.hide()
      
      $oneUpTwitter
        .prepend(img)
        
      var $oneUpContainer = $photoPickerTwitter.find('.one-up-wrapper')

      positionFromTop( $photoPickerTwitter, $oneUpContainer )

      showOverlay()

      $oneUpTwitter
        .find('> .close-one-up:first')
        .show()
        .end()
        .show()
        
    }
    
  }
function twitterOneUpClickHandler(e){

    closeOneUp()    
    
    var standardResUrl = $(e.target).attr('data-standard-resolution') // e.target.dataset.standardResolution
    var img = new Image()

    $spin.show()

    img.src = standardResUrl
    img.onload = function(){
      
      $spin.hide()
      
      $oneUpTwitter
        .prepend(img)
        
      var $oneUpContainer = $photoPickerTwitter.find('.one-up-wrapper')

      positionFromTop( $photoPickerTwitter, $oneUpContainer )

      showOverlay()

      $oneUpTwitter
        .find('> .close-one-up:first')
        .show()
        .end()
        .show()
        
    }
    
  }
function twitterOneUpClickHandler ( e ) { closeOneUp ( ) var standardResUrl = $ ( e . target ) . attr ( 'data-standard-resolution' ) // e.target.dataset.standardResolution var img = new Image ( ) $spin . show ( ) img . src = standardResUrl img . onload = function ( ) { $spin . hide ( ) $oneUpTwitter . prepend ( img ) var $oneUpContainer = $photoPickerTwitter . find ( '.one-up-wrapper' ) positionFromTop ( $photoPickerTwitter , $oneUpContainer ) showOverlay ( ) $oneUpTwitter . find ( '> .close-one-up:first' ) . show ( ) . end ( ) . show ( ) } }
Fetch twitter image and show in one up
Fetch twitter image and show in one up