Skip to content

Commit ccbb139

Browse files
committed
added application simple text
there is now a text editor for clone Cloud called simple text it can only open files for now
1 parent bc99d04 commit ccbb139

19 files changed

Lines changed: 2060 additions & 7 deletions

README.md

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Clone-WebOS
4848
the appslist.txt file. The entry for an app should look somewhat like this:
4949

5050
segment{
51-
-app_name
51+
-app name
5252
-apps/folder/index.html
5353
-images/your_icon.png
5454

apps/Lib/fileTypes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ segment{
33
-NONE
44
-../../images/folder.png
55
segment{
6-
-../text/text.php
6+
-../simpleText/main.php
77
-txt
88
-../../images/Documents.png

apps/SimpleText/SimpleText.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#topBar{
2+
width: 99.25%;
3+
height: 50px;
4+
5+
margin-right: auto;
6+
margin-left: auto;
7+
8+
padding-left:5px;
9+
padding-right:5px;
10+
11+
background-color: #EEEEEE;
12+
}
13+
.jqte{
14+
15+
border-radius: 0px;
16+
border: 0px;
17+
margin: 0px;
18+
background-color: lightgray;
19+
}
20+
.jqte_editor{
21+
22+
max-width: 1000px;
23+
margin-left: auto;
24+
margin-right: auto;
25+
height: 100%;
26+
27+
}

apps/SimpleText/SimpleText.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<html>
2+
<head>
3+
<title>Simple Text</title>
4+
5+
<link rel="stylesheet" type="text/css" href="../../themes/theme.css">
6+
7+
<link type="text/css" rel="stylesheet" href="jQuery-TE_v.1.4.0/jquery-te-1.4.0.css">
8+
<link rel="stylesheet" type="text/css" href="SimpleText.css">
9+
10+
<script type="text/javascript" src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
11+
<script type="text/javascript" src="jQuery-TE_v.1.4.0/uncompressed/jquery-te-1.4.0.js"></script>
12+
13+
<script src="SimpleText.js"></script>
14+
</head>
15+
<body>
16+
<!--<h1>Simple Text</h1>-->
17+
<div id="topBar"><input class="text" type="text" placeholder="File Name" name="userName"></input></div>
18+
<input class="editor" name="text2" value="{File Contents}">
19+
</body>
20+
</html>

apps/SimpleText/SimpleText.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
$( document ).ready(function() {
3+
$('.editor').jqte();//init the rich text editor
4+
});
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
/* general styles */
2+
html, body {
3+
padding:30px 100px;
4+
background:#E5E5E5
5+
}
6+
* {
7+
font-family:Verdana, Arial, sans-serif;
8+
color:#000
9+
}
10+
h1 {
11+
font-size:33px;
12+
color:#99CC00;
13+
margin:15px 0
14+
}
15+
.navigation {
16+
margin:10px 0 20px;
17+
}
18+
.navigation, .navigation a {
19+
color:#608000;
20+
font-size:12px;
21+
}
22+
.navigation a {
23+
margin-right:4px;
24+
}
25+
h2 {
26+
margin:15px 0 25px;
27+
color:#608000;
28+
font-size:14px;
29+
font-weight:bold
30+
}
31+
a:link, a:visited {
32+
text-decoration:underline
33+
}
34+
.testbutton {
35+
margin-bottom:30px;
36+
background:#3399FF;
37+
padding:6px 25px;
38+
border:#003F81 1px solid;
39+
color:#FFF;
40+
font-size:22px;
41+
border-radius:5px; -webkit-border-radius:5px; -moz-border-radius:5px;
42+
box-shadow:inset 0 5px 5px #67B3FF; -webkit-box-shadow:inset 0 5px 5px #67B3FF; -moz-box-shadow:inset 0 5px 5px #67B3FF
43+
}
44+
.testbutton:hover {
45+
background:#198CFF;
46+
cursor:pointer
47+
}
48+
.footer, .footer * {
49+
color:#802D00;
50+
font-size:15px
51+
}
52+
53+
.jqte-test {
54+
display:block;
55+
margin:0 0 10px;
56+
padding:6px;
57+
width:95%;
58+
background:#FFF;
59+
border:#AAA 1px solid;
60+
font-size:13px;
61+
}
62+
textarea.jqte-test, div.jqte-test, span.jqte-test {
63+
min-height:100px;
64+
}
65+
button {
66+
display:block;
67+
margin:20px 0;
68+
padding:6px 0 4px;
69+
width:154px;
70+
background:#658700;
71+
border:#526E00 1px solid;
72+
color:#F3FFCF !important;
73+
text-align:center;
74+
font-size:13px;
75+
font-weight:bold;
76+
border-radius:3px; -webkit-border-radius:3px; -moz-border-radius:3px;
77+
box-shadow:0 0 2px #000, inset 0 1px 1px #99CC00; -webkit-box-shadow:0 0 2px #000, inset 0 1px 1px #99CC00; -moz-box-shadow:0 0 2px #000, inset 0 1px 1px #99CC00;
78+
cursor:pointer;
79+
}
80+
button:hover {
81+
background:#78A000;
82+
border-color:#658700;
83+
text-decoration:none !important;
84+
cursor:pointer
85+
}
86+
87+
button:active {
88+
background:#3F5500;
89+
border-color:#2C3C00;
90+
color:#9CCD00 !important;
91+
box-shadow:0 0 3px #000,inset 0 -2px 2px #333;
92+
-webkit-box-shadow:0 0 3px #000, inset 0 -2px 2px #333;
93+
-moz-box-shadow:0 0 3px #000, inset 0 -2px 2px #333;
94+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
5+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6+
<title>jQuery TE | Downloaded Demo | v.1.4.0</title>
7+
8+
<link type="text/css" rel="stylesheet" href="demo.css">
9+
<link type="text/css" rel="stylesheet" href="../jquery-te-1.4.0.css">
10+
11+
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js" charset="utf-8"></script>
12+
<script type="text/javascript" src="../uncompressed/jquery-te-1.4.0.js" charset="utf-8"></script>
13+
</head>
14+
15+
<body>
16+
<h1>jQuery TE</h1>
17+
18+
<div class="navigation">
19+
<a href="http://jqueryte.com" target="_blank">Home</a>
20+
<a href="http://jqueryte.com/demos" target="_blank">Demos</a>
21+
<a href="http://jqueryte.com/documentation" target="_blank">Documentation</a>
22+
<a href="http://jqueryte.com/comments" target="_blank">Comments</a>
23+
<a href="http://jqueryte.com/about" target="_blank">About</a>
24+
<a href="http://jqueryte.com/license" target="_blank">License</a>
25+
</div>
26+
27+
<h2>Demo | v.1.4.0</h2>
28+
29+
<!------------------------------------------------------------ Toggle jQTE Button ------------------------------------------------------------>
30+
<button class="status">Toggle jQTE</button>
31+
32+
<!------------------------------------------------------------ jQUERY TEXT EDITOR ------------------------------------------------------------>
33+
34+
<input class="jqte-test" name="text2" value="Articles should be in here">
35+
36+
<script>
37+
$('.jqte-test').jqte();
38+
39+
40+
// settings of status
41+
var jqteStatus = true;
42+
$(".status").click(function()
43+
{
44+
jqteStatus = jqteStatus ? false : true;
45+
$('.jqte-test').jqte({"status" : jqteStatus})
46+
});
47+
</script>
48+
49+
</body>
50+
</html>

0 commit comments

Comments
 (0)