js/localFile.js
js/login.js
js/screen.js
+ js/search.js
Flag build-test-suite
Description: Build the test suite.
, newPageInterp
, editPageInterp
, loginInterp
+ , searchFieldInterp
]
iciName = "login"
, iciInterpret
= \ _ _ ->
- let attrs = [ ("type" , "button")
- , ("value" , "Login")
- , ("class" , "loginButton")
+ let attrs = [ ("type" , "button")
+ , ("value", "Login")
+ , ("class", "loginButton")
+ ]
+ in
+ return (Input attrs)
+ }
+
+
+-- <input type="text"
+-- class="searchField" />
+searchFieldInterp :: Interpreter
+searchFieldInterp
+ = InlineCommandInterpreter {
+ iciName = "searchField"
+ , iciInterpret
+ = \ _ _ ->
+ let attrs = [ ("type" , "text")
+ , ("class", "searchField")
]
in
return (Input attrs)
* <login />
* <newPage />
* <editPage />
+* <searchField />
= In other languages =
<inOtherLanguages />
padding: 0.2em 0 0 0;
}
+.sideBar input[type="text"],
+.sideBar input[type="password"] {
+ width: 97%;
+ padding: 1px;
+}
+
table.pageEditor {
width: 100%;
}
background-color: #e0e0e0;
}
+.sideBar input[type="text"],
+.sideBar input[type="password"] {
+ background-color: #dddddd;
+
+ border-style: inset;
+ border-width: 1px;
+ border-color: #dddddd;
+}
+
+.activeField {
+ color: black;
+}
+
+.inactiveField {
+ color: #888888;
+}
+
.pageEditor input[type="text"],
.pageEditor input[type="file"],
.pageEditor textarea {
login.js \
redirection.js \
screen.js \
+ search.js \
$(NULL)
COMPRESS = java -jar $(COMPRESSOR) --type js --charset UTF-8
--- /dev/null
+(function () {
+
+ $(document).ready(function () {
+ $("input.searchField")
+ .val("Search")
+ .removeClass("activeField")
+ .addClass("inactiveField")
+ .focus(function () {
+ if ($(this).attr("class").indexOf("inactiveField")) {
+ $(this)
+ .val("")
+ .removeClass("inactiveField")
+ .addClass("activeField");
+ }
+ })
+ .keypress(function (e) {
+ if (e.which == 10 || e.which == 13) {
+ window.location = Rakka.baseURI + "search.html?q=" + encodeURI($(this).val());
+ }
+ });
+ });
+
+})();
\ No newline at end of file