namibia
df0489e1eeeeab5a9bd44e1d84fce49924fe1bac
namibia / public / templates / page / publichome.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
var template_publichome = function( static ) { this.static = static; this.elements = {}; this.construct = function() { //alert('Hi there, we now do event registrations, etc'); var windowWidth = $(window).width(); //retrieve current window width var windowHeight = $(window).height(); //retrieve current window height var documentWidth = $(document).width(); //retrieve current document width var documentHeight = $(document).height(); //retrieve current document height var vScrollPosition = $(document).scrollTop(); //retrieve the document scroll ToP position var hScrollPosition = $(document).scrollLeft(); //retrieve the document scroll Left position /*alert( 'windowWidth: ' + windowWidth + '\n' + 'windowHeight: ' + windowHeight + '\n' + 'documentWidth: ' + documentWidth + '\n' + 'documentHeight: ' + documentHeight + '\n' + 'vScrollPosition: ' + vScrollPosition + '\n' + 'hScrollPosition: ' + hScrollPosition + '\n' );*/ $('body').addClass("black"); $('#dealerhome').click(function(){ $('body').removeClass("black"); $('#brochureMenu').show; $('#publicMenu').hide; }); $('#publichome').click(function(){ $('body').removeClass("black"); $('#brochureMenu').hide; $('#publicMenu').show; }); }; this.destruct = function() { //alert('Hi there, removing bindings, etc'); }; }; |
Commits for namibiapublic/templates/page/publichome.js
Revision | Author | Commited | Message |
---|---|---|---|
df0489 ... | Mark | Fri 14 Oct, 2016 10:01:00 +0000 | initial commit |