Advertisement
Guest User

Untitled

a guest
Apr 28th, 2014
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.    jQuery(document).ready(function() {
  2.       jQuery('#aptftbytap_domain-2-AlpinePhotoTiles_container').addClass('loading');
  3.     });
  4.    
  5.     // Check for on() ( jQuery 1.7+ )
  6.     if( jQuery.isFunction( jQuery(window).on ) ){
  7.       jQuery(window).on('load', function(){
  8.         jQuery('#aptftbytap_domain-2-AlpinePhotoTiles_container').removeClass('loading');
  9.        
  10.         var alpineLoadPlugin = function(){
  11.           jQuery('#aptftbytap_domain-2-hidden-parent').AlpinePhotoTilesPlugin({
  12.             id:'aptftbytap_domain-2',
  13.             style:'wall',
  14.             shape:'rectangle',
  15.             perRow:10,
  16.             imageBorder:0,
  17.             imageShadow:0,
  18.             imageCurve:1,
  19.             imageHighlight:0,
  20.             lightbox:0,
  21.             galleryHeight:0, // Keep for Compatibility
  22.             galRatioWidth:800,
  23.             galRatioHeight:600,
  24.             highlight:'#64a2d8',
  25.             pinIt:0,
  26.             siteURL:'http://localhost/',
  27.             callback: ''
  28.           });
  29.         }
  30.        
  31.         // Load Alpine Plugin
  32.         if( jQuery().AlpinePhotoTilesPlugin ){
  33.           alpineLoadPlugin();
  34.         }else{ // Load Alpine Script and Style
  35.           var css = 'http://localhost/wp-content/plugins/alpine-photo-tile-for-tumblr/css/AlpinePhotoTiles_style.css';
  36.           var link = jQuery(document.createElement('link')).attr({'rel':'stylesheet','href':css,'type':'text/css','media':'screen'});
  37.           jQuery.getScript('http://localhost/wp-content/plugins/alpine-photo-tile-for-tumblr/js/AlpinePhotoTiles_script.js', function(){
  38.             if(document.createStyleSheet){
  39.               document.createStyleSheet(css);
  40.             }else{
  41.               jQuery('head').append(link);
  42.             }
  43.             alpineLoadPlugin();
  44.           }); // Close getScript
  45.         }
  46.       });
  47.     }else{
  48.       // Otherwise, use bind()
  49.       jQuery(window).bind('load', function(){
  50.         jQuery('#aptftbytap_domain-2-AlpinePhotoTiles_container').removeClass('loading');
  51.        
  52.         var alpineLoadPlugin = function(){
  53.           jQuery('#aptftbytap_domain-2-hidden-parent').AlpinePhotoTilesPlugin({
  54.             id:'aptftbytap_domain-2',
  55.             style:'wall',
  56.             shape:'rectangle',
  57.             perRow:10,
  58.             imageBorder:0,
  59.             imageShadow:0,
  60.             imageCurve:1,
  61.             imageHighlight:0,
  62.             lightbox:0,
  63.             galleryHeight:0, // Keep for Compatibility
  64.             galRatioWidth:800,
  65.             galRatioHeight:600,
  66.             highlight:'#64a2d8',
  67.             pinIt:0,
  68.             siteURL:'http://localhost',
  69.             callback: ''
  70.           });
  71.         }
  72.        
  73.         // Load Alpine Plugin
  74.         if( jQuery().AlpinePhotoTilesPlugin ){
  75.           alpineLoadPlugin();
  76.         }else{ // Load Alpine Script and Style
  77.           var css = 'http://localhost/wp-content/plugins/alpine-photo-tile-for-tumblr/css/AlpinePhotoTiles_style.css';
  78.           var link = jQuery(document.createElement('link')).attr({'rel':'stylesheet','href':css,'type':'text/css','media':'screen'});
  79.           jQuery.getScript('http://localhost/wp-content/plugins/alpine-photo-tile-for-tumblr/js/AlpinePhotoTiles_script.js', function(){
  80.             if(document.createStyleSheet){
  81.               document.createStyleSheet(css);
  82.             }else{
  83.               jQuery('head').append(link);
  84.             }
  85.             alpineLoadPlugin();
  86.           }); // Close getScript
  87.         }
  88.       });
  89.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement