This repository has been archived by the owner on Dec 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
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
c7de396
commit 2ada28b
Showing
3 changed files
with
110 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Privly Button Test File</title> | ||
<script src="../jquery-1.7.1.min.js" type="text/javascript"></script> | ||
|
||
<link href="../styles.css" media="screen" rel="stylesheet" type="text/css" /> | ||
|
||
</head> | ||
<body> | ||
|
||
<div id="test_area"> | ||
<h1>Privly Button Test File</h1> | ||
<p>This file contains a test cases for different circumstances in which the Privly button should appear. | ||
It shows its position relative to the height of the textarea / editable divs.</p> | ||
</br> | ||
<h4>Large textarea with immediate parent div</h4> | ||
<p>Parent div has border.</p> | ||
<div id="div1"><textarea id="textarea1">Write something...</textarea></div> | ||
</br><hr> | ||
|
||
<h4>Large textarea without immediate parent div</h4> | ||
<p>Textarea has border.</p> | ||
<textarea id="textarea1b">Write something...</textarea> | ||
</br><hr> | ||
|
||
<h4>Small textarea (21px) with immediate parent div</h4> | ||
<p>Child textarea has 10px top margin. Parent div has a border.</p> | ||
<div id="div1"><textarea id="textarea2">Enter...</textarea></div> | ||
</br><hr> | ||
|
||
<h4>Small textarea (21px) without immediate parent div</h4> | ||
<p>Textarea has border.</p> | ||
<textarea id="textarea2b">Enter...</textarea> | ||
</br><hr> | ||
|
||
<h4>Very small textarea (< 21px) with immediate parent div</h4> | ||
<p>Textarea has border.</p> | ||
<div><textarea id="textarea3">Enter...</textarea></div> | ||
</br><hr> | ||
|
||
<h4>Very small textarea (< 21px) without immediate parent div</h4> | ||
<p>Textarea has border.</p> | ||
<textarea id="textarea3">Enter...</textarea> | ||
</br><hr> | ||
|
||
<h4>Editable div</h4> | ||
<p>Div has border.</p> | ||
<div contentEditable="true" id="div1">Enter...</div> | ||
</br><hr> | ||
|
||
<h4>Editable div with blank child div (Twitter)</h4> | ||
<p>Div has border.</p> | ||
<div contentEditable="true" id="div2"><div></br></div></div> | ||
</div> | ||
</body> | ||
</html> |