2 years and still on The Telegraph

Was just looking at Giggs turns 40 on the Telegraphs website. Reminded me I made this code.

I can’t actually believe its been 2 years since i started writing the code. I thought in 2 years I would have learnt a lot more than I knew back then. Maybe I have, but I still blame libraries that I’ve learnt how to use.

Still its there:
http://www.telegraph.co.uk/template/ver1-0/js/pages/photoGalleryAjax/gpocphotoAjax.core.js


//****************************************************************************
//* Description:
//*
//* Ajax images gallery
//*
//*
//****************************************************************************
//* Author: J Hutber Date: 11/12/2011
//*
//* $Id: photoAJax.core.js,v 1 2011/11/12 09:52:09
//*
//* Updates:
//*
//***************************************************************************

//Rebind console to e
if (typeof console == "object" && typeof console.error == "function") {
function e(msg) {
console.info(msg);
}
}

browserTab = document.title;

ajaxPhotos = {};

ajaxPhotos.isLastFrame = false;
ajaxPhotos.lastFrameDisplayed = false;

var onPropertyChangeHadler = function() {
if (event.propertyName == "title") {
if (window.attachEvent){
document.detachEvent("onpropertychange", onPropertyChangeHadler);
document.title = browserTab;
document.attachEvent("onpropertychange", onPropertyChangeHadler);
}
}
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *