зеркало из https://github.com/mozilla/spark-eol.git
Fixed conflict between two variable names
This commit is contained in:
Родитель
2db2b65c68
Коммит
1cfde4bfe1
|
@ -4,19 +4,19 @@ $(document).ready(function() {
|
||||||
spark = new Section('spark', '#spark-content', 'spark-1'),
|
spark = new Section('spark', '#spark-content', 'spark-1'),
|
||||||
firefox = new Section('firefox', '#firefox-content', 'layer-1'),
|
firefox = new Section('firefox', '#firefox-content', 'layer-1'),
|
||||||
currentSection,
|
currentSection,
|
||||||
lights, spark;
|
lights, sparkAnimation;
|
||||||
|
|
||||||
TWEEN.start();
|
TWEEN.start();
|
||||||
|
|
||||||
home.onHide(function() {
|
home.onHide(function() {
|
||||||
lights.pause();
|
lights.pause();
|
||||||
spark.pause();
|
sparkAnimation.pause();
|
||||||
});
|
});
|
||||||
|
|
||||||
home.onShow(function() {
|
home.onShow(function() {
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
lights.play();
|
lights.play();
|
||||||
spark.play();
|
sparkAnimation.play();
|
||||||
}, 400);
|
}, 400);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -178,5 +178,5 @@ $(document).ready(function() {
|
||||||
initNewsletterForm();
|
initNewsletterForm();
|
||||||
|
|
||||||
lights = new Lights('particles', '/media/img/particle.png', 13, 380, 350);
|
lights = new Lights('particles', '/media/img/particle.png', 13, 380, 350);
|
||||||
spark = new Spark('spark', 200, 300);
|
sparkAnimation = new Spark('spark', 200, 300);
|
||||||
});
|
});
|
Загрузка…
Ссылка в новой задаче