-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c92d20c
commit 341f986
Showing
69 changed files
with
27 additions
and
14,759 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"></meta> | ||
<title> | ||
SRTEditor Example | ||
</title> | ||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" crossorigin="anonymous"> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> | ||
<script src="srteditor.min.js"></script> | ||
<script> | ||
$(document).ready(function () { | ||
$("#srteditor").srteditor({ | ||
"Submit": function(e) { | ||
console.log(e.data.doc.body.innerHTML); | ||
} | ||
}, "<h3>This is a test</h3>"); | ||
}); | ||
</script> | ||
</head> | ||
<body> | ||
<iframe id="srteditor"></iframe> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,5 @@ | ||
#!/bin/bash | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
WEBSITE=$DIR/website | ||
WEBSITE_API=$WEBSITE/api | ||
WEBSITE_JS=$WEBSITE/static/js | ||
WEBSITE_DOWNLOAD=$WEBSITE/download | ||
DEFAULT_PORT=4000 | ||
mkdir -p $WEBSITE_JS | ||
mkdir -p $WEBSITE_API | ||
mkdir -p $WEBSITE_DOWNLOAD | ||
if [[ $1 == "--deploy" ]]; then | ||
bash scripts/meta.sh $1 > $WEBSITE_API/meta.json | ||
apt-get update | ||
apt-get install zip | ||
else | ||
if [[ ! -z "$PORT" ]]; then | ||
if [[ ! ($PORT =~ ^([0-9]{1,5})$ && $PORT -gt 1499 && $PORT -lt 65536) ]]; then | ||
echo "Bad port, setting to default: $DEFAULT_PORT" | ||
PORT=$DEFAULT_PORT | ||
fi | ||
else | ||
PORT=$DEFAULT_PORT | ||
fi | ||
bash scripts/meta.sh $PORT > $WEBSITE_API/meta.json | ||
fi | ||
zip $WEBSITE_DOWNLOAD/srteditor.zip srteditor.js srteditor.min.js README.md LICENSE | ||
tar -cf $WEBSITE_DOWNLOAD/srteditor.tar srteditor.js srteditor.min.js README.md LICENSE | ||
cd $WEBSITE | ||
if [[ $1 != "--deploy" ]]; then | ||
uglifyjs $DIR/srteditor.js > $DIR/srteditor.min.js | ||
fi | ||
cp $DIR/srteditor.min.js $WEBSITE_JS | ||
bundle install | ||
if [[ $1 == "--deploy" ]]; then | ||
bundle exec jekyll build -d $DIR/public | ||
else | ||
bundle exec jekyll serve --host 0.0.0.0 --port $PORT | ||
fi | ||
uglifyjs $DIR/srteditor.js > $DIR/srteditor.min.js | ||
python3 -mwebbrowser example.html |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.