Created
May 12, 2011 12:08
-
-
Save JohnPlummer/968379 to your computer and use it in GitHub Desktop.
HTML5 WordPress Header
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
#header-bar { | |
height: 10px; | |
background: #1F1F1F; | |
-moz-box-shadow: 0 0 25px 5px rgba(0,0,0,0.5); | |
-webkit-box-shadow: 0 0 25px 5px rgba(0,0,0,0.5); | |
box-shadow: 0 0 25px 5px rgba(0,0,0,0.5); | |
} |
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
$(document).ready(function() { | |
var drawingCanvas = document.getElementById('left-curve'); | |
// Check the element is in the DOM and the browser supports canvas | |
if(drawingCanvas && drawingCanvas.getContext) { | |
// Initaliase a 2-dimensional drawing context | |
var context = drawingCanvas.getContext('2d'); | |
context.fillStyle="#1F1F1F"; | |
context.beginPath(); | |
context.arc(0,14,14,0,Math.PI*1.5,true); | |
context.lineTo(14, 0); | |
context.closePath(); | |
context.fill(); | |
drawingCanvas = document.getElementById('right-curve'); | |
context = drawingCanvas.getContext('2d'); | |
context.fillStyle="#1F1F1F"; | |
context.beginPath(); | |
context.arc(14,14,14,Math.PI*1.5,Math.PI,true); | |
context.lineTo(0, 0); | |
context.closePath(); | |
context.fill(); | |
} | |
}); |
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
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment