| /******************************************************************************* | |
| * Copyright (c) 2010, 2012 EclipseSource and others. | |
| * All rights reserved. This program and the accompanying materials | |
| * are made available under the terms of the Eclipse Public License v1.0 | |
| * which accompanies this distribution, and is available at | |
| * http://www.eclipse.org/legal/epl-v10.html | |
| * | |
| * Contributors: | |
| * EclipseSource - initial API and implementation | |
| ******************************************************************************/ | |
| ( function() { | |
| var getURLParam = function( name ) { | |
| var result = null; | |
| var href = window.location.href; | |
| var hashes = href.slice( href.indexOf( "?" ) + 1).split( "&" ); | |
| for( var i = 0; i < hashes.length; i++ ) { | |
| var hash = hashes[ i ].split( "=" ); | |
| if( hash[ 0 ] === name ) { | |
| result = hash[ 1 ]; | |
| } | |
| } | |
| return result; | |
| }; | |
| qxvariants = {}; | |
| qxvariants[ "qx.compatibility" ] = "off"; | |
| qxvariants[ "qx.aspects" ] = "off"; | |
| qxvariants[ "qx.debug" ] = getURLParam( "debug" ) === "off" ? "off" : "on"; | |
| } )(); |