1 var template_publichome = function( static )
5 this.construct = function()
7 //alert('Hi there, we now do event registrations, etc');
9 var windowWidth = $(window).width(); //retrieve current window width
10 var windowHeight = $(window).height(); //retrieve current window height
11 var documentWidth = $(document).width(); //retrieve current document width
12 var documentHeight = $(document).height(); //retrieve current document height
13 var vScrollPosition = $(document).scrollTop(); //retrieve the document scroll ToP position
14 var hScrollPosition = $(document).scrollLeft(); //retrieve the document scroll Left position
17 'windowWidth: ' + windowWidth + '\n' +
18 'windowHeight: ' + windowHeight + '\n' +
19 'documentWidth: ' + documentWidth + '\n' +
20 'documentHeight: ' + documentHeight + '\n' +
21 'vScrollPosition: ' + vScrollPosition + '\n' +
22 'hScrollPosition: ' + hScrollPosition + '\n'
28 $('body').addClass("black");
30 $('#dealerhome').click(function(){
31 $('body').removeClass("black");
32 $('#brochureMenu').show;
33 $('#publicMenu').hide;
37 $('#publichome').click(function(){
38 $('body').removeClass("black");
39 $('#brochureMenu').hide;
40 $('#publicMenu').show;
46 this.destruct = function()
48 //alert('Hi there, removing bindings, etc');