aboutsummaryrefslogtreecommitdiff
path: root/src/main/webapp/test.testhtml
diff options
context:
space:
mode:
authorGravatar Alex Bitney2016-02-07 00:00:41 +0200
committerGravatar Alex Bitney2016-02-07 00:00:41 +0200
commitc2d316449f85bd2b74ae9ffaa3d08b7a5ee282cf (patch)
treece808c6d65e4a61913497f5d397473f75fadc701 /src/main/webapp/test.testhtml
parent1fffebc18bbdbe87b456e2b3bd66e9ce5a6afcb8 (diff)
added tags when posting new message
added templates engine (rythm engine) and moved something to it. WARNING: textext plugin does not work when minimized, and also I fixed bug in it.
Diffstat (limited to 'src/main/webapp/test.testhtml')
-rw-r--r--src/main/webapp/test.testhtml45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/main/webapp/test.testhtml b/src/main/webapp/test.testhtml
new file mode 100644
index 00000000..e0e5092f
--- /dev/null
+++ b/src/main/webapp/test.testhtml
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>Title</title>
+ <link rel="stylesheet" href="/style.css"/>
+ <link rel="stylesheet" href="/textext/textext.core.css"/>
+ <link rel="stylesheet" href="/textext/textext.plugin.arrow.css"/>
+ <link rel="stylesheet" href="/textext/textext.plugin.autocomplete.css"/>
+ <link rel="stylesheet" href="/textext/textext.plugin.focus.css"/>
+ <link rel="stylesheet" href="/textext/textext.plugin.prompt.css"/>
+ <link rel="stylesheet" href="/textext/textext.plugin.tags.css"/>
+ <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
+ <script type="text/javascript" src="/textext/textext.core.js"></script>
+ <script type="text/javascript" src="/textext/textext.plugin.ajax.js"></script>
+ <script type="text/javascript" src="/textext/textext.plugin.arrow.js"></script>
+ <script type="text/javascript" src="/textext/textext.plugin.autocomplete.js"></script>
+ <script type="text/javascript" src="/textext/textext.plugin.filter.js"></script>
+ <script type="text/javascript" src="/textext/textext.plugin.focus.js"></script>
+ <script type="text/javascript" src="/textext/textext.plugin.prompt.js"></script>
+ <script type="text/javascript" src="/textext/textext.plugin.suggestions.js"></script>
+ <script type="text/javascript" src="/textext/textext.plugin.tags.js"></script>
+</head>
+<body>
+
+ <div>
+ xx8
+ <input type="text" class="tags" name="tags" placeholder="" id="post_tags" style="width: 600px"/><br/>
+ </div>
+ <script>
+ $('#post_tags').textext({
+ plugins : 'tags prompt focus autocomplete ajax arrow',
+ tagsItems : [],
+ prompt : 'Теги (через пробел)',
+ ajax : {
+ url : '/test.json',
+ dataType : 'json',
+ cacheResults : true
+ }
+ });
+ </script>
+
+
+</body>
+</html> \ No newline at end of file