Skip to content
Snippets Groups Projects
Commit f3d0fced authored by Tilman Vatteroth's avatar Tilman Vatteroth :robot:
Browse files

Anpassungen an den aktuellen layoutloader

parent 33fd6c23
No related branches found
No related tags found
No related merge requests found
/**
* Created by tilman on 30.09.15.
*/
$(document).ready(function(){ $(document).ready(function(){
window.fontsReady = false; window.fontsReady = false;
WebFont.load( { WebFont.load( {
custom : { custom : {
families : ['time-medium', 'time-fat', 'vrr'], families : ['time-medium', 'time-fat', 'vrr', "NewCicle"]
}, },
active : function() { active : function() {
window.fontsReady = true; window.fontsReady = true;
...@@ -10,9 +13,7 @@ $(document).ready(function(){ ...@@ -10,9 +13,7 @@ $(document).ready(function(){
}); });
var params = location.search.replace('?','').split('&').reduce(function(s,c){var t=c.split('=');s[t[0]]=t[1];return s;},{}); var params = location.search.replace('?','').split('&').reduce(function(s,c){var t=c.split('=');s[t[0]]=t[1];return s;},{});
var layoutname = (typeof(params.layout)=="undefined" ? "default" : params.layout); var layoutname = ((typeof(params["layout"])=="undefined" || params["layout"]=="") ? "default" : params["layout"]);
layout.loadLayout(layoutname); layout.loadLayout(layoutname);
});/** });
* Created by tilman on 30.09.15.
*/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment