diff --git a/TextAreas/TextAreas.Shared/TextAreas.Shared.projitems b/TextAreas/TextAreas.Shared/TextAreas.Shared.projitems index a035a69..e37dd5e 100644 --- a/TextAreas/TextAreas.Shared/TextAreas.Shared.projitems +++ b/TextAreas/TextAreas.Shared/TextAreas.Shared.projitems @@ -7,5 +7,7 @@ + + - + \ No newline at end of file diff --git a/TextAreas/TextAreas.Shared/js/default.js b/TextAreas/TextAreas.Shared/js/default.js index 9edf844..8d212e9 100644 --- a/TextAreas/TextAreas.Shared/js/default.js +++ b/TextAreas/TextAreas.Shared/js/default.js @@ -15,6 +15,8 @@ // TODO: This application has been reactivated from suspension. // Restore application state here. } + textArea.setUp(); + args.setPromise(WinJS.UI.processAll()); } }; diff --git a/TextAreas/TextAreas.Shared/js/textArea.js b/TextAreas/TextAreas.Shared/js/textArea.js new file mode 100644 index 0000000..9ae468c --- /dev/null +++ b/TextAreas/TextAreas.Shared/js/textArea.js @@ -0,0 +1,18 @@ +(function () { + 'use strict'; + var goBtn, textArea, output; + + function getContent() { + output.innerHTML = textArea.value.replace(/[\r\n]{1,}/g, '

'); + } + + WinJS.Namespace.define('textArea', { + setUp: function () { + goBtn = document.getElementById('textAreaGo'); + textArea = document.getElementById('textAreaIn'); + output = document.getElementById('textAreaOut'); + + goBtn.addEventListener('pointerdown', getContent, false); + } + }); +}()); \ No newline at end of file diff --git a/TextAreas/TextAreas.Shared/js/textBox.js b/TextAreas/TextAreas.Shared/js/textBox.js new file mode 100644 index 0000000..d5fa694 --- /dev/null +++ b/TextAreas/TextAreas.Shared/js/textBox.js @@ -0,0 +1,7 @@ +(function () { + 'use strict'; + WinJS.Namespace.define('textBox', { + setUp: function () { + } + }); +}()); \ No newline at end of file diff --git a/TextAreas/TextAreas.Windows/TextAreas.Windows.jsproj.user b/TextAreas/TextAreas.Windows/TextAreas.Windows.jsproj.user new file mode 100644 index 0000000..a5f8ded --- /dev/null +++ b/TextAreas/TextAreas.Windows/TextAreas.Windows.jsproj.user @@ -0,0 +1,6 @@ + + + + C:\Users\rudenoise\AppData\Local\Temp\TextAreas.Windows_refcache + + \ No newline at end of file diff --git a/TextAreas/TextAreas.Windows/bin/Debug/AppX/default.html b/TextAreas/TextAreas.Windows/bin/Debug/AppX/default.html index 8f82f69..6fbee7f 100644 --- a/TextAreas/TextAreas.Windows/bin/Debug/AppX/default.html +++ b/TextAreas/TextAreas.Windows/bin/Debug/AppX/default.html @@ -11,9 +11,34 @@ + + + -

Content goes here

+

Text Areas

+
+

Regular text area:

+

In

+ +
+ +

Out

+
+
+

TextBox

+

In

+
+
Paste some content from the web into me...
+
+
+ +

Out

+
diff --git a/TextAreas/TextAreas.Windows/bin/Debug/AppX/js/default.js b/TextAreas/TextAreas.Windows/bin/Debug/AppX/js/default.js index 9edf844..8d212e9 100644 --- a/TextAreas/TextAreas.Windows/bin/Debug/AppX/js/default.js +++ b/TextAreas/TextAreas.Windows/bin/Debug/AppX/js/default.js @@ -15,6 +15,8 @@ // TODO: This application has been reactivated from suspension. // Restore application state here. } + textArea.setUp(); + args.setPromise(WinJS.UI.processAll()); } }; diff --git a/TextAreas/TextAreas.Windows/bin/Debug/AppX/js/textArea.js b/TextAreas/TextAreas.Windows/bin/Debug/AppX/js/textArea.js new file mode 100644 index 0000000..9ae468c --- /dev/null +++ b/TextAreas/TextAreas.Windows/bin/Debug/AppX/js/textArea.js @@ -0,0 +1,18 @@ +(function () { + 'use strict'; + var goBtn, textArea, output; + + function getContent() { + output.innerHTML = textArea.value.replace(/[\r\n]{1,}/g, '

'); + } + + WinJS.Namespace.define('textArea', { + setUp: function () { + goBtn = document.getElementById('textAreaGo'); + textArea = document.getElementById('textAreaIn'); + output = document.getElementById('textAreaOut'); + + goBtn.addEventListener('pointerdown', getContent, false); + } + }); +}()); \ No newline at end of file diff --git a/TextAreas/TextAreas.Windows/bin/Debug/AppX/js/textBox.js b/TextAreas/TextAreas.Windows/bin/Debug/AppX/js/textBox.js new file mode 100644 index 0000000..d5fa694 --- /dev/null +++ b/TextAreas/TextAreas.Windows/bin/Debug/AppX/js/textBox.js @@ -0,0 +1,7 @@ +(function () { + 'use strict'; + WinJS.Namespace.define('textBox', { + setUp: function () { + } + }); +}()); \ No newline at end of file diff --git a/TextAreas/TextAreas.Windows/bin/Debug/AppX/microsoft.system.package.metadata/S-1-5-21-4259653920-248258531-352719529-1001.pckgdep b/TextAreas/TextAreas.Windows/bin/Debug/AppX/microsoft.system.package.metadata/S-1-5-21-4259653920-248258531-352719529-1001.pckgdep index 94d3e1f..6ccf222 100644 Binary files a/TextAreas/TextAreas.Windows/bin/Debug/AppX/microsoft.system.package.metadata/S-1-5-21-4259653920-248258531-352719529-1001.pckgdep and b/TextAreas/TextAreas.Windows/bin/Debug/AppX/microsoft.system.package.metadata/S-1-5-21-4259653920-248258531-352719529-1001.pckgdep differ diff --git a/TextAreas/TextAreas.Windows/bin/Debug/AppX/resources.pri b/TextAreas/TextAreas.Windows/bin/Debug/AppX/resources.pri index 1adc4bf..ff4edc4 100644 Binary files a/TextAreas/TextAreas.Windows/bin/Debug/AppX/resources.pri and b/TextAreas/TextAreas.Windows/bin/Debug/AppX/resources.pri differ diff --git a/TextAreas/TextAreas.Windows/bin/Debug/AppX/vs.appxrecipe b/TextAreas/TextAreas.Windows/bin/Debug/AppX/vs.appxrecipe index 93dd322..5b0c17f 100644 --- a/TextAreas/TextAreas.Windows/bin/Debug/AppX/vs.appxrecipe +++ b/TextAreas/TextAreas.Windows/bin/Debug/AppX/vs.appxrecipe @@ -7,7 +7,7 @@ Debug|AnyCPU neutral 8c1c0527-1fb1-4a4f-9075-8b376b2f900b - C:\Users\rudenoise\Documents\2\TextAreas\TextAreas\TextAreas.Windows\bld\Debug\ + C:\Users\rudenoise\Documents\TextAreas\TextAreas\TextAreas.Windows\bld\Debug\ 579C0883092A5D8BF263621583549DCC7DB27795C1513FA79D550D1027369C04 8c1c0527-1fb1-4a4f-9075-8b376b2f900b_1.0.0.0_neutral__81jn6d9hc2h0c 8c1c0527-1fb1-4a4f-9075-8b376b2f900b_81jn6d9hc2h0c!App @@ -17,48 +17,56 @@ True - + AppxManifest.xml true - 2015-04-29T08:53:29.236 + 2015-04-29T09:21:26.428 - + default.html - 2015-04-29T08:52:53.946 + 2015-04-29T09:21:56.598 - + images\logo.png true - 2014-06-02T17:38:24.000 + 2015-04-29T08:57:50.271 - + images\smalllogo.png true - 2014-06-02T17:38:24.000 + 2015-04-29T08:57:50.287 - + images\splashscreen.png true - 2014-06-02T17:38:24.000 + 2015-04-29T08:57:50.287 - + images\storelogo.png true - 2014-06-02T17:38:24.000 + 2015-04-29T08:57:50.287 - + css\default.css - 2014-06-02T17:38:24.000 + 2015-04-29T08:57:50.271 - + js\default.js - 2015-04-29T08:52:53.728 + 2015-04-29T09:21:56.564 - + + js\textArea.js + 2015-04-29T09:29:08.254 + + + js\textBox.js + 2015-04-29T09:21:21.755 + + resources.pri - 2015-04-29T08:53:29.017 + 2015-04-29T09:21:26.318 diff --git a/TextAreas/TextAreas.Windows/bin/Debug/ReverseMap/resources.pri b/TextAreas/TextAreas.Windows/bin/Debug/ReverseMap/resources.pri index 1adc4bf..ff4edc4 100644 Binary files a/TextAreas/TextAreas.Windows/bin/Debug/ReverseMap/resources.pri and b/TextAreas/TextAreas.Windows/bin/Debug/ReverseMap/resources.pri differ diff --git a/TextAreas/TextAreas.Windows/bin/Debug/TextAreas.Windows.build.appxrecipe b/TextAreas/TextAreas.Windows/bin/Debug/TextAreas.Windows.build.appxrecipe index c1bd3d0..227c943 100644 --- a/TextAreas/TextAreas.Windows/bin/Debug/TextAreas.Windows.build.appxrecipe +++ b/TextAreas/TextAreas.Windows/bin/Debug/TextAreas.Windows.build.appxrecipe @@ -7,41 +7,47 @@ Debug|AnyCPU neutral 8c1c0527-1fb1-4a4f-9075-8b376b2f900b - C:\Users\rudenoise\Documents\2\TextAreas\TextAreas\TextAreas.Windows\bld\Debug\ + C:\Users\rudenoise\Documents\TextAreas\TextAreas\TextAreas.Windows\bld\Debug\ - + AppxManifest.xml true - + default.html - + images\logo.png true - + images\smalllogo.png true - + images\splashscreen.png true - + images\storelogo.png true - + css\default.css - + js\default.js - + + js\textArea.js + + + js\textBox.js + + resources.pri diff --git a/TextAreas/TextAreas.Windows/bld/Debug/ProjectArchitectures.txt b/TextAreas/TextAreas.Windows/bld/Debug/ProjectArchitectures.txt index 68b2b2e..b66ff68 100644 --- a/TextAreas/TextAreas.Windows/bld/Debug/ProjectArchitectures.txt +++ b/TextAreas/TextAreas.Windows/bld/Debug/ProjectArchitectures.txt @@ -1 +1 @@ -C:\Users\rudenoise\Documents\2\TextAreas\TextAreas\TextAreas.Windows\TextAreas.Windows.jsproj;neutral +C:\Users\rudenoise\Documents\TextAreas\TextAreas\TextAreas.Windows\TextAreas.Windows.jsproj;neutral diff --git a/TextAreas/TextAreas.Windows/bld/Debug/TextAreas.Windows.jsproj.FileListAbsolute.txt b/TextAreas/TextAreas.Windows/bld/Debug/TextAreas.Windows.jsproj.FileListAbsolute.txt index 43e90eb..dae4ddb 100644 --- a/TextAreas/TextAreas.Windows/bld/Debug/TextAreas.Windows.jsproj.FileListAbsolute.txt +++ b/TextAreas/TextAreas.Windows/bld/Debug/TextAreas.Windows.jsproj.FileListAbsolute.txt @@ -13,3 +13,18 @@ C:\Users\rudenoise\Documents\2\TextAreas\TextAreas\TextAreas.Windows\bld\Debug\q C:\Users\rudenoise\Documents\2\TextAreas\TextAreas\TextAreas.Windows\bld\Debug\qualifiers.txt.intermediate C:\Users\rudenoise\Documents\2\TextAreas\TextAreas\TextAreas.Windows\bld\Debug\MultipleQualifiersPerDimensionFound.txt C:\Users\rudenoise\Documents\2\TextAreas\TextAreas\TextAreas.Windows\bld\Debug\ProjectArchitectures.txt +C:\Users\rudenoise\Documents\TextAreas\TextAreas\TextAreas.Windows\bin\Debug\ReverseMap\resources.pri +C:\Users\rudenoise\Documents\TextAreas\TextAreas\TextAreas.Windows\bin\Debug\AppxManifest.xml +C:\Users\rudenoise\Documents\TextAreas\TextAreas\TextAreas.Windows\bin\Debug\TextAreas.Windows.build.appxrecipe +C:\Users\rudenoise\Documents\TextAreas\TextAreas\TextAreas.Windows\bld\Debug\priconfig.xml +C:\Users\rudenoise\Documents\TextAreas\TextAreas\TextAreas.Windows\bld\Debug\priconfig.xml.intermediate +C:\Users\rudenoise\Documents\TextAreas\TextAreas\TextAreas.Windows\bld\Debug\layout.resfiles +C:\Users\rudenoise\Documents\TextAreas\TextAreas\TextAreas.Windows\bld\Debug\layout.resfiles.intermediate +C:\Users\rudenoise\Documents\TextAreas\TextAreas\TextAreas.Windows\bld\Debug\resources.resfiles +C:\Users\rudenoise\Documents\TextAreas\TextAreas\TextAreas.Windows\bld\Debug\resources.resfiles.intermediate +C:\Users\rudenoise\Documents\TextAreas\TextAreas\TextAreas.Windows\bld\Debug\pri.resfiles +C:\Users\rudenoise\Documents\TextAreas\TextAreas\TextAreas.Windows\bld\Debug\pri.resfiles.intermediate +C:\Users\rudenoise\Documents\TextAreas\TextAreas\TextAreas.Windows\bld\Debug\qualifiers.txt +C:\Users\rudenoise\Documents\TextAreas\TextAreas\TextAreas.Windows\bld\Debug\qualifiers.txt.intermediate +C:\Users\rudenoise\Documents\TextAreas\TextAreas\TextAreas.Windows\bld\Debug\MultipleQualifiersPerDimensionFound.txt +C:\Users\rudenoise\Documents\TextAreas\TextAreas\TextAreas.Windows\bld\Debug\ProjectArchitectures.txt diff --git a/TextAreas/TextAreas.Windows/bld/Debug/layout.resfiles b/TextAreas/TextAreas.Windows/bld/Debug/layout.resfiles index b767720..e799eb4 100644 --- a/TextAreas/TextAreas.Windows/bld/Debug/layout.resfiles +++ b/TextAreas/TextAreas.Windows/bld/Debug/layout.resfiles @@ -1,4 +1,6 @@ js\default.js +js\textArea.js +js\textBox.js css\default.css default.html images\logo.png diff --git a/TextAreas/TextAreas.Windows/bld/Debug/layout.resfiles.intermediate b/TextAreas/TextAreas.Windows/bld/Debug/layout.resfiles.intermediate index b767720..e799eb4 100644 --- a/TextAreas/TextAreas.Windows/bld/Debug/layout.resfiles.intermediate +++ b/TextAreas/TextAreas.Windows/bld/Debug/layout.resfiles.intermediate @@ -1,4 +1,6 @@ js\default.js +js\textArea.js +js\textBox.js css\default.css default.html images\logo.png diff --git a/TextAreas/TextAreas.Windows/default.html b/TextAreas/TextAreas.Windows/default.html index 8f82f69..6fbee7f 100644 --- a/TextAreas/TextAreas.Windows/default.html +++ b/TextAreas/TextAreas.Windows/default.html @@ -11,9 +11,34 @@ + + + -

Content goes here

+

Text Areas

+
+

Regular text area:

+

In

+ +
+ +

Out

+
+
+

TextBox

+

In

+
+
Paste some content from the web into me...
+
+
+ +

Out

+