Official websites use .gov
Secure .gov websites use HTTPS
var gih = 0; var giw = 0; var pup; var g_isDynamic = false;
function popupResize(ibox, w, h, doResize) { if ($(ibox).hasClass('dgov2popup-info')) { // This block is included once, so is shared by all media tokens. // this block is how we execute the special resize for dgov2's slideshow popup dgov2slideshowPopupResize(ibox, w, h, doResize); return; }
if (!g_isDynamic) return;
var isMobile = window.matchMedia('(max-width: 1200px)').matches;
if (isMobile) { $.colorbox.resize({ width: "100%", height: "100%" }); $(ibox).find(".img-responsive").width('100%'); $(ibox).find(".img-responsive").height('auto');
$(ibox).find(".info").css('height', 'auto'); return; }
var iw = w; var ih = h; var ww = $(window).width(); var wh = $(window).height(); var hextra = 40; var wextra = 360; var hborder = 120; var wborder = 120; var maxw = ww - wextra - wborder; var maxh = wh - hextra - hborder; var ratio = Math.min(maxw / iw, maxh / ih);
iw = Math.floor(iw * ratio); // use floor to avoid overflow scrollbar ih = Math.floor(ih * ratio);
// console.log(iw + " " + ih + " --- " + (iw + wextra) + " " + (ih + hextra))
$(ibox).find(".img-responsive").width(iw); $(ibox).find(".img-responsive").height(ih);
$(ibox).find(".info").height(ih);
if (doResize) $.colorbox.resize({ width: iw + wextra, height: ih + hextra }); }
function cboxInit() { $(".popup").click(function () { giw = $(this).data('width'); gih = $(this).data('height'); pup = $($(this).attr('href')); g_isDynamic = $(this).data('dynamic') === 1 ? true : false;
popupResize(pup, giw, gih, false);
var w = "768px"; var isMobile = $(window).width() < 768 ? true : false; w = "auto"; if (isMobile) w = "100%"; const isDgov2Slideshow = $(this).attr("data-isdgov2slideshow") != undefined; const isDGOV2 = true; const slideNumber = parseInt($(this).attr('data-slide-number')); const slideIndex = slideNumber - 1; //console.log("slideNumber for popup", slideNumber) const popupThis = this; $(this).colorbox({ className: 'inline-popup', fixed: true, transition: "none", opacity: .9, inline: true, width: w, height: 'auto', maxWidth: "80%", maxHeight: "100%", close: isDgov2Slideshow || isDGOV2 ? "" : "X", onClosed: function () { }, onComplete: function () { var popupHeight = jQuery(this.href.substring(this.href.lastIndexOf("#"))).outerHeight(true); if (jQuery("#colorbox").height() < popupHeight) { jQuery("#colorbox").height(popupHeight); } if (g_isDynamic) { if (!isMobile) { bodyScrollLock.disableBodyScroll(this); } } // for popup having data-isdgov2slideshow attr (see above) if (isDgov2Slideshow) { const popSelector = '#dgov2popup-target-4035324'; const ssSelector = '#dgov2slideshowId-4035324'; dgov2slideshowPopupInit({ numSlides: 6, startingSlideIndex: slideIndex, popupSelector: popSelector, slideshowSelector: ssSelector, slideshowMediaId: 4035324, }); giw = $(popupThis).data('width'); gih = $(popupThis).data('height'); pup = $($(popupThis).attr('href')); popupResize(pup, giw, gih, true); } $(window).resize(); }, onClosed: function () { pup = undefined; if (g_isDynamic) bodyScrollLock.enableBodyScroll(this); if (isDgov2Slideshow) { const popSelector = '#dgov2popup-target-4035324'; const ssSelector = '#dgov2slideshowId-4035324'; dgov2slideshowPopupDestroy({ popupSelector: popSelector, slideshowSelector: ssSelector, }); } } }); }); } $(window).resize(function () { if (g_isDynamic && pup !== undefined) popupResize(pup, giw, gih, true); }); $(window).load(function () { cboxInit(); $(".popup-slideshow").colorbox({ inline: true, onComplete: function () { SlideshowInit(); $.colorbox.resize(); // stop scrollbar from flashing $("#cboxLoadedContent").css("overflow", ""); $("#cboxLoadedContent").css("overflow-y", "hidden"); }, onClosed: function () { $('.slideshow-gallery').trigger('slideTo', 0); } }); });
Service members from across the armed forces, including Reserve and National Guard components, provided ceremonial and defense support for the events of the 60th Presidential Inauguration in Washington, Jan. 18-20, 2025.
Nearly 8,000 National Guard troops were on duty as part of the sizeable interagency presence to ensure the transition of power, continuing a legacy that began in 1789 when their predecessors escorted George Washington to the first inauguration.
The U.S. Army Band, the U.S. Air Force Band, "The President’s Own" U.S. Marine Band, as well as Honor Guard teams representing all military service branches performed at numerous special events and observances that took place during the days surrounding the inauguration of President Donald J. Trump as the nation's 47th president, alongside Vice President JD Vance.
{{slideNumber}}/{{numSlides}} {{slideTitle}}
{{slideInfo.slideNumber}}/{{numSlides}} {{slideInfo.slideTitle}}
Choose which Defense.gov products you want delivered to your inbox.
The Department of Defense provides the military forces needed to deter war and ensure our nation's security.