Skip to content

Instantly share code, notes, and snippets.

@steveosoule
Created October 18, 2012 00:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steveosoule/3909146 to your computer and use it in GitHub Desktop.
Save steveosoule/3909146 to your computer and use it in GitHub Desktop.
mvscreen.js
var MivaMerchantDesign = {
init: function () {
var mivaScreen = document.body.id;
String.prototype.toCamelCase = function () {
return this.replace(/(\-[a-z])/g, function ($1) {
return $1.toUpperCase().replace('-', '');
});
};
mivaScreen = mivaScreen.toCamelCase();
if (MivaMerchantDesign[mivaScreen]) {
$(document).ready(function () {
MivaMerchantDesign[mivaScreen]();
});
};
$(document).ready(function () {
// Document Ready Code
});
$(window).load(function(){
// Window Load Code Here
});
},
SFNT: function () {
// SFNT Code Goes Here
}
};
MivaMerchantDesign.init();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment