Dan’s messages to Weapons Manufacturers

var lightbox_transition = 'fade'; var lightbox_speed = 800; var lightbox_fadeOut = 300; var lightbox_title = false; var lightbox_scalePhotos = true; var lightbox_scrolling = false; var lightbox_opacity = 0.401; var lightbox_open = false; var lightbox_returnFocus = true; var lightbox_trapFocus = true; var lightbox_fastIframe = true; var lightbox_preloading = true; var lightbox_overlayClose = true; var lightbox_escKey = true; var lightbox_arrowKey = false; var lightbox_loop = true; var lightbox_closeButton = true; var lightbox_previous = "previous"; var lightbox_next = "next"; var lightbox_close = "close"; var lightbox_html = false; var lightbox_photo = false; var lightbox_width = '1000'; var lightbox_height = ''; var lightbox_innerWidth = 'false'; var lightbox_innerHeight = 'false'; var lightbox_initialWidth = '400'; var lightbox_initialHeight = '400'; var maxwidth=jQuery(window).width(); if(maxwidth>1100){maxwidth=1100;} var lightbox_maxWidth = "100%"; var lightbox_maxHeight = "100%"; var lightbox_slideshow = true; var lightbox_slideshowSpeed = 4000; var lightbox_slideshowAuto = true; var lightbox_slideshowStart = "start"; var lightbox_slideshowStop = "stop "; var lightbox_fixed = true; var lightbox_top = false; var lightbox_bottom = false; var lightbox_left = false; var lightbox_right = false; var lightbox_reposition = false; var lightbox_retinaImage = true; var lightbox_retinaUrl = false; var lightbox_retinaSuffix = "@2x.$1"; jQuery(document).ready(function(){ jQuery("#huge_it_gallery_content a[href$='.jpg'], #huge_it_gallery_content a[href$='.png'], #huge_it_gallery_content a[href$='.gif']").addClass('group1'); jQuery(".group1").colorbox({rel:'group1'}); jQuery(".youtube").colorbox({iframe:true, innerWidth:640, innerHeight:390}); jQuery(".vimeo").colorbox({iframe:true, innerWidth:640, innerHeight:390}); jQuery(".iframe").colorbox({iframe:true, width:"80%", height:"80%"}); jQuery(".inline").colorbox({inline:true, width:"50%"}); jQuery(".callbacks").colorbox({ onOpen:function(){ alert('onOpen: colorbox is about to open'); }, onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); }, onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); }, onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); }, onClosed:function(){ alert('onClosed: colorbox has completely closed'); } }); jQuery('.non-retina').colorbox({rel:'group5', transition:'none'}) jQuery('.retina').colorbox({rel:'group5', transition:'none', retinaImage:true, retinaUrl:true}); jQuery("#click").click(function(){ jQuery('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here."); return false; }); }); .element { width:300px; margin:0px 0px 10px 0px; border:0px solid #EEEEEE; border-radius:3px; outline:none; overflow:hidden; } .element .image-block { position:relative; width:300px; } .element .image-block a {display:block;} .element .image-block img { width:300px !important; height:auto; display:block; border-radius: 0px !important; box-shadow: 0 0px 0px rgba(0, 0, 0, 0) !important; } .element .image-block img:hover { cursor: -webkit-zoom-in; cursor: -moz-zoom-in; } .element .image-block .play-icon { position:absolute; top:0px; left:0px; width:100%; height:100%; } .element .image-block .play-icon.youtube-icon {background:url(https://upstatedroneaction.org/wp/wp-content/plugins/gallery-images/Front_end/../images/play.youtube.png) center center no-repeat;} .element .image-block .play-icon.vimeo-icon {background:url(https://upstatedroneaction.org/wp/wp-content/plugins/gallery-images/Front_end/../images/play.vimeo.png) center center no-repeat;} .element .title-block { position:absolute; left:0px; width:100%; padding-top:5px; height:30px; bottom:-35px; background: rgba(0,0,0,0.8) !important; -webkit-transition: bottom 0.3s ease-out 0.1s; -moz-transition: bottom 0.3s ease-out 0.1s; -o-transition: bottom 0.3s ease-out 0.1s; transition: bottom 0.3s ease-out 0.1s; } .element:hover .title-block {bottom:0px;} .element .title-block a, .element .title-block a:link, .element .title-block a:visited { position:relative; margin:0px; padding:0px 1% 0px 2%; width:97%; text-decoration:none; text-overflow: ellipsis; overflow: hidden; white-space:nowrap; z-index:20; font-size: 16px; color:#0074A2; font-weight:normal; } .element .title-block a:hover, .element .title-block a:focus, .element .title-block a:active { color:#2EA2CD; text-decoration:none; }

jQuery(function(){ var defaultBlockWidth=300+20+600; var $container = jQuery('#huge_it_gallery_container'); // add randomish size classes $container.find('.element').each(function(){ var $this = jQuery(this), number = parseInt( $this.find('.number').text(), 10 ); //alert(number); if ( number % 7 % 2 === 1 ) { $this.addClass('width2'); } if ( number % 3 === 0 ) { $this.addClass('height2'); } }); $container.hugeitmicro({ itemSelector : '.element', masonry : { columnWidth : 300+10+0 }, masonryHorizontal : { rowHeight: 'auto' }, cellsByRow : { columnWidth : 300, rowHeight : 'auto' }, cellsByColumn : { columnWidth : 300, rowHeight : 'auto' }, getSortData : { symbol : function( $elem ) { return $elem.attr('data-symbol'); }, category : function( $elem ) { return $elem.attr('data-category'); }, number : function( $elem ) { return parseInt( $elem.find('.number').text(), 10 ); }, weight : function( $elem ) { return parseFloat( $elem.find('.weight').text().replace( /[\(\)]/g, '') ); }, name : function ( $elem ) { return $elem.find('.name').text(); } } }); var $optionSets = jQuery('#huge_it_gallery_options .option-set'), $optionLinks = $optionSets.find('a'); $optionLinks.click(function(){ var $this = jQuery(this); if ( $this.hasClass('selected') ) { return false; } var $optionSet = $this.parents('.option-set'); $optionSet.find('.selected').removeClass('selected'); $this.addClass('selected'); var options = {}, key = $optionSet.attr('data-option-key'), value = $this.attr('data-option-value'); value = value === 'false' ? false : value; options[ key ] = value; if ( key === 'layoutMode' && typeof changeLayoutMode === 'function' ) { changeLayoutMode( $this, options ) } else { $container.hugeitmicro( options ); } return false; }); var isHorizontal = false; function changeLayoutMode( $link, options ) { var wasHorizontal = isHorizontal; isHorizontal = $link.hasClass('horizontal'); if ( wasHorizontal !== isHorizontal ) { var style = isHorizontal ? { height: '100%', width: $container.width() } : { width: 'auto' }; $container.filter(':animated').stop(); $container.addClass('no-transition').css( style ); setTimeout(function(){ $container.removeClass('no-transition').hugeitmicro( options ); }, 100 ) } else { $container.hugeitmicro( options ); } } var $sortBy = jQuery('#sort-by'); jQuery('#shuffle a').click(function(){ $container.hugeitmicro('shuffle'); $sortBy.find('.selected').removeClass('selected'); $sortBy.find('[data-option-value="random"]').addClass('selected'); return false; }); jQuery(window).load(function(){ $container.hugeitmicro('reLayout'); }); });