Skip to content

Commit

Permalink
added application simple text
Browse files Browse the repository at this point in the history
there is now a text editor for clone Cloud called simple text it can
only open files for now
  • Loading branch information
Giobkboy committed Apr 6, 2014
1 parent bc99d04 commit ccbb139
Show file tree
Hide file tree
Showing 19 changed files with 2,060 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Clone-WebOS
the appslist.txt file. The entry for an app should look somewhat like this:

segment{
-app_name
-app name
-apps/folder/index.html
-images/your_icon.png

Expand Down
2 changes: 1 addition & 1 deletion apps/Lib/fileTypes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ segment{
-NONE
-../../images/folder.png
segment{
-../text/text.php
-../simpleText/main.php
-txt
-../../images/Documents.png
27 changes: 27 additions & 0 deletions apps/SimpleText/SimpleText.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#topBar{
width: 99.25%;
height: 50px;

margin-right: auto;
margin-left: auto;

padding-left:5px;
padding-right:5px;

background-color: #EEEEEE;
}
.jqte{

border-radius: 0px;
border: 0px;
margin: 0px;
background-color: lightgray;
}
.jqte_editor{

max-width: 1000px;
margin-left: auto;
margin-right: auto;
height: 100%;

}
20 changes: 20 additions & 0 deletions apps/SimpleText/SimpleText.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<html>
<head>
<title>Simple Text</title>

<link rel="stylesheet" type="text/css" href="../../themes/theme.css">

<link type="text/css" rel="stylesheet" href="jQuery-TE_v.1.4.0/jquery-te-1.4.0.css">
<link rel="stylesheet" type="text/css" href="SimpleText.css">

<script type="text/javascript" src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="jQuery-TE_v.1.4.0/uncompressed/jquery-te-1.4.0.js"></script>

<script src="SimpleText.js"></script>
</head>
<body>
<!--<h1>Simple Text</h1>-->
<div id="topBar"><input class="text" type="text" placeholder="File Name" name="userName"></input></div>
<input class="editor" name="text2" value="{File Contents}">
</body>
</html>
4 changes: 4 additions & 0 deletions apps/SimpleText/SimpleText.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

$( document ).ready(function() {
$('.editor').jqte();//init the rich text editor
});
94 changes: 94 additions & 0 deletions apps/SimpleText/jQuery-TE_v.1.4.0/demo/demo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/* general styles */
html, body {
padding:30px 100px;
background:#E5E5E5
}
* {
font-family:Verdana, Arial, sans-serif;
color:#000
}
h1 {
font-size:33px;
color:#99CC00;
margin:15px 0
}
.navigation {
margin:10px 0 20px;
}
.navigation, .navigation a {
color:#608000;
font-size:12px;
}
.navigation a {
margin-right:4px;
}
h2 {
margin:15px 0 25px;
color:#608000;
font-size:14px;
font-weight:bold
}
a:link, a:visited {
text-decoration:underline
}
.testbutton {
margin-bottom:30px;
background:#3399FF;
padding:6px 25px;
border:#003F81 1px solid;
color:#FFF;
font-size:22px;
border-radius:5px; -webkit-border-radius:5px; -moz-border-radius:5px;
box-shadow:inset 0 5px 5px #67B3FF; -webkit-box-shadow:inset 0 5px 5px #67B3FF; -moz-box-shadow:inset 0 5px 5px #67B3FF
}
.testbutton:hover {
background:#198CFF;
cursor:pointer
}
.footer, .footer * {
color:#802D00;
font-size:15px
}

.jqte-test {
display:block;
margin:0 0 10px;
padding:6px;
width:95%;
background:#FFF;
border:#AAA 1px solid;
font-size:13px;
}
textarea.jqte-test, div.jqte-test, span.jqte-test {
min-height:100px;
}
button {
display:block;
margin:20px 0;
padding:6px 0 4px;
width:154px;
background:#658700;
border:#526E00 1px solid;
color:#F3FFCF !important;
text-align:center;
font-size:13px;
font-weight:bold;
border-radius:3px; -webkit-border-radius:3px; -moz-border-radius:3px;
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;
cursor:pointer;
}
button:hover {
background:#78A000;
border-color:#658700;
text-decoration:none !important;
cursor:pointer
}

button:active {
background:#3F5500;
border-color:#2C3C00;
color:#9CCD00 !important;
box-shadow:0 0 3px #000,inset 0 -2px 2px #333;
-webkit-box-shadow:0 0 3px #000, inset 0 -2px 2px #333;
-moz-box-shadow:0 0 3px #000, inset 0 -2px 2px #333;
}
50 changes: 50 additions & 0 deletions apps/SimpleText/jQuery-TE_v.1.4.0/demo/demo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>jQuery TE | Downloaded Demo | v.1.4.0</title>

<link type="text/css" rel="stylesheet" href="demo.css">
<link type="text/css" rel="stylesheet" href="../jquery-te-1.4.0.css">

<script type="text/javascript" src="http://code.jquery.com/jquery.min.js" charset="utf-8"></script>
<script type="text/javascript" src="../uncompressed/jquery-te-1.4.0.js" charset="utf-8"></script>
</head>

<body>
<h1>jQuery TE</h1>

<div class="navigation">
<a href="http://jqueryte.com" target="_blank">Home</a>
<a href="http://jqueryte.com/demos" target="_blank">Demos</a>
<a href="http://jqueryte.com/documentation" target="_blank">Documentation</a>
<a href="http://jqueryte.com/comments" target="_blank">Comments</a>
<a href="http://jqueryte.com/about" target="_blank">About</a>
<a href="http://jqueryte.com/license" target="_blank">License</a>
</div>

<h2>Demo | v.1.4.0</h2>

<!------------------------------------------------------------ Toggle jQTE Button ------------------------------------------------------------>
<button class="status">Toggle jQTE</button>

<!------------------------------------------------------------ jQUERY TEXT EDITOR ------------------------------------------------------------>

<input class="jqte-test" name="text2" value="Articles should be in here">

<script>
$('.jqte-test').jqte();


// settings of status
var jqteStatus = true;
$(".status").click(function()
{
jqteStatus = jqteStatus ? false : true;
$('.jqte-test').jqte({"status" : jqteStatus})
});
</script>

</body>
</html>
Loading

0 comments on commit ccbb139

Please sign in to comment.