summaryrefslogtreecommitdiff
path: root/tree/public/assets/js/lib/view/HomeView.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-11-28 18:11:12 -0500
committerJules Laplace <jules@okfoc.us>2016-11-28 18:11:12 -0500
commit2860b0ceae8e08704996b3397fb8b962ca60ab95 (patch)
treed2f868290adbfd6914aa5f139c4fcc5323a1dc7f /tree/public/assets/js/lib/view/HomeView.js
parent0237b32f73b344deba694cd04fd61a52355ab33d (diff)
tree init
Diffstat (limited to 'tree/public/assets/js/lib/view/HomeView.js')
-rw-r--r--tree/public/assets/js/lib/view/HomeView.js59
1 files changed, 59 insertions, 0 deletions
diff --git a/tree/public/assets/js/lib/view/HomeView.js b/tree/public/assets/js/lib/view/HomeView.js
new file mode 100644
index 0000000..a235dc5
--- /dev/null
+++ b/tree/public/assets/js/lib/view/HomeView.js
@@ -0,0 +1,59 @@
+var HomeView = View.extend({
+
+ el: "#home",
+
+ // template: liquid($('#tmpl-home').html()),
+
+ events: {
+ },
+
+ initialize: function(options){
+ options = options || {}
+ var data = this.data = options.data
+ },
+
+ render: function(){
+ if (this.rendered) return
+ this.rendered = true
+ },
+
+ show: function(){
+ document.body.className = "home"
+ this.render(this.data)
+ environment.load({
+ module: 'welcome',
+ })
+ corner.animate({
+ to: 'zeroes',
+ tween: 'gradient_diagonal',
+ delay: 1000,
+ duration: 200,
+ }).then({
+ to: corner.ascii.snake,
+ tween: 'ascii',
+ duration: 600,
+ }).then({
+ from: corner.ascii.snake,
+ to: 'zeroes',
+ tween: 'ascii_from',
+ }).then({
+ to: corner.ascii.snake,
+ tween: 'ascii',
+ duration: 600,
+ }).then({
+ from: corner.ascii.snake,
+ to: 'zeroes',
+ tween: 'ascii_from',
+ }).then({
+ to: corner.ascii.letter_v,
+ tween: 'ascii',
+ })
+ },
+
+ hide: function(){
+ },
+
+ corner: function(){
+ },
+
+})