Skip to main content Feedback

City of Bloomington, Indiana

City of Bloomington, Indiana Government Website

<?php /**** Ideal photo dimensions are 495 x 306 with right compositional offset of 100px ****/ $photos = [ ['media' => 20377, 'alt' => 'Learn More', 'url' => '/bike'], [ 'media' => 28412, 'alt' => 'The new website is at bloomington.in.gov', 'url' => 'http://bloomington.in.gov' ], ]; ?> Welcome to Bloomington, IN
    <?php foreach ($photos as $photo) { echo "
  1. Image removed.
  2. "; } ?>
Image removed.Image removed.Image removed.Image removed. function getImage(parent) { var el = parent.firstChild; while (el) { if (el.nodeName.toUpperCase() == "IMG") { return el.src; } el = el.nextSibling; } return ""; } function getAlt(parent) { var el = parent.firstChild; while (el) { if (el.nodeName.toUpperCase() == "IMG") { return el.title; } el = el.nextSibling; } return ""; } function getURL(parent) { var el = parent.firstChild; while (el) { if (el.nodeName.toUpperCase() == "IMG") { return el.alt; } el = el.nextSibling; } return ""; } YAHOO.util.Event.onDOMReady(function (ev) { var isPlayingSlideshow = false; var pause = document.getElementById('pause'); var play = document.getElementById('play'); var back = document.getElementById('back'); var next = document.getElementById('next'); var slidecaption = document.getElementById('slideshow_caption_text'); var clickable_spacer = document.getElementById('clickable_spacer'); var carousel = new YAHOO.widget.Carousel("container", { animation: { speed:2 }, numVisible: 1 }); carousel.on("itemSelected", function (index) { var item = carousel.getElementForItem(index); if (item) { var slideshow = document.getElementById('slideshow'); slideshow.style.backgroundImage = "url(" + getImage(item) + ")"; slidecaption.firstChild.innerHTML = getAlt(item) + ' >>'; slidecaption.firstChild.href = getURL(item); clickable_spacer.firstChild.href = getURL(item); if (isPlayingSlideshow) { carousel.startAutoPlay(); } } }); carousel.set("autoPlayInterval", 3750); carousel.set("isCircular", true); carousel.set("scrollIncrement",1); carousel.render(); // get ready for rendering the widget carousel.show(); // display the widget' startSlideshow(); YAHOO.util.Event.addListener(play, "click", startSlideshow); YAHOO.util.Event.addListener(pause, "click", stopSlideshow); YAHOO.util.Event.addListener(back, "click", previousSlide); YAHOO.util.Event.addListener(next, "click", nextSlide); function stopSlideshow (e) { carousel.stopAutoPlay(); isPlayingSlideshow = false; pause.style.display = 'none'; play.style.display = 'inline'; } function startSlideshow (e) { carousel.selectNextItem(); carousel.startAutoPlay(); isPlayingSlideshow = true; pause.style.display = 'inline'; play.style.display = 'none'; } function previousSlide (e) { carousel.selectPreviousItem(); } function nextSlide (e) { carousel.selectNextItem(); } }); <?php // Setup up minibanner array $minibanners = [ ['url' => '/myBloomington', 'media' => 2198, 'alt' => 'Minibanner myBloomington' ], ['url' => 'http://buildingdashboard.net/bloomington/', 'media' => 9779, 'alt' => 'Minibanner Energy Dashboard' ], ['url' => '/volunteer', 'media' => 3693, 'alt' => 'Minibanner Bloomington Volunteer Network' ], ['url' => '/b-line', 'media' => 3054, 'alt' => 'Minibanner B-Line Trail' ], ['url' => '/subscribe', 'media' => 2229, 'alt' => 'Minibanner Subscribe to Email Lists' ], ['url' => '/animalshelter', 'media' => 2200, 'alt' => 'Minibanner Adopt Today!' ], ['url' => '/bead', 'media' => 3860, 'alt' => 'Minibanner BEAD' ], ['url' => '/bike', 'media' => 17195, 'alt' => 'Minibanner bike-friendly' ], ['url' => '/walk', 'media' => 17197, 'alt' => 'Minibanner walk-friendly' ], ['url' => '/treecare', 'media' => 17196, 'alt' => 'Minibanner tree' ], ['url' => '/civic-webcasts', 'media' => 2199, 'alt' => 'Minibanner CATS Civic Webcasts' ], ['url' => '/inroads', 'media' => 24430, 'alt' => 'inRoads: Bloomington road, sidewalk and parking status information' ], ['url' => '/welcome', 'media' => 24431, 'alt' => 'Welcome to Bloomington' ], ['url' => 'http://fairtradetownsusa.org/towns/in/bloomington/', 'media' => 15490, 'alt' => 'Minibanner Fairtrade Town' ] ]; srand((float)microtime() * 1000000); shuffle($minibanners); // Inject the data portal banner, so that it always shows up $minibanners[0] = [ 'url'=> 'https://bloomington.in.gov/onboard/applicants/apply', 'media' => 27126, 'alt'=> 'OnBoard' ]; $minibanners[1] = [ 'url'=> 'https://data.bloomington.in.gov', 'media' => 27173, 'alt'=> 'BClear' ]; $minibanners[2] = [ 'url'=> 'https://bloomington.in.gov/annex', 'media' => 27755, 'alt'=> 'Annexation' ]; $a = 'Image removed. '; echo ''; for ($i=0; $i<3; $i++) { echo sprintf($a, $minibanners[$i]['url'], $minibanners[$i]['media'], $minibanners[$i]['alt']); } echo ''; for ($i=3; $i<6; $i++) { echo sprintf($a, $minibanners[$i]['url'], $minibanners[$i]['media'], $minibanners[$i]['alt']); } echo ''; ?>

In the Spotlight

<?php $documentList = new DocumentList(); $documentList->find(array('documentType_id'=>5,'section_id'=>183,'featured'=>1,'active'=>date('Y-m-d')),'publishDate desc'); foreach($documentList as $doc) { $title = $doc->getFeature_title() ? View::escape($doc->getFeature_title()) : View::escape($doc->getTitle()); $alt = htmlspecialchars($title,ENT_QUOTES); $description = View::escape($doc->getDescription()); $icon = false; if ($doc->getIcon_media()) { $icon = $doc->getIcon_media(); } elseif($doc->getDocumentType()->getMedia_id()) { $icon = $doc->getDocumentType()->getMedia(); } if ($icon) { $alt = View::escape($icon->getTitle()); $img = "Image removed.getURL('icon')}\" alt=\"$alt\" />"; } else { $img = ''; } echo "

getURL()}\">$title

getURL()}\">$img $description "; } ?>