Commit 2a25da18 authored by Sven Franck's avatar Sven Franck

minified all js files (except controller.js)

parent db822ab9
/** @license
* RequireJS plugin for async dependency load like JSONP and Google Maps
* Author: Miller Medeiros
* Version: 0.1.1 (2011/11/17)
* Released under the MIT license
*/
define(function(){
var DEFAULT_PARAM_NAME = 'callback',
_uid = 0;
function injectScript(src){
var s, t;
s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = src;
t = document.getElementsByTagName('script')[0]; t.parentNode.insertBefore(s,t);
}
function formatUrl(name, id){
var paramRegex = /!(.+)/,
url = name.replace(paramRegex, ''),
param = (paramRegex.test(name))? name.replace(/.+!/, '') : DEFAULT_PARAM_NAME;
url += (url.indexOf('?') < 0)? '?' : '&';
return url + param +'='+ id;
}
function uid() {
_uid += 1;
return '__async_req_'+ _uid +'__';
}
return{
load : function(name, req, onLoad, config){
if(config.isBuild){
onLoad(null); //avoid errors on the optimizer
}else{
var id = uid();
window[id] = onLoad; //create a global variable that stores onLoad so callback function can define new module after async load
injectScript(formatUrl(name, id));
}
}
};
});
/*jslint browser: true, indent : 2, nomen : true, sloppy : true */
/*global require: false */
(function () {
"use strict";
var IS_LOCAL = /(:\/\/localhost|file:\/\/)/.test(document.location.href);
// // convert Google Maps into an AMD module
// define('gmaps', ['async!http://maps.google.com/maps/api/js?v=3&sensor=false'],
// function(){
// // return the gmaps namespace for brevity
// return window.google.maps;
// });
require.config({
waitSeconds : (IS_LOCAL? 2 : 45)
, baseUrl: "../js"
// , urlArgs: "bust=" + (new Date()).getTime()
// , enforceDefine: true
, paths: {
controller: 'controller'
, text: 'text'
, overrides: 'overrides'
, jquery: 'libs/jquery/jquery'
, jqm: 'libs/jqm/jqm'
, i18next: 'plugins/i18next/i18next'
, renderjs: 'plugins/renderjs/renderjs'
, route: 'plugins/route/route'
, url: 'plugins/route/url'
, localstorage: 'libs/jio/localstorage'
, queries: 'libs/jio/complex_queries'
, md5: 'libs/jio/md5'
, jio: 'libs/jio/jio'
}
, shim: {
'overrides': { deps: ['jquery'] }
, 'jqm': { deps: ['jquery'], exports: 'mobile' }
, 'i18next': { deps: ['jquery'] }
, 'renderjs': { deps: ['jquery', 'jio', 'md5', 'localstorage', 'queries'] }
, 'route': { deps: ['jquery', 'render'] }
, 'url': { deps: ['jquery', 'render'] }
, 'jio': { deps: ['md5'] }
, 'localstorage': { deps: ['jio'] }
, 'queries': { deps: ['jio'] }
}
});
require(['controller', 'overrides', 'jquery', 'jqm', 'text', 'renderjs', 'jio'],
function (Controller) {
Controller.start();
});
}());
\ No newline at end of file
/*jslint browser: true, continue : true, devel : true, indent : 4, maxerr : 50,
newcap : true, nomen : true, plusplus : true, regexp : true, sloppy : true,
vars : true, white : true */
/*global jQuery: false, $: false, document: false */
(function ($, document) {
"use strict";
$(document).bind("mobileinit", function () {
var evt;
// [JQM] - prevent confilicts with requireJS docReady by triggering JQM manually
$.mobile.autoInitializePage = false;
// [JQM] - disable pushState to ensure URLs will be correct
// $.mobile.pushStateEnabled = false;
// [Google Analytics] - since we are tracking on pageshow the pageshow
// listener in tmp_pagefooter must be wrapped in a javascript function
// which is triggered here. Otherwise $(document).on('pageshow ...
// will throw an error, because when it's parsed on the page, jQuery and
// JQM will not have loaded since we are using requireJS.
//
// Hence the pagefooter has a javascript-only wrapper listening for
// the custom "jqmReady" event. Since you can't listen for custom
// events on IE8, we are using a property named jqmReady (set to 0)
// and instead of triggering jqmReady, we trigger onpropertychange
// by setting increasing the value by 1. On IE8, this will trigger
// onpropertychange inside mobilinit (which only triggers when
// jQuery and JQM have been loaded, which again will trigger the
// pageshow binding inside triggerAnalytics
if (document.createEvent) {
evt = document.createEvent("Event");
evt.initEvent("jqmReady", true, true);
document.dispatchEvent(evt);
// IE8
} else if (document.createEventObject) {
document.documentElement.jqmReady++;
}
});
}(jQuery, document));
\ No newline at end of file
This diff is collapsed.
/** @license
* RequireJS plugin for async dependency load like JSONP and Google Maps
* Author: Miller Medeiros
* Version: 0.1.1 (2011/11/17)
* Released under the MIT license
*/
define(function(){
var DEFAULT_PARAM_NAME = 'callback',
_uid = 0;
function injectScript(src){
var s, t;
s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = src;
t = document.getElementsByTagName('script')[0]; t.parentNode.insertBefore(s,t);
}
function formatUrl(name, id){
var paramRegex = /!(.+)/,
url = name.replace(paramRegex, ''),
param = (paramRegex.test(name))? name.replace(/.+!/, '') : DEFAULT_PARAM_NAME;
url += (url.indexOf('?') < 0)? '?' : '&';
return url + param +'='+ id;
}
function uid() {
_uid += 1;
return '__async_req_'+ _uid +'__';
}
return{
load : function(name, req, onLoad, config){
if(config.isBuild){
onLoad(null); //avoid errors on the optimizer
}else{
var id = uid();
window[id] = onLoad; //create a global variable that stores onLoad so callback function can define new module after async load
injectScript(formatUrl(name, id));
}
}
};
});
define(function(){var e="callback",b=0;function d(h){var g,f;g=document.createElement("script");g.type="text/javascript";g.async=true;g.src=h;f=document.getElementsByTagName("script")[0];f.parentNode.insertBefore(g,f)}function c(g,j){var h=/!(.+)/,f=g.replace(h,""),i=(h.test(g))?g.replace(/.+!/,""):e;f+=(f.indexOf("?")<0)?"?":"&";return f+i+"="+j}function a(){b+=1;return"__async_req_"+b+"__"}return{load:function(g,i,h,f){if(f.isBuild){h(null)}else{var j=a();window[j]=h;d(c(g,j))}}}});
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/*jslint browser: true, indent : 2, nomen : true, sloppy : true */
/*global require: false */
(function () {
"use strict";
var IS_LOCAL = /(:\/\/localhost|file:\/\/)/.test(document.location.href);
// // convert Google Maps into an AMD module
// define('gmaps', ['async!http://maps.google.com/maps/api/js?v=3&sensor=false'],
// function(){
// // return the gmaps namespace for brevity
// return window.google.maps;
// });
require.config({
waitSeconds : (IS_LOCAL? 2 : 45)
, baseUrl: "../js"
// , urlArgs: "bust=" + (new Date()).getTime()
// , enforceDefine: true
, paths: {
controller: 'controller'
, text: 'text'
, overrides: 'overrides'
, jquery: 'libs/jquery/jquery'
, jqm: 'libs/jqm/jqm'
, i18next: 'plugins/i18next/i18next'
, renderjs: 'plugins/renderjs/renderjs'
, route: 'plugins/route/route'
, url: 'plugins/route/url'
, localstorage: 'libs/jio/localstorage'
, queries: 'libs/jio/complex_queries'
, md5: 'libs/jio/md5'
, jio: 'libs/jio/jio'
}
, shim: {
'overrides': { deps: ['jquery'] }
, 'jqm': { deps: ['jquery'], exports: 'mobile' }
, 'i18next': { deps: ['jquery'] }
, 'renderjs': { deps: ['jquery', 'jio', 'md5', 'localstorage', 'queries'] }
, 'route': { deps: ['jquery', 'render'] }
, 'url': { deps: ['jquery', 'render'] }
, 'jio': { deps: ['md5'] }
, 'localstorage': { deps: ['jio'] }
, 'queries': { deps: ['jio'] }
}
});
require(['controller', 'overrides', 'jquery', 'jqm', 'text', 'renderjs', 'jio'],
function (Controller) {
Controller.start();
});
}());
\ No newline at end of file
(function(){var a=/(:\/\/localhost|file:\/\/)/.test(document.location.href);require.config({waitSeconds:(a?2:45),baseUrl:"../js",paths:{controller:"controller",text:"text",overrides:"overrides",jquery:"libs/jquery/jquery",jqm:"libs/jqm/jqm",i18next:"plugins/i18next/i18next",renderjs:"plugins/renderjs/renderjs",route:"plugins/route/route",url:"plugins/route/url",localstorage:"libs/jio/localstorage",queries:"libs/jio/complex_queries",md5:"libs/jio/md5",jio:"libs/jio/jio"},shim:{overrides:{deps:["jquery"]},jqm:{deps:["jquery"],exports:"mobile"},i18next:{deps:["jquery"]},renderjs:{deps:["jquery","jio","md5","localstorage","queries"]},route:{deps:["jquery","render"]},url:{deps:["jquery","render"]},jio:{deps:["md5"]},localstorage:{deps:["jio"]},queries:{deps:["jio"]}}});require(["controller","overrides","jquery","jqm","text","renderjs","jio"],function(b){b.start()})}());
\ No newline at end of file
/*jslint browser: true, continue : true, devel : true, indent : 4, maxerr : 50,
newcap : true, nomen : true, plusplus : true, regexp : true, sloppy : true,
vars : true, white : true */
/*global jQuery: false, $: false, document: false */
(function ($, document) {
"use strict";
$(document).bind("mobileinit", function () {
var evt;
// [JQM] - prevent confilicts with requireJS docReady by triggering JQM manually
$.mobile.autoInitializePage = false;
// [JQM] - disable pushState to ensure URLs will be correct
// $.mobile.pushStateEnabled = false;
// [Google Analytics] - since we are tracking on pageshow the pageshow
// listener in tmp_pagefooter must be wrapped in a javascript function
// which is triggered here. Otherwise $(document).on('pageshow ...
// will throw an error, because when it's parsed on the page, jQuery and
// JQM will not have loaded since we are using requireJS.
//
// Hence the pagefooter has a javascript-only wrapper listening for
// the custom "jqmReady" event. Since you can't listen for custom
// events on IE8, we are using a property named jqmReady (set to 0)
// and instead of triggering jqmReady, we trigger onpropertychange
// by setting increasing the value by 1. On IE8, this will trigger
// onpropertychange inside mobilinit (which only triggers when
// jQuery and JQM have been loaded, which again will trigger the
// pageshow binding inside triggerAnalytics
if (document.createEvent) {
evt = document.createEvent("Event");
evt.initEvent("jqmReady", true, true);
document.dispatchEvent(evt);
// IE8
} else if (document.createEventObject) {
document.documentElement.jqmReady++;
}
});
}(jQuery, document));
\ No newline at end of file
(function(b,a){b(a).bind("mobileinit",function(){var c;b.mobile.autoInitializePage=false;if(a.createEvent){c=a.createEvent("Event");c.initEvent("jqmReady",true,true);a.dispatchEvent(c)}else{if(a.createEventObject){a.documentElement.jqmReady++}}})}(jQuery,document));
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment