AggressiveLayout.prototype.setDefaults = function() { //standard attributes for the head - note: will only work after generation! this.headParent = document.getElementsByTagName('head')[0] if (window.serverGenerated) //if we are generating this on the server, set some values that only works then. { //what callback is waited for here? window.waitForCallbacks = 1 var pageDescription = "iOS iPhone/iPad & web developer, Aggressive Development develops apps with passion" var json = [ { type: "link", attributes : { rel:"icon", href:"/img/logo_512.png" }}, { type: "link", attributes : { rel:"apple-touch-icon", sizes:"128x128", href:"/img/logo_128.png" }}, { type: "link", attributes : { rel:"apple-touch-icon", sizes:"144x144", href:"/img/logo_144.png" }}, { type: "meta", attributes : { property: "og:image", content: "/img/logo_512.png" }}, { type: "link", attributes : { rel: 'alternate', type: 'application/rss+xml', title: 'Passive-Aggressive Development Blog (RSS)', href:'/blog/article_rss.php?xml=1' }}, { type: "link", attributes : { rel: 'alternate', type: 'application/feed+json', title: 'Passive-Aggressive Development Blog (JSON)', href:'/blog/article_rss.php?json=1' }}, { type: "meta", attributes : { name: "description", content: pageDescription }}, { type: "meta", attributes : { property: "og:description", content: pageDescription }}, { type: "meta", attributes : { name: "author", content: "Aggressive Development" }}, { type: "meta", attributes : { name: "apple-mobile-web-app-capable", content: "yes" }}, ] this.layoutJSON(this.headParent, json, { append: 1 }) } // this.setCSSFromSelector("body", { fontSize : "1.2em", lineHeight : "1.5em", }) this.setCSSFromSelector(".icon_container", { textAlign: "center", }) }