Revision: 64019
Updated Code
at June 27, 2013 19:12 by jbernus
Updated Code
/* URL sample: http://bla.com/#altview */ var altviews = { hashTagTrigger : function(){ var hash = location.hash; if(hash){ var hash = hash.replace(/^#/, ''); if(this[hash]) this[hash].init(); } }, altview : { init : function(){ this.css(); this.js(); }, css : function(){ $('body').addClass('alt-view'); }, js : function(){ } }, altview1 : { init : function(){ // Do something } } } altviews.hashTagTrigger();
Revision: 64018
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 27, 2013 19:10 by jbernus
Initial Code
/* URL sample: http://bla.com/#altview var altviews = { hashTagTrigger : function(){ var hash = location.hash; if(hash){ var hash = hash.replace(/^#/, ''); if(this[hash]) this[hash].init(); } }, altview : { init : function(){ this.css(); this.js(); }, css : function(){ $('body').addClass('alt-view'); }, js : function(){ } }, altview1 : { init : function(){ // Do something } } } altviews.hashTagTrigger();
Initial URL
Initial Description
Show alternative views of your page, depending on a hashtag
Initial Title
Alternative views based on hashtag
Initial Tags
javascript
Initial Language
JavaScript