Skip to content

Commit

Permalink
Antiquify v0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Gonzalez committed Dec 28, 2012
1 parent e79a655 commit 1c5e18b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions example/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ body {
body {
padding: 50px 100px; } }

a { cursor: pointer; }

.buttons {
position: fixed;
top: 0px;
Expand Down
2 changes: 1 addition & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</head>
<body>
<div class='buttons'>
<a class='toggle' href='#'>Toggle Antiquify</a>
<a class='toggle'>Toggle Antiquify</a>
</div>
<div class='text'>
<p class='page-number'>
Expand Down
2 changes: 1 addition & 1 deletion jquery.antiquify.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
$(this).css({textShadow: '-.08em 0em 0em rgba('+rgb+', 1), 0em -0.07em 0em rgba('+rgb+', 1)'});

if( $("head #antiquify-styles").length <=0) {
$("head").append("<style type='text/css' id='antiquify-styles'> .antiquify-shadow { text-shadow: .06em 0em 0em rgba("+rgb+", 1), 0em .06em 0em rgba("+rgb+", 1), -0.06em 0em 0em rgba("+rgb+",1), 0em -0.06em 0em rgba("+rgb+", 1) } .antiquify-mask { -webkit-mask-image:" +mask+ "; -o-mask-image:" +mask+ "; -moz-mask-image:" +mask+ "; mask-image:" +mask+ "; } </style>");
$("head").append("<style type='text/css' id='antiquify-styles'> .antiquify-shadow { text-shadow: .07em 0em 0em rgba("+rgb+", 1), 0em .06em 0em rgba("+rgb+", 1), -0.07em 0em 0em rgba("+rgb+",1), 0em -0.06em 0em rgba("+rgb+", 1) } .antiquify-mask { -webkit-mask-image:" +mask+ "; -o-mask-image:" +mask+ "; -moz-mask-image:" +mask+ "; mask-image:" +mask+ "; } </style>");
}

injector($(this), rgb);
Expand Down

0 comments on commit 1c5e18b

Please sign in to comment.