forked from bigskysoftware/htmx
-
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.
* inject the style as a stand alone element * support the meta directive to not include the default style fixes bigskysoftware#13
- Loading branch information
carson
committed
May 16, 2020
1 parent
d4b4d46
commit 6e06c0d
Showing
5 changed files
with
105 additions
and
13 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,16 @@ | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="kutty-config" content='{"includeIndicatorStyles":false}'> | ||
<title>Test if the includeIndicatorStyles meta option works</title> | ||
<script src="../src/kutty.js"></script> | ||
</head> | ||
<body> | ||
<h1>You should see bars here:</h1> | ||
<p> | ||
We are overriding the normal CSS inclusion with the meta directive <code>{"includeIndicatorStyles":false}</code> | ||
so you should see the indicator because it is not being hidden by the default classes. | ||
</p> | ||
<img class="kutty-indicator" src="img/bars.svg" width="200"> | ||
</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,11 @@ | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Test if indicators are invisible by default</title> | ||
<script src="../src/kutty.js"></script> | ||
</head> | ||
<body> | ||
<h1>You should not see bars here:</h1> | ||
<img class="kutty-indicator" src="img/bars.svg" width="200"> | ||
</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