Plugin Directory

Changeset 827601


Ignore:
Timestamp:
12/23/2013 06:44:30 PM (12 years ago)
Author:
Irena0575
Message:

fancy new feature: display better on mobile

Location:
is-circular-photo-gallery/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • is-circular-photo-gallery/trunk/js/iscirculargallery.js

    r826253 r827601  
    11/**
    2  *  IS Circular Photo Gallery 1.6
     2 *  IS Circular Photo Gallery 1.7
    33 *
    44 *    This provides an Polaroid style gallery plus
     
    351351                largerimage.style.WebkitBorderRadius =  0 + 'px';   
    352352               
    353                 var isChrome = !!window.chrome;
    354                
    355                     if (isChrome = 'true')  {           
    356    
    357         if (this.images_width<this.images_height) {
     353                    if (this.images_width<this.images_height) {
    358354   
    359355      largerimage.style.top =this.images_top + this.images_height/2 - parseFloat(largerimage.style.height)/2 - 2 * parseFloat(this.largerimg_div.style.borderWidth) - 6 + 'px';
    360356        }
    361         else{
     357        else {
    362358       
    363359            largerimage.style.top =this.images_top + this.images_height/2 - parseFloat(largerimage.style.height)/2 - 2 * parseFloat(this.largerimg_div.style.borderWidth) - 6 + 'px';           
    364             }
    365             }
    366            
    367             else {
    368            
    369         if (this.conf_nocaptions = 'true') {           
    370    
    371         if (this.images_width<this.images_height) {
    372    
    373       largerimage.style.top =this.images_top + this.images_height/2 - parseFloat(largerimage.style.height)/2 - 2 * parseFloat(this.largerimg_div.style.borderWidth) - 6 + 'px';
    374         }
    375         else{
    376        
    377             largerimage.style.top =this.images_top + this.images_height/2 - parseFloat(largerimage.style.height)/2 - 2 * parseFloat(this.largerimg_div.style.borderWidth) - 6 + 'px';           
    378             }
    379             }
    380         else {     
    381    
    382         if (this.images_width<this.images_height) {
    383    
    384       largerimage.style.top =this.images_top + this.images_height/2 - parseFloat(largerimage.style.height)/2 - 4 * parseFloat(this.largerimg_div.style.borderWidth) + 2 + 'px';
    385         }
    386         else{
    387        
    388             largerimage.style.top =this.images_top + this.images_height/2 - parseFloat(largerimage.style.height)/2 - 4 * parseFloat(this.largerimg_div.style.borderWidth) + 2 + 'px';           
    389             }
    390             }
    391            
    392         }
     360            }   
     361           
     362           
     363   
     364 
     365
     366 if(typeof window.orientation !== 'undefined'){
     367largerimage.style.top =this.images_top + this.images_height/2 - parseFloat(largerimage.style.height)/2 - 2 * parseFloat(this.largerimg_div.style.borderWidth) + 30 + 'px';   
     368   
     369    }
     370
     371
     372   
     373  if(window.innerWidth <= 640 && window.innerHeight <= 966) {
     374     largerimage.style.top =this.images_top + this.images_height/2 - parseFloat(largerimage.style.height)/2 - 2 * parseFloat(this.largerimg_div.style.borderWidth) + 30 + 'px';   
     375   
     376   } else {
     377     largerimage.style.top =this.images_top + this.images_height/2 - parseFloat(largerimage.style.height)/2 - 2 * parseFloat(this.largerimg_div.style.borderWidth) - 6 + 'px';   
     378   
     379   }
     380   
     381   
     382 
     383
    393384           
    394385        largerimage.style.borderColor = this.largerimg_div.style.borderColor;
     
    537528
    538529    this.caption_div.style.borderWidth=this.largerimg_div.style.borderWidth;
    539    
    540    
    541     if (this.images_width<this.images_height) {
    542 
    543      this.caption_div.style.top =this.images_top + this.images_height/2 + parseFloat(this.caption_div.style.width)/2 + parseFloat(this.caption_div.style.borderWidth) - 4 * parseFloat(this.largerimg_div.style.borderWidth) - 5 + 'px';
    544     }
    545     else {
    546 
    547          this.caption_div.style.top =this.images_top + this.images_height/2 + parseFloat(this.caption_div.style.width)/2 + parseFloat(this.caption_div.style.borderWidth) - 4 * parseFloat(this.largerimg_div.style.borderWidth) - 5 + 'px';
    548         }
     530
     531
     532  if(window.innerWidth <= 640 && window.innerHeight <= 966) {
     533             this.caption_div.style.top =this.images_top + this.images_height/2 + parseFloat(this.caption_div.style.width)/2 + parseFloat(this.caption_div.style.borderWidth) - 4 * parseFloat(this.largerimg_div.style.borderWidth) + 35 + 'px';
     534       
     535    }
     536        else { 
     537             this.caption_div.style.top =this.images_top + this.images_height/2 + parseFloat(this.caption_div.style.width)/2 + parseFloat(this.caption_div.style.borderWidth) - 4 * parseFloat(this.largerimg_div.style.borderWidth) - 5 + 'px';
     538       
     539        }
     540       
     541       
     542
    549543
    550544        if (this.images_width<this.images_height) {
  • is-circular-photo-gallery/trunk/readme.txt

    r826253 r827601  
    7373== Changelog ==
    7474
     75Version 1.7 (December 23, 2013)
     76
     77* Display better on mobile devices
     78
    7579Version 1.6 (December 20, 2013)
    7680
  • is-circular-photo-gallery/trunk/wp-iscircularphoto.php

    r826253 r827601  
    44Plugin URI: http://www.polaroidgallery.hostoi.com
    55Description: WordPress implementation of the circular picture gallery.
    6 Version: 1.6
     6Version: 1.7
    77Author: I. Savkovic
    88Author URI: http://www.polaroidgallery.hostoi.com
Note: See TracChangeset for help on using the changeset viewer.