diff src/DML/MainVisBundle/Resources/assets/launcher.js @ 0:493bcb69166c

added public content
author Daniel Wolff
date Tue, 09 Feb 2016 20:54:02 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/DML/MainVisBundle/Resources/assets/launcher.js	Tue Feb 09 20:54:02 2016 +0100
@@ -0,0 +1,21 @@
+$(function(){
+    
+    // Testing of BEM (to be removed)
+    var $abc = $.bem.generateBlock('abc', ['my-modifier', 'my-modifier2']);
+    $abc.appendTo('body');
+
+    var $abcDef = $.bem.generateElement('abc', 'def', ['key_value', 'key2_value2']);
+    $abcDef.appendTo($abc);
+
+    var $abc = $.bem.generateBlock('span', 'abc', ['my-modifier', 'my-modifier2']);
+    $abc.appendTo('body');
+    
+    var $abcDef = $.bem.generateElement('span', 'abc', 'def', ['key_value', 'key2_value2']);
+    $abcDef.appendTo($abc);
+    
+    // App launcher
+    App.start({
+        container: '.dml-main-vis', 
+        dbVersion: dbVersion
+    });
+});
\ No newline at end of file