Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).ready(function() {
- jQuery('#aptftbytap_domain-2-AlpinePhotoTiles_container').addClass('loading');
- });
- // Check for on() ( jQuery 1.7+ )
- if( jQuery.isFunction( jQuery(window).on ) ){
- jQuery(window).on('load', function(){
- jQuery('#aptftbytap_domain-2-AlpinePhotoTiles_container').removeClass('loading');
- var alpineLoadPlugin = function(){
- jQuery('#aptftbytap_domain-2-hidden-parent').AlpinePhotoTilesPlugin({
- id:'aptftbytap_domain-2',
- style:'wall',
- shape:'rectangle',
- perRow:10,
- imageBorder:0,
- imageShadow:0,
- imageCurve:1,
- imageHighlight:0,
- lightbox:0,
- galleryHeight:0, // Keep for Compatibility
- galRatioWidth:800,
- galRatioHeight:600,
- highlight:'#64a2d8',
- pinIt:0,
- siteURL:'http://localhost/',
- callback: ''
- });
- }
- // Load Alpine Plugin
- if( jQuery().AlpinePhotoTilesPlugin ){
- alpineLoadPlugin();
- }else{ // Load Alpine Script and Style
- var css = 'http://localhost/wp-content/plugins/alpine-photo-tile-for-tumblr/css/AlpinePhotoTiles_style.css';
- var link = jQuery(document.createElement('link')).attr({'rel':'stylesheet','href':css,'type':'text/css','media':'screen'});
- jQuery.getScript('http://localhost/wp-content/plugins/alpine-photo-tile-for-tumblr/js/AlpinePhotoTiles_script.js', function(){
- if(document.createStyleSheet){
- document.createStyleSheet(css);
- }else{
- jQuery('head').append(link);
- }
- alpineLoadPlugin();
- }); // Close getScript
- }
- });
- }else{
- // Otherwise, use bind()
- jQuery(window).bind('load', function(){
- jQuery('#aptftbytap_domain-2-AlpinePhotoTiles_container').removeClass('loading');
- var alpineLoadPlugin = function(){
- jQuery('#aptftbytap_domain-2-hidden-parent').AlpinePhotoTilesPlugin({
- id:'aptftbytap_domain-2',
- style:'wall',
- shape:'rectangle',
- perRow:10,
- imageBorder:0,
- imageShadow:0,
- imageCurve:1,
- imageHighlight:0,
- lightbox:0,
- galleryHeight:0, // Keep for Compatibility
- galRatioWidth:800,
- galRatioHeight:600,
- highlight:'#64a2d8',
- pinIt:0,
- siteURL:'http://localhost',
- callback: ''
- });
- }
- // Load Alpine Plugin
- if( jQuery().AlpinePhotoTilesPlugin ){
- alpineLoadPlugin();
- }else{ // Load Alpine Script and Style
- var css = 'http://localhost/wp-content/plugins/alpine-photo-tile-for-tumblr/css/AlpinePhotoTiles_style.css';
- var link = jQuery(document.createElement('link')).attr({'rel':'stylesheet','href':css,'type':'text/css','media':'screen'});
- jQuery.getScript('http://localhost/wp-content/plugins/alpine-photo-tile-for-tumblr/js/AlpinePhotoTiles_script.js', function(){
- if(document.createStyleSheet){
- document.createStyleSheet(css);
- }else{
- jQuery('head').append(link);
- }
- alpineLoadPlugin();
- }); // Close getScript
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement