diff --git a/VERSION b/VERSION index 90d0d982..e75b1664 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.1-alpha.1+timestamp.2012.12.22.10.53.49 +Version 2.4.1-alpha.1+timestamp.2012.12.22.21.26.15 diff --git a/applications/welcome/static/js/analytics.js b/applications/welcome/static/js/analytics.js deleted file mode 100644 index 3026e3ea..00000000 --- a/applications/welcome/static/js/analytics.js +++ /dev/null @@ -1,805 +0,0 @@ - - - - - - - - - analytics.js/analytics.min.js at master · segmentio/analytics.js · GitHub - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
-
- - - GitHub - GitHub - - - - - - - - -
-
- - - - - - - -
-
- -
-
-
- - - - - -

- public - - - / - analytics.js -

-
- - - - - -
- - - - - - -
- - -
- - branch: master - - -
- -
Switch branches/tags
-
-
- - -
- -
-
-
- -

- gh-pages -

-
-
- -

- master -

-
-
-
Nothing to show
-
- - -
-
-
-
- - - -
- - - - - - - -
-
- -
- - - - - - -
- - -
- - - - - - - -
- - - - - -
-

4 contributors

- - - - - - -
- -
- - -
- -
-
- -
-
-
-
- - file - 4 lines (4 sloc) - 8.997 kb -
- -
-
- - - - - -
-
1
-2
-3
-4
-
-
-
// Analytics.js 0.2.0
// (c) 2012 Segment.io Inc.
// Analytics.js may be freely distributed under the MIT license.
(function(){var e=this,t=!1,n=new Date,r=/.+\@.+\..+/,i=!1,s=window.onload;window.onload=function(){i=!0,c(s)&&s()},e.analytics||(e.analytics={providers:[],userId:null,initialize:function(e){this.providers=[];for(var n in e){var r=o[n];if(!r)throw new Error('Could not find a provider named "'+n+'"');r.initialize(e[n]),this.providers.push(r)}t=!0},identify:function(e,n){if(!t)return;f(e)&&(n=e,e=null),e!==null?this.userId=e:e=this.userId;for(var r=0,i;i=this.providers[r];r++){if(!i.identify)continue;i.identify(e,a(n))}},track:function(e,n){if(!t)return;for(var r=0,i;i=this.providers[r];r++){if(!i.track)continue;i.track(e,a(n))}}});var o={"Google Analytics":{initialize:function(e){this.settings=e=p(e,"trackingId");var t=t||[];t.push(["_setAccount",e.trackingId]);if(this.settings.enhancedLinkAttribution===!0){var n=("https:"==document.location.protocol?"https://ssl.":"http://www.")+"google-analytics.com/plugins/ga/inpage_linkid.js";t.push(["_require","inpage_linkid",n])}this.settings.siteSpeedSampleRate!=null&&typeof this.settings.siteSpeedSampleRate=="number"&&t.push(["_setSiteSpeedSampleRate",this.settings.siteSpeedSampleRate]),this.settings.anonymizeIp===!0&&t.push(["_gat._anonymizeIp"]),t.push(["_trackPageview"]),function(){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}(),window._gaq=t},track:function(e,t){window._gaq.push(["_trackEvent","All",e])}},KISSmetrics:{initialize:function(e){function n(e){setTimeout(function(){var t=document,n=t.getElementsByTagName("script")[0],r=t.createElement("script");r.type="text/javascript",r.async=!0,r.src=e,n.parentNode.insertBefore(r,n)},1)}this.settings=e=p(e,"apiKey");var t=t||[];n("//i.kissmetrics.com/i.js"),n("//doug1izaerwt3.cloudfront.net/"+e.apiKey+".1.js"),window._kmq=t},identify:function(e,t){e&&window._kmq.push(["identify",e]),t&&window._kmq.push(["set",t])},track:function(e,t){window._kmq.push(["record",e,t])}},Mixpanel:{initialize:function(e){this.settings=e=p(e,"token"),function(e,t){window.mixpanel=t;var n,r,i,s;n=e.createElement("script"),n.type="text/javascript",n.async=!0,n.src=("https:"===e.location.protocol?"https:":"http:")+"//cdn.mxpnl.com/libs/mixpanel-2.1.min.js",r=e.getElementsByTagName("script")[0],r.parentNode.insertBefore(n,r),t._i=[],t.init=function(e,n,r){function o(e,t){var n=t.split(".");2==n.length&&(e=e[n[0]],t=n[1]),e[t]=function(){e.push([t].concat(Array.prototype.slice.call(arguments,0)))}}var u=t;"undefined"!=typeof r?u=t[r]=[]:r="mixpanel",u.people=u.people||[],i=["disable","track","track_pageview","track_links","track_forms","register","register_once","unregister","identify","name_tag","set_config","people.identify","people.set","people.increment"];for(s=0;s<i.length;s++)o(u,i[s]);t._i.push([e,n,r])},t.__SV=1.1}(document,window.mixpanel||[]),window.mixpanel.init(e.token,e)},identify:function(e,t){e&&(window.mixpanel.identify(e),window.mixpanel.name_tag(e),h(e)&&(t||(t={}),t.email=e)),t&&(this.aliasTraits(t),window.mixpanel.register(t)),this.settings.people===!0&&(e&&window.mixpanel.people.identify(e),t&&window.mixpanel.people.set(t))},aliasTraits:function(e){e.email&&(e.$email=e.email,delete e.email),e.name&&(e.$name=e.name,delete e.name),e.username&&(e.$username=e.username,delete e.username),e.lastSeen&&(e.$last_login=e.lastSeen,delete e.lastSeen),e.createdAt&&(e.$created=e.createdAt,delete e.createdAt)},track:function(e,t){window.mixpanel.track(e,t)}},Intercom:{initialize:function(e){this.settings=p(e,"appId")},identify:function(e,t){function n(){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="https://api.intercom.io/api/js/library.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}if(!e)return;window.intercomSettings={app_id:this.settings.appId,user_id:e,custom_data:t||{}},t?(t.email&&(window.intercomSettings.email=t.email),t.name&&(window.intercomSettings.name=t.name),t.createdAt&&(window.intercomSettings.created_at=u(t.createdAt))):h(e)&&(window.intercomSettings.email=e),window.attachEvent?window.attachEvent("onload",n):window.addEventListener("load",n,!1)}},"Customer.io":{initialize:function(e){this.settings=e=p(e,"siteId");var t=t||[];(function(){var n,r,i;n=function(e){return function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}},r=["identify","track"];for(i=0;i<r.length;i++)t[r[i]]=n(r[i]);var s=document.createElement("script"),o=document.getElementsByTagName("script")[0];s.async=!0,s.id="cio-tracker",s.setAttribute("data-site-id",e.siteId),s.src="https://assets.customer.io/assets/track.js",o.parentNode.insertBefore(s,o)})(),window._cio=t},identify:function(e,t){if(!e)return;t||(t={});var n=a(t);n.id=e,n.email===undefined&&h(e)&&(n.email=e),n.createdAt&&(n.created_at=u(n.createdAt),delete n.createdAt),window._cio.identify(n)},track:function(e,t){window._cio.track(e,t)}},CrazyEgg:{initialize:function(e){this.settings=e=p(e,"apiKey"),function(){var t=document.createElement("script"),n=document.getElementsByTagName("script")[0];t.src=document.location.protocol+"//dnn506yrbagrg.cloudfront.net/pages/scripts/"+e.apiKey+".js?"+Math.floor((new Date).getTime()/36e5),t.async=!0,t.type="text/javascript",n.parentNode.insertBefore(t,n)}()}},Olark:{initialize:function(e){this.settings=e=p(e,"siteId"),window.olark||function(e){var t=window,n=document,r=t.location.protocol=="https:"?"https:":"http:",i=e.name,s="load",o=function(){function f(){u.P(s),t[i](s)}t[i]=function(){(u.s=u.s||[]).push(arguments)};var u=t[i]._={},a=e.methods.length;while(a--)(function(e){t[i][e]=function(){t[i]("call",e,arguments)}})(e.methods[a]);u.l=e.loader,u.i=o,u.p={0:+(new Date)},u.P=function(e){u.p[e]=new Date-u.p[0]},t.addEventListener?t.addEventListener(s,f,!1):t.attachEvent("on"+s,f);var l=function(){function t(e){return e="head",["<",e,"></",e,"><",s,' onload="var d=',m,";d.getElementsByTagName('head')[0].",a,"(d.",f,"('script')).",c,"='",r,"//",u.l,"'",'"',"></",s,">"].join("")}var s="body",o=n[s];if(!o)return setTimeout(l,100);u.P(1);var a="appendChild",f="createElement",c="src",h=n[f]("div"),p=h[a](n[f](i)),v=n[f]("iframe"),m="document",g="domain",y;h.style.display="none",o.insertBefore(h,o.firstChild).id=i,v.frameBorder="0",v.id=i+"-loader",/MSIE[ ]+6/.test(navigator.userAgent)&&(v.src="javascript:false"),v.allowTransparency="true",p[a](v);try{v.contentWindow[m].open()}catch(b){e[g]=n[g],y="javascript:var d="+m+".open();d.domain='"+n.domain+"';",v[c]=y+"void(0);"}try{var w=v.contentWindow[m];w.write(t()),w.close()}catch(E){v[c]=y+'d.write("'+t().replace(/"/g,String.fromCharCode(92)+'"')+'");d.close();'}u.P(2)};l()};o()}({loader:"static.olark.com/jsclient/loader0.js",name:"olark",methods:["configure","extend","declare","identify"]}),window.olark.identify(e.siteId)},identify:function(e,t){if(!e)return;window.olark("api.chat.updateVisitorNickname",{snippet:e})},track:function(e,t){if(!this.settings.track)return;window.olark("api.chat.sendNotificationToOperator",{body:'Visitor triggered "'+e+'".'})}},Chartbeat:{initialize:function(e){this.settings=e=p(e,"uid");var t={};t.uid=e.uid,t.domain=e.domain||window.location.host,e.path&&(t.path=e.path),e.title&&(t.title=e.title),e.useCanonical&&(t.useCanonical=e.useCanonical),e.sections&&(t.sections=e.sections),e.authors&&(t.authors=e.authors),e.noCookies&&(t.noCookies=e.noCookies),function(){window._sf_endpt=n.getTime();var e=document.createElement("script");e.setAttribute("language","javascript"),e.setAttribute("type","text/javascript"),e.setAttribute("src",("https:"==document.location.protocol?"https://a248.e.akamai.net/chartbeat.download.akamai.com/102508/":"http://static.chartbeat.com/")+"js/chartbeat.js"),document.body.appendChild(e)}()}},HubSpot:{initialize:function(e){this.settings=e=p(e,"portalId"),function(t,n,r,i){if(t.getElementById(r))return;var s=t.createElement(n),o=t.getElementsByTagName(n)[0];s.id=r,s.src="https://js.hubspot.com/analytics/"+Math.ceil(new Date/i)*i+"/"+e.portalId+".js",o.parentNode.insertBefore(s,o)}(document,"script","hs-analytics",3e5)},identify:function(e,t){t&&window._hsq.push(["identify",t])},track:function(e,t){window._hsq.push(["trackEvent",e,t])}}},u=function(e){return Math.floor(new Date(e)/1e3)},a=function(e){if(!e)return;var t={};for(var n in e)t[n]=e[n];return t},f=function(e){return e===Object(e)},l=function(e){return Object.prototype.toString.call(e)==="[object String]"},c=function(e){return Object.prototype.toString.call(e)==="[object Function]"},h=function(e){return r.test(e)},p=function(e,t){if(!l(e)&&!f(e))throw new Error("Could not resolve settings.");if(!t)throw new Error("You must provide an api key field name.");if(l(e)){var n=e;e={},e[t]=n}return e}}).call(this);
-
-
- -
-
-
- - - - -
-
- - - - -
-
-
-
- - -
- - - - - - - - - -
-

Markdown Cheat Sheet

- -
- -
-
-

Format Text

-

Headers

-
-# This is an <h1> tag
-## This is an <h2> tag
-###### This is an <h6> tag
-

Text styles

-
-*This text will be italic*
-_This will also be italic_
-**This text will be bold**
-__This will also be bold__
-
-*You **can** combine them*
-
-
-
-

Lists

-

Unordered

-
-* Item 1
-* Item 2
-  * Item 2a
-  * Item 2b
-

Ordered

-
-1. Item 1
-2. Item 2
-3. Item 3
-   * Item 3a
-   * Item 3b
-
-
-

Miscellaneous

-

Images

-
-![GitHub Logo](/images/logo.png)
-Format: ![Alt Text](url)
-
-

Links

-
-http://github.com - automatic!
-[GitHub](http://github.com)
-

Blockquotes

-
-As Kanye West said:
-
-> We're living the future so
-> the present is our past.
-
-
-
-
- -

Code Examples in Markdown

-
-

Syntax highlighting with GFM

-
-```javascript
-function fancyAlert(arg) {
-  if(arg) {
-    $.facebox({div:'#foo'})
-  }
-}
-```
-
-
-

Or, indent your code 4 spaces

-
-Here is a Python code example
-without syntax highlighting:
-
-    def foo:
-      if not bar:
-        return true
-
-
-

Inline code for comments

-
-I think you should use an
-`<addr>` element here instead.
-
-
- -
- - - -
- - Something went wrong with that request. Please try again. - -
- - - - - - - - diff --git a/applications/welcome/static/js/analytics.min.js b/applications/welcome/static/js/analytics.min.js new file mode 100644 index 00000000..c6af396f --- /dev/null +++ b/applications/welcome/static/js/analytics.min.js @@ -0,0 +1,4 @@ +// Analytics.js 0.2.2 +// (c) 2012 Segment.io Inc. +// Analytics.js may be freely distributed under the MIT license. +(function(){var e={userId:null,date:new Date,loaded:!1,initialized:!1,initializableProviders:{},providers:[],addProvider:function(e,t){this.initializableProviders[e]=t},initialize:function(e){this.providers=[],this.userId=null;for(var t in e){var n=this.initializableProviders[t],r=e[t];if(!n)throw new Error('Could not find a provider named "'+t+'"');n.initialize(r),this.providers.push(n)}this.initialized=!0;var i=this.utils.getUrlParameter(window.location.search,"ajs_uid");i&&this.identify(i);var s=this.utils.getUrlParameter(window.location.search,"ajs_event");s&&this.track(s)},identify:function(e,t){if(!this.initialized)return;this.utils.isObject(e)&&(t=e,e=null),e!==null?this.userId=e:e=this.userId;for(var n=0,r;r=this.providers[n];n++){if(!r.identify)continue;r.identify(e,this.utils.clone(t))}},track:function(e,t){if(!this.initialized)return;for(var n=0,r;r=this.providers[n];n++){if(!r.track)continue;r.track(e,this.utils.clone(t))}},pageview:function(){if(!this.initialized)return;for(var e=0,t;t=this.providers[e];e++){if(!t.pageview)continue;t.pageview()}},utils:{getSeconds:function(e){return Math.floor(new Date(e)/1e3)},clone:function(e){if(!e)return;var t={};for(var n in e)t[n]=e[n];return t},extend:function(e){var t=Array.prototype.slice.call(arguments,1);for(var n=0,r;r=t[n];n++)for(var i in r)e[i]=r[i];return e},alias:function(e,t){for(var n in t){var r=t[n];e[n]!==undefined&&(e[r]=e[n],delete e[n])}},isObject:function(e){return e===Object(e)},isString:function(e){return Object.prototype.toString.call(e)==="[object String]"},isFunction:function(e){return Object.prototype.toString.call(e)==="[object Function]"},isNumber:function(e){return Object.prototype.toString.call(e)==="[object Number]"},isEmail:function(e){return/.+\@.+\..+/.test(e)},resolveSettings:function(e,t){if(!this.isString(e)&&!this.isObject(e))throw new Error("Could not resolve settings.");if(!t)throw new Error("You must provide an api key field name.");if(this.isString(e)){var n=e;e={},e[t]=n}return e},getUrlParameter:function(e,t){var n=e.replace("?","").split("&");for(var r=0;r<",s,' onload="var d=',y,";d.getElementsByTagName('head')[0].",a,"(d.",f,"('script')).",h,"='",r,"//",u.l,"'",'"',">"].join("")}var s="body",o=n[s];if(!o)return setTimeout(p,100);u.P(1);var a="appendChild",f="createElement",h="src",v=n[f]("div"),m=v[a](n[f](i)),g=n[f]("iframe"),y="document",b="domain",w;v.style.display="none",o.insertBefore(v,o.firstChild).id=i,g.frameBorder="0",g.id=i+"-loader",/MSIE[ ]+6/.test(navigator.userAgent)&&(g.src="javascript:false"),g.allowTransparency="true",m[a](g);try{g.contentWindow[y].open()}catch(E){e[b]=n[b],w="javascript:var d="+y+".open();d.domain='"+n.domain+"';",g[h]=w+"void(0);"}try{var S=g.contentWindow[y];S.write(t()),S.close()}catch(x){g[h]=w+'d.write("'+t().replace(/"/g,String.fromCharCode(92)+'"')+'");d.close();'}u.P(2)};p()};o()}({loader:"static.olark.com/jsclient/loader0.js",name:"olark",methods:["configure","extend","declare","identify"]}),window.olark.identify(this.settings.siteId)},identify:function(e,t){var n=e;t&&t.email&&(n=t.email),t&&t.name&&(n=t.name),t&&t.name&&t.email&&(n+=" ("+t.email+")");if(!n)return;window.olark("api.chat.updateVisitorNickname",{snippet:n})},track:function(e,t){if(!this.settings.track)return;window.olark("api.chat.sendNotificationToOperator",{body:'visitor triggered "'+e+'"'})},pageview:function(){if(!this.settings.pageview)return;window.olark("api.chat.sendNotificationToOperator",{body:"looking at "+window.location.href})}}); \ No newline at end of file diff --git a/applications/welcome/views/layout.html b/applications/welcome/views/layout.html index d2fdfa12..55e15b7b 100644 --- a/applications/welcome/views/layout.html +++ b/applications/welcome/views/layout.html @@ -154,7 +154,7 @@ {{if response.google_analytics_id:}} - +