ncase.me-trust/js/slides/8_Slides_Conclusion.js

136 lines
2.7 KiB
JavaScript
Raw Normal View History

2017-07-12 21:24:26 +00:00
SLIDES.push({
id: "conclusion",
2017-07-20 18:45:11 +00:00
onstart: function(self){
2017-07-22 22:42:27 +00:00
// WORDS
self.add({
id:"text1", type:"TextBox",
x:3, y:6, width:800,
text_id:"conclusion_0"
});
self.add({
id:"text2", type:"TextBox",
x:176, y:65-10, width:760, size:30, color:"#4089DD",
text_id:"conclusion_1_a"
});
self.add({
id:"text3", type:"TextBox",
x:176, y:115-10, width:760,
text_id:"conclusion_1_a2"
});
self.add({
id:"text4", type:"TextBox",
x:176, y:192-10, width:760, size:30, color:"#efc701",
text_id:"conclusion_2_a"
});
self.add({
id:"text5", type:"TextBox",
x:176, y:242-10, width:760,
text_id:"conclusion_2_a2"
});
self.add({
id:"text6", type:"TextBox",
x:176, y:316-10, width:760, size:30, color:"#DD4040",
text_id:"conclusion_3_a"
});
self.add({
id:"text7", type:"TextBox",
x:176, y:366-10, width:760,
text_id:"conclusion_3_a2"
});
self.add({
id:"text8", type:"TextBox",
2017-07-24 20:56:59 +00:00
x:74, y:440, width:520, align:"right",
2017-07-22 22:42:27 +00:00
text_id:"conclusion_4"
});
// IMAGE
self.add({
id:"img", type:"ImageBox",
src: "assets/conclusion/summary.png",
x:10, y:60, width:140, height:350
});
// Button
self.add({
id:"button", type:"Button", x:615, y:481,
text_id:"conclusion_btn", size:"long",
message:"slideshow/scratch"
});
2017-07-20 18:45:11 +00:00
},
onend: function(self){
self.clear();
}
});
SLIDES.push({
2017-07-12 21:24:26 +00:00
onstart: function(self){
// Splash in background
2017-07-22 22:42:27 +00:00
self.add({ id:"splash", type:"Splash", blush:true });
2017-07-12 21:24:26 +00:00
// Circular Wordbox
self.add({
id:"text", type:"TextBox",
2017-07-22 22:42:27 +00:00
x:160, y:10, width:640, height:500, align:"center",
text_id:"outro_1"
2017-07-12 21:24:26 +00:00
});
// Button
self.add({
id:"button", type:"Button", x:385, y:466,
2017-07-22 22:42:27 +00:00
text_id:"outro_1_btn",
message:"slideshow/next"
2017-07-12 21:24:26 +00:00
});
2017-07-20 18:45:11 +00:00
},
onend: function(self){
2017-07-22 22:42:27 +00:00
self.remove("text");
2017-07-20 18:45:11 +00:00
self.remove("button");
}
});
SLIDES.push({
onstart: function(self){
var o = self.objects;
// Text
2017-07-22 22:42:27 +00:00
self.add({
id:"text", type:"TextBox",
x:160, y:30, width:640, height:500, align:"center", size:22,
text_id:"outro_2"
});
_hide(o.text); _fadeIn(o.text, 100);
// Photo
self.add({
id:"img", type:"ImageBox",
src: "assets/conclusion/truce.jpg",
x:228, y:90, width:500,
});
_hide(o.img); _fadeIn(o.img, 200);
// Text 2
self.add({
id:"text2", type:"TextBox",
x:228, y:402, width:500,
align:"center", color:"#aaa", size:14,
text_id:"outro_2_credits"
});
_hide(o.text2); _fadeIn(o.text2, 200);
2017-07-20 18:45:11 +00:00
// Button
self.add({
2017-07-22 22:42:27 +00:00
id:"button", type:"Button", x:427, y:466,
text_id:"outro_2_btn", size:"short",
2017-07-20 18:45:11 +00:00
message:"slideshow/scratch"
});
2017-07-22 22:42:27 +00:00
_hide(o.button); _fadeIn(o.button, 2000);
2017-07-20 18:45:11 +00:00
2017-07-12 21:24:26 +00:00
},
onend: function(self){
self.clear();
}
});