<div id="gallery">
<a href="">
<img alt=""
src="images/thumbs/tile2.jpg"
data-image="images/big/tile2.jpg"
data-description=""
style="">
</a>
<a href="">
<img alt=""
src="images/thumbs/tile4.jpg"
data-image="images/big/tile4.jpg"
data-description=""
style="">
</a>
<a href="">
<img alt=""
src="images/thumbs/tile1.jpg"
data-image="images/big/tile1.jpg"
data-description=""
style="">
</a>
<a href="">
<img alt=""
src="images/thumbs/tile7.jpg"
data-image="images/big/tile7.jpg"
data-description=""
style="">
</a>
<a href="">
<img alt=""
src="images/thumbs/tile3.jpg"
data-image="images/big/tile3.jpg"
data-description=""
style="">
</a>
<a href="">
<img alt=""
src="images/thumbs/tile5.jpg"
data-image="images/big/tile5.jpg"
data-description=""
style="">
</a>
<a href="">
<img alt=""
src="images/thumbs/tile6.jpg"
data-image="images/big/tile6.jpg"
data-description=""
style="">
</a>
<a href="">
<img alt=""
src="images/thumbs/tile9.jpg"
data-image="images/big/tile9.jpg"
data-description=""
style="">
</a>
<a class="hide-image" href="">
<img alt=""
src="images/thumbs/tile8.jpg"
data-image="images/big/tile8.jpg"
data-description=""
style="">
</a>
<a class="hide-image" href="">
<img alt=""
src="images/thumbs/tile10.jpg"
data-image="images/big/tile10.jpg"
data-description=""
style="">
</a>
</div>
jQuery("#gallery").unitegallery({
theme_enable_preloader: true, //enable preloader circle
theme_preloading_height: 200, //the height of the preloading div, it show before the gallery
theme_preloader_vertpos: 100, //the vertical position of the preloader
theme_gallery_padding: 0, //the horizontal padding of the gallery from the sides
theme_auto_open:null, //auto open lightbox at start - if some number gived, like 0
tiles_justified_row_height: 50, //base row height of the justified type
tiles_justified_space_between: 1, //space between the tiles justified type
tiles_enable_transition: true, //enable transition when screen width change
tile_enable_overlay: true, //enable tile color overlay (on mouseover)
tile_overlay_opacity: 0.4, //tile overlay opacity
tile_overlay_color: "#222222", //tile overlay color
tile_enable_icons: false, //enable icons in mouseover mode
});
I need to hide the two terminal elements when viewport width is greater than 1280px and viewport height is greater than 720px.
So, I added hide-image class to the selected elements and I wrote this simple statement:
if(w_outer >= 1280 && h_outer >= 720 ){
$('#gallery a.hide-image').remove();
}