/** * Created by bugg on 17/06/14. */ var SplashScreen = Backbone.View.extend({ events: { 'click .run_query': 'run_query', 'click .run_dashboards': 'run_dashboard', 'click .head' : 'click_head', 'click .beg_tut': 'run_tour' }, click_head: function(event){ event.preventDefault(); var target = event.target; var a = $(target).attr('class').split(' '); $('nav li').removeClass('active'); $(target).parent().addClass('active'); $('.stabs section').hide(); var active = ""; if(a.indexOf("welcome") > -1){ active = "welcome"; } else if(a.indexOf("features") > -1){ active = "features"; } else if(a.indexOf("help") > -1){ active = "help"; } else if(a.indexOf("enterprise") > -1){ active = "enterprise"; } $('#'+active).fadeIn(); }, run_tour: function(){ this.toolbar = Saiku.toolbar; var tour = new Tour({toolbar: this.toolbar}); tour.run_tour(); }, initialize: function(args) { _.bindAll(this, "caption"); _.extend(this, Backbone.Events); }, run_query : function(){ Saiku.tabs.add(new Workspace()); return false; }, run_dashboard : function(){ if(Saiku.Dashboards === undefined){ alert("Please upgrade to Saiku Enterprise for Dashboards") } else { var tab = _.find(Saiku.tabs._tabs, function(tab) { return tab.content instanceof Dashboards; }); if (tab) { tab.select(); } else { Saiku.tabs.add(new Dashboards()); } return false; } return false; }, template: function() { var template = $("

Saiku

Saiku has the power to change" + " the way you think about your business and make decisions. Saiku provides powerful, web based" + " analytics for everyone in your organisation. Quickly and easily analyse data from any data source" + " to discover what is really happening inside and outside your organisation.

Quick" + " Links

" + "

Get Enterprise

" + "

News

" + "

Discover more about Saiku

Saiku Analytics provides both a Community Version and an Enterprise Version with added features. " + "To find out more you can visit our website or watch the videos on our " + "Youtube channel.

" + "

If you are using Saiku Analytics in a business or commercial product, you can help give back in many ways. " + "Swing by our and help foster the community, " + "join the mailing lists and ask/answer questions, sponsor a new feature, " + "or best of all purchase an EE license, which funds development of Saiku Community Edition " + "along with Enterprise Edition.

" + "

Saiku

Features

Web Based Analysis

" + "

Saiku provides the user with an entirely browser based experience. We support all modern browsers, and our user interface is 100% HTML and Javascript. " + "
Saiku uses REST based communications, this allows the development of custom user interfaces and " + "facilitates the easy integration of the Saiku Server into other applications and services.

" + "

Standards Compliant

Saiku is based upon the Microsoft MDX query language and will work on " + "most JDBC compliant data sources. We also provide a number of connectors to NOSQL data sources.

" + "

Dynamic charting

Saiku uses a flexible charting engine to provide a wide range of charts and graphs. " + "These are all HTML & Javascript only and don't require flash to be installed on the computer.

" + "

Pluggable visualisation engine

Saiku Enterprise boasts a fully pluggable visualisation engine. " + "This allows developers to build third party extensions and plug them into Saiku Enterprise to extend or " + "replace the existing visualisations.

" + "

Saiku

" + "

Help

We provide Training, Consulting and Support to ensure " + "you get the most from Saiku and your data. Our services cover all aspects of data analysis including data strategy, " + "design, architecture, deployment and application/software support.

" + "
TutorialsWiki Support
We have a number of click through" + " tutorials to help get your started: " + " Why" + " not try our new Wiki site" + "
for community documentation.
If you require more,
contact us for support!.
" + "

Saiku

Enterprise

Saiku Enterprise is our fully supported and tested server and Pentaho plugin system. Buy Saiku Enterprise from as little as $15 per user per month and enjoy the addtional features Saiku Enterprise has to offer

To find out more visit our site or schedule a call with one of us and we can show you why you should choose Saiku Enterprise!

").html() || ""; return _.template(template)({ // cube_navigation: Saiku.session.sessionworkspace.cube_navigation }); }, setupPage: function(obj){ var height = $(window).height(); $('body').height(height); $('.stabs section').each(function(){ var vH = $(this).height(); var dif = ((height - vH)/2)-50; if(dif<0){ dif = 20; } //$(this).css('margin-top',dif+'px').hide(); }); var active = $('nav li.active a').attr('class'); $('#'+active).fadeIn(); }, render: function(){ var self = this; // var license = new License(); if(Settings.BIPLUGIN5){ $(self.el).html(self.template()); // if (Settings.LICENSE.licenseType != undefined && // Settings.LICENSE.licenseType != "trial" && Settings.LICENSE.licenseType != "Open Source License") { // // $(self.el).find(".enterprisetoggle").css("visibility", "hidden"); // // // } self.getContent(); self.getNews(); self.setupPage(self); $('#splash').find('> nav > ul > li.active > a').click(function(){ var active = $(this).attr('class'); $('nav li').removeClass('active'); $(this).parent().addClass('active'); $('.stabs section').hide(); $('#'+active).fadeIn(); }); } else { //$(self.el).html(self.template()).appendTo($('body')); $(self.el).html(self.template()); // if (Settings.LICENSE.licenseType != undefined && // Settings.LICENSE.licenseType != "trial" && Settings.LICENSE.licenseType != "Open" + // " Source License") { // // $(self.el).find(".enterprisetoggle").css("visibility", "hidden"); // // // } self.getContent(); self.getNews(); self.setupPage(self); $('#splash > nav > ul > li.active > a').click(function(){ var active = $(this).attr('class'); $('nav li').removeClass('active'); $(this).parent().addClass('active'); $('.stabs section').hide(); $('#'+active).fadeIn(); }); } return this; }, remove:function(){ $(this.el).remove(); }, caption: function(increment) { return 'Home'; }, getNews: function(){ var that = this; $.ajax({ type: 'GET', url: "http://meteorite.bi/news.json", async: false, contentType: "application/json", dataType: 'jsonp',     jsonpCallback: 'jsonCallback', success: function(json) { for(var i = 0; i"+json.item[i].title+""+json.item[i].date+"" + "

"+json.item[i].body+"

") } }, error: function(e) { console.log(e.message); } }); }, getContent: function(){ var that =this; var license = new License(); $.ajax({ type: 'GET', url: "http://meteorite.bi/content.json", async: false, contentType: "application/json", dataType: 'jsonp', jsonpCallback: 'jsonCallback2', cache: true, success: function(json) { $(that.el).find("#dyn_content").html(json.item[0].content); $(that.el).find(".responsive-container").fitVids(); //$(self.el).html(self.template()).appendTo($('body')); $(self.el).html(that.template()); /* if (Settings.LICENSE.licenseType != "trial" && Settings.LICENSE.licenseType != "Open Source" + " License") { $(self.el).find(".enterprisetoggle").css("visibility", "hidden"); } */ }, error: function(e) { //$(self.el).html(self.template()).appendTo($('body')); $(self.el).html(self.template()); /* if (Settings.LICENSE.licenseType != "trial" && Settings.LICENSE.licenseType != "Open Source" + " License") { $(self.el).find(".enterprisetoggle").css("visibility", "hidden"); } */ } }); } });