Skip to content

Instantly share code, notes, and snippets.

View adamsilver's full-sized avatar

Adam Silver adamsilver

View GitHub Profile
<div id="container">
asdadd
<p class="hello" id="yepYep">adasdasdsad</p>
asdasdsa
</div>
asdadd<P id=yepYep class=hello>adasdasdsad</P>asdasdsa
var flashvars = {htmlSrc: encodeURIComponent(""+getInnerXml(document.getElementById("containerId"))+"")};
swfobject.embedSWF(..., flashvars, ...);
var regex = /^(?=(.*\d){2,})(?=(.*[a-zA-Z]){2,})[a-zA-Z0-9]{6,}$/;
regex.test("abcdefg");
<a href="#tab1">Tab 1</a>
<a href="#tab2">Tab 2</a>
<a href="#tab3">Tab 3</a>
<div id="tab1"></div>
<div id="tab2"></div>
<div id="tab3"></div>
<html>
<head>...</head>
<body>
<div id="structureElementOne">
<!-- more HTML, perhaps a header as well-->
<div id="myModule">
Here is the main stuff that is unique to this page etc
</div>
<!-- more HTML, perhaps a footer as well-->
</div>
<html>
<head>...</head>
<body>
<div id="structureElementOne">
<!-- more HTML, perhaps a header as well-->
<?php include("myModule.php"); ?>
<!-- more HTML, perhaps a footer as well-->
</div>
</body>
</html>
<html>
<head>...</head>
<body>
<div id="structureElementOne">
<!-- more HTML, perhaps a header as well-->
<?php include("myModule.php"); ?>
<!-- more HTML, perhaps a footer as well-->
</div>
</body>
</html>
<div id="myModule">
Here is the main stuff that is unique to this page etc
</div>
<html>
<head>
<style>
#wrapper {
display: none; /* visibility: hidden; causes the same issue*/
}
</style>
<script type="text/javascript">
window.onload = function() {
document.getElementById("textBox").focus();