forked from Botanical/BotanJS
Mobile should have fewer slides
This commit is contained in:
parent
d4a8cba69c
commit
1ab2e0a848
@ -37,6 +37,7 @@
|
||||
|
||||
/** @function {System.Net.getData} */
|
||||
var getData = __import( "System.Net.getData" );
|
||||
var mobile = __import( "System.Global.MOBILE" );
|
||||
|
||||
var header;
|
||||
|
||||
@ -346,13 +347,21 @@
|
||||
, cCloud_2c = CharacterCloud.create( cCloudSymbol, null, 30, cloudRange_2c, 5 )
|
||||
, cCloud_3 = CharacterCloud.create( cCloudSymbol2, "spin cw", 5, cloudRange_3 )
|
||||
, cCloud_4 = CharacterCloud.create( cCloudSymbol, null, 5, cloudRange_4 );
|
||||
|
||||
bg.appendChild( Parallax.cssSlide( cCloud_1, 0, slide_1 ) );
|
||||
bg.appendChild( Parallax.cssSlide( cCloud_2a, 1, slide_2a ) );
|
||||
bg.appendChild( Parallax.cssSlide( cCloud_2b, 1, slide_2b ) );
|
||||
bg.appendChild( Parallax.cssSlide( cCloud_2c, 1, slide_2c ) );
|
||||
bg.appendChild( Parallax.cssSlide( cCloud_3, 2, slide_3 ) );
|
||||
bg.appendChild( Parallax.cssSlide( cCloud_4, 3, slide_4 ) );
|
||||
|
||||
if( mobile )
|
||||
{
|
||||
bg.appendChild( Parallax.cssSlide( cCloud_2a, 0, slide_2a ) );
|
||||
bg.appendChild( Parallax.cssSlide( cCloud_2b, 1, slide_2b ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
bg.appendChild( Parallax.cssSlide( cCloud_1, 0, slide_1 ) );
|
||||
bg.appendChild( Parallax.cssSlide( cCloud_2a, 1, slide_2a ) );
|
||||
bg.appendChild( Parallax.cssSlide( cCloud_2b, 1, slide_2b ) );
|
||||
bg.appendChild( Parallax.cssSlide( cCloud_2c, 1, slide_2c ) );
|
||||
bg.appendChild( Parallax.cssSlide( cCloud_3, 2, slide_3 ) );
|
||||
bg.appendChild( Parallax.cssSlide( cCloud_4, 3, slide_4 ) );
|
||||
}
|
||||
|
||||
IDOMElement( bg ).foreach( 1, function(e)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user