Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/registration.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorPellaeon Lin <nfsmwlin@gmail.com>2014-08-28 18:43:28 +0400
committerPellaeon Lin <nfsmwlin@gmail.com>2014-08-28 18:43:28 +0400
commitc3eedc1460d60ae6093041c8095735cb61ffb50b (patch)
treef4682e0aceef39e19301660bf19c6d671a7b52ba /js
Create app
Diffstat (limited to 'js')
-rw-r--r--js/script.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/js/script.js b/js/script.js
new file mode 100644
index 0000000..64dbc80
--- /dev/null
+++ b/js/script.js
@@ -0,0 +1,31 @@
+/**
+ * ownCloud - registration
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Pellaeon Lin <pellaeon@hs.ntnu.edu.tw>
+ * @copyright Pellaeon Lin 2014
+ */
+
+(function ($, OC) {
+
+ $(document).ready(function () {
+ $('#hello').click(function () {
+ alert('Hello from your script file');
+ });
+
+ $('#echo').click(function () {
+ var url = OC.generateUrl('/apps/registration/echo');
+ var data = {
+ echo: $('#echo-content').val()
+ };
+
+ $.post(url, data).success(function (response) {
+ $('#echo-result').text(response.echo);
+ });
+
+ });
+ });
+
+})(jQuery, OC); \ No newline at end of file