diff options
Diffstat (limited to 'tau/demos/LayoutinJS')
-rw-r--r-- | tau/demos/LayoutinJS/index.html | 12 | ||||
-rw-r--r-- | tau/demos/LayoutinJS/script.js | 47 |
2 files changed, 0 insertions, 59 deletions
diff --git a/tau/demos/LayoutinJS/index.html b/tau/demos/LayoutinJS/index.html deleted file mode 100644 index db745710..00000000 --- a/tau/demos/LayoutinJS/index.html +++ /dev/null @@ -1,12 +0,0 @@ -<!DOCTYPE html> -<html> -<head lang="en"> - <script src="script.js"></script> - <script type="text/javascript" src="lib/tau/mobile/js/tau.js" data-build-remove="false"></script> - <link rel="stylesheet" href="lib/tau/mobile/theme/default/tau.css"> - <meta charset="UTF-8"> - <title></title> -</head> -<body> -</body> -</html>
\ No newline at end of file diff --git a/tau/demos/LayoutinJS/script.js b/tau/demos/LayoutinJS/script.js deleted file mode 100644 index 4fdb9056..00000000 --- a/tau/demos/LayoutinJS/script.js +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Created by m.urbanski on 24.02.15. - */ -document.addEventListener("tauinit", function() { - console.log("built start"); - var pageContainer = tau.widget.pagecontainer(), - page = tau.widget.Page({ - header: "Title", - content: "This is application built from JS", - footer: true - }), - button = tau.widget.Button({inline: true, text: "absolute"}), - button1 = tau.widget.Button({inline: true, text: "horizontal"}), - button2 = tau.widget.Button({inline: true, text: "vertical"}), - button3 = tau.widget.Button({inline: true, text: "linear"}); - - pageContainer.element.appendChild(page.element); - page.element.querySelector("footer").appendChild(button.element); - page.element.querySelector("footer").appendChild(button1.element); - page.element.querySelector("footer").appendChild(button2.element); - page.element.querySelector("footer").appendChild(button3.element); - - button.on("click", function() { - page.option("content", "This is after click " + button.option("text") + " " +(new Date())); - page.refresh(); - }); - - button1.on("click", function() { - page.option("content", "This is after click " + button1.option("text") + " " +(new Date())); - page.refresh(); - }); - - button2.on("click", function() { - page.option("content", "This is after click " + button2.option("text") + " " + (new Date())); - page.refresh(); - }); - - button3.on("click", function() { - page.option("content", "This is after click " + button3.option("text") + " " +(new Date())); - page.refresh(); - }); - console.log("built finish"); - document.addEventListener("DOMContentLoaded", function() { - document.body.appendChild(pageContainer.element); - page.refresh(); - }); -});
\ No newline at end of file |