Easter Lego

During the Easter holidays I found myself rather bored at points, thus, given the amount of Lego in my room, I did the only logical thing:

jQuery(document).ready(function($) {

// We only want these styles applied when javascript is enabled
$(‘.gal_content’).css(‘display’, ‘block’);
$(‘.thumnail_col’).css(‘width’, ‘181px’);

// Initialize Advanced Galleriffic Gallery
var gallery = $(‘#thumbs_41_2’).galleriffic({
delay: 3500,
numThumbs: 14,
preloadAhead: 14,
enableTopPager: 1,
enableBottomPager: false,
imageContainerSel: ‘#slideshow_41_2’,
controlsContainerSel: ‘#controls_41_2’,
captionContainerSel: ‘#caption_41_2’,
loadingContainerSel: ‘#loading_41_2’,
renderSSControls: true,
renderNavControls: true,
playLinkText: ‘Play Slideshow’,
pauseLinkText: ‘Pause Slideshow’,
prevLinkText: ‘‹ Previous Photo’,
nextLinkText: ‘Next Photo ›’,
nextPageLinkText: ‘›’,
prevPageLinkText: ‘‹’,
enableHistory: 0,
autoStart: 0,
enableKeyboardNavigation: true,
syncTransitions: 1,
defaultTransitionDuration: 300,

onTransitionOut: function(slide, caption, isSync, callback) {
slide.fadeTo(this.getDefaultTransitionDuration(isSync), 0.0, callback);
caption.fadeTo(this.getDefaultTransitionDuration(isSync), 0.0);
},
onTransitionIn: function(slide, caption, isSync) {
var duration = this.getDefaultTransitionDuration(isSync);
slide.fadeTo(duration, 1.0);

// Position the caption at the bottom of the image and set its opacity
var slideImage = slide.find(‘img’);
caption.width(slideImage.width())
.css({
//’bottom’ : Math.floor((slide.height() – slideImage.outerHeight()) / 2 – 40),
‘top’ : slideImage.outerHeight(),
‘left’ : Math.floor((slide.width() – slideImage.width()) / 2) + slideImage.outerWidth() – slideImage.width()
})
.fadeTo(duration, 1.0);

},
onPageTransitionOut: function(callback) {
this.hide();
setTimeout(callback, 100); // wait a bit
},
onPageTransitionIn: function() {
var prevPageLink = this.find(‘a.prev’).css(‘display’, ‘none’);
var nextPageLink = this.find(‘a.next’).css(‘display’, ‘none’);

// Show appropriate next / prev page links
if (this.displayedPage > 0)
prevPageLink.css(‘display’, ‘block’);

var lastPage = this.getNumPages() – 1;
if (this.displayedPage < lastPage)
nextPageLink.css('display', 'block');

this.fadeTo('fast', 1.0);
}

});

/**************** Event handlers for custom next / prev page links **********************/

gallery.find('a.prev').click(function(e) {
gallery.previousPage();
e.preventDefault();
});

gallery.find('a.next').click(function(e) {
gallery.nextPage();
e.preventDefault();
});

});

As usual sorry about the quality of the pictures, I’m terrible at keeping my hand steady for them.

I’m not sure what I was expecting when I started making this, it looks rather more like it’s from Bioshock than intended. I also didn’t expect it to be this yellow, but then realised I didn’t have enough dark grey pieces.
I have actually made quite a few Lego models over the last couple of years, I’ll probably blog about them too before too long.