Permalink
Browse files

importing initial version

  • Loading branch information...
santhoshtr committed Jul 22, 2012
0 parents commit 1fbf1e2d1bb0b7e1ee1147270c5b4af47e6655bc
@@ -0,0 +1,42 @@
+JQuery IME
+==========================
+jQuery Input method editor library ---------------------------------------------------------
+
+Quick start
+----------
+
+```bash
+git clone https://github.com/santhoshtr/jquery.ime.git
+```
+
+Documentation
+----------
+To be documented.
+
+Test
+----------
+
+Before you can run the tests, make sure the submodules are updated:
+```
+git submodule update --init
+```
+
+Then open up `./test/index.html` in your browser.
+
+Versioning
+----------
+
+For transparency and insight into the release cycle, and to upgrading easier,
+we use the Semantic Versioning guidelines as much as possible.
+
+Releases will be numbered with the following format:
+
+`<major>.<minor>.<patch>`
+
+And constructed with the following guidelines:
+
+* Breaking backward compatibility bumps the major (and resets the minor and patch)
+* New additions without breaking backward compatibility bumps the minor (and resets the patch)
+* Bug fixes and misc changes bumps the patch
+
+For more information on SemVer, please visit http://semver.org/.
@@ -0,0 +1,130 @@
+div.ime-setting {
+ position: absolute;
+ background: url('../images/ime-active.png') no-repeat scroll right center transparent;
+ cursor: pointer;
+ width: auto;
+ height: 15px;
+ font-size: 8px;
+ padding-right: 20px;
+ padding-left: 20px;
+ background-color: #FFFFFF;
+ margin-top: 0px;
+ text-align: right;
+}
+div.ime-setting a {
+ text-decoration: none;
+ color: #000000;
+}
+.dropdown-menu .sub-menu {
+ left: 100%;
+ position: absolute;
+ top: 0;
+ visibility: hidden;
+ margin-top: -1px;
+}
+
+.dropdown-menu li:hover .sub-menu {
+ visibility: visible;
+ display: block;
+}
+dropup, .dropdown {
+ position: relative;
+}
+
+.dropdown-toggle {
+ *margin-bottom: -3px;
+}
+
+.dropdown-toggle:active, .open .dropdown-toggle {
+ outline: 0;
+}
+
+.dropdown-menu {
+ position: absolute;
+ top: 100%;
+ left: 0;
+ z-index: 1000;
+ display: none;
+ float: left;
+ min-width: 160px;
+ padding: 4px 0;
+ margin: 1px 0 0;
+ list-style: none;
+ background-color: #ffffff;
+ border: 1px solid #ccc;
+ border: 1px solid rgba(0, 0, 0, 0.2);
+ *border-right-width: 2px;
+ *border-bottom-width: 2px;
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ border-radius: 5px;
+ -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
+ -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
+ box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
+ -webkit-background-clip: padding-box;
+ -moz-background-clip: padding;
+ background-clip: padding-box;
+ text-align: left;
+}
+
+.dropdown-menu.pull-right {
+ right: 0;
+ left: auto;
+}
+
+.dropdown-menu .divider {
+ *width: 100%;
+ height: 1px;
+ margin: 8px 1px;
+ *margin: -5px 0 5px;
+ overflow: hidden;
+ background-color: #e5e5e5;
+ border-bottom: 1px solid #ffffff;
+}
+
+.dropdown-menu a {
+ display: block;
+ padding: 3px 15px;
+ clear: both;
+ font-weight: normal;
+ color: #333333;
+ white-space: nowrap;
+}
+
+.dropdown-menu li > a:hover, .dropdown-menu .active > a, .dropdown-menu .active > a:hover, .sub-menu li > a:hover, .sub-menu.active > a, .sub-menu.active > a:hover {
+ color: #ffffff;
+ text-decoration: none;
+ background-color: #0088cc;
+ color: #ffffff;
+ text-decoration: none;
+ background-color: #0088cc;
+}
+
+.open {
+ *z-index: 1000;
+}
+
+.open > .dropdown-menu {
+ display: block;
+}
+
+.pull-right > .dropdown-menu {
+ right: 0;
+ left: auto;
+}
+
+.dropup .caret, .navbar-fixed-bottom .dropdown .caret {
+ border-top: 0;
+ border-bottom: 4px solid #000000;
+ content: "\2191";
+}
+
+.dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu {
+ top: auto;
+ bottom: 100%;
+ margin-bottom: 1px;
+}
+.dropdown-menu li {
+ position: relative;
+}
+
@@ -0,0 +1,15 @@
+body{
+ margin-left: 20%;
+ margin-right: 20%;
+}
+input {
+ width: 200px;
+ margin-bottom: 20px;
+}
+
+textarea {
+ width: 200px;
+ height: 100px;
+ margin-bottom: 20px;
+}
+
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
+ Remove this if you use the .htaccess -->
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+
+ <title>HTML</title>
+ <meta name="description" content="" />
+ <meta name="author" content="Santhosh Thottingal" />
+
+ <link rel="shortcut icon" href="/favicon.ico" />
+ <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
+ <link href="../css/jquery.ime.css" rel="stylesheet"/>
+ <script src="../libs/jquery.js"></script>
+ <script src="../src/jquery.textSelection.js"></script>
+ <script src="../src/jquery.ime.js"></script>
+ <script src="../src/jquery.ime.inputmethods.js"></script>
+ <script src="../src/dropdown.js"></script>
+ <!-- Demo -->
+ <link href="demo.css" rel="stylesheet"/>
+ </head>
+
+ <body>
+ <div class="well">
+ <header>
+ <h1>Jquery IME Demo</h1>
+ </header>
+ <div>
+ <input width=20 data-ime-enabled="true" type="text" />
+ </div>
+ <div>
+ <textarea width=20 data-ime-enabled="true" ></textarea>
+ </div>
+
+ <footer>
+ <p>
+ &copy; Copyright by Santhosh Thottingal
+ </p>
+ </footer>
+ </div>
+ </body>
+</html>
Binary file not shown.
Oops, something went wrong.

0 comments on commit 1fbf1e2

Please sign in to comment.