Created
          October 12, 2012 21:30 
        
      - 
      
 - 
        
Save CodeBuddy/3881633 to your computer and use it in GitHub Desktop.  
    Script 1
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ( function( $, window, document, undefined ) { | |
| var ExtLink = function( a ) { | |
| } | |
| ExtLink.prototype = { | |
| //Iframe height listener on | |
| init: function() { | |
| var docHeight = window.document.height | |
| document.getElementById( 'external-link-frame' ).height = docHeight - 55 | |
| } | |
| // Actually goes to the site we're seing on the iFrame | |
| , closeTopbar: function( originalSite ) { | |
| window.location.href = originalSite; | |
| } | |
| } | |
| // Adds an element to the shopping cart queue | |
| // Inserts the makup as well | |
| , addToCart: function( e ) { | |
| e.preventDefault() | |
| } | |
| var eLink = new ExtLink() | |
| window.eLink = eLink | |
| eLink.init() | |
| })( window.jQuery, this, this.document ) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment