-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new fullScreenMode settings (auto/force/allow/disable).
Add global "small screen mode" state to change UI behaviour on mobiles Fix dragging of palettes on mobile toggled visibility
- Loading branch information
1 parent
efb1081
commit 39a0592
Showing
11 changed files
with
211 additions
and
79 deletions.
There are no files selected for viewing
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,20 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
<title>ChickenPaint testbed</title> | ||
|
||
<script src="../resources/js/chickenpaint.js"></script> | ||
<link rel="stylesheet" type="text/css" href="../resources/css/chickenpaint.css"> | ||
|
||
<script src="index-mobile.js"></script> | ||
|
||
</head> | ||
<body> | ||
<h1>ChickenPaint testbed</h1> | ||
<div id="chickenpaint-parent"></div> | ||
<p></p> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
document.addEventListener("DOMContentLoaded", function() { | ||
new ChickenPaint({ | ||
uiElem: document.getElementById("chickenpaint-parent"), | ||
//loadImageUrl: "./uploaded.png", | ||
//loadChibiFileUrl: "./uploaded.chi", | ||
saveUrl: "save.php", | ||
postUrl: "posting.php", | ||
exitUrl: "forum.php", | ||
allowDownload: true, | ||
resourcesRoot: "../resources/", | ||
disableBootstrapAPI: true, | ||
fullScreenMode: "force" | ||
}); | ||
}); |
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
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
Oops, something went wrong.