Skip to content
/ smartbox Public
forked from immosmart/smartbox

SmartTV universal library for Samsung, LG, Philips, SmartTV Aliance, STB Mag app development.

License

Notifications You must be signed in to change notification settings

MikkM/smartbox

This branch is up to date with immosmart/smartbox:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d525216 · Jul 20, 2015
Feb 24, 2014
Feb 28, 2014
Feb 28, 2014
Jul 20, 2015
Jul 1, 2014
Feb 19, 2014
Dec 30, 2013
Mar 18, 2015
Feb 28, 2014
Dec 12, 2013
Feb 28, 2014
Dec 20, 2013
Feb 18, 2014
Feb 11, 2014
Mar 11, 2014
Feb 28, 2014
Feb 27, 2014
Dec 16, 2013
Feb 28, 2014
Feb 17, 2014
Feb 4, 2014

Repository files navigation

Demo

Overview

A smartbox library allows to start one application on a few smartTV platforms.

Currently supported platforms:

To add your own platform please see the platform documentation.

Initialization

Smartbox has three dependencies:

The compiled version of the library is located in the directory /dist.

Library plugins

How to use the library

To use all plugins and functions of the library it's necessary to wrap a code as callback SB.ready SB.ready(function(){ // your code });

SB.ready will be executed after all callbacks jQuery.ready, ( f u n c t i o n ( ) ) , .ready(function(){});

Library's methods

  • isInited() - checking the library initialization. Returns true or false

      SB.isInited();
    
  • ready(func) executes the code of the funtion func after the library has been initializated

      SB.ready(function(){
          // your code
      });
    
  • readyForPlatform(platform, cb) executes the code of the funtion func after the library has been initializated, if the current plaform - platform

      SB.readyForPlatform('samsung', function(){
          // code for samsung
      });
    

Library configuration

All configurations of the library are located in the object SB.platform

        SB.config = {
          /**
           * Platform which will be used in case detectPlatform returns false
           * ex: browser, samsung, lg
           * @type: {String}
           */
          defaultPlatform: 'browser'
        }

Autotests

Jasmine autotest start

About

SmartTV universal library for Samsung, LG, Philips, SmartTV Aliance, STB Mag app development.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 95.8%
  • CSS 3.4%
  • Other 0.8%