Skip to content

Instantly share code, notes, and snippets.

@pembeci
Created August 15, 2014 01:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pembeci/35e4b7b84de48954b014 to your computer and use it in GitHub Desktop.
Save pembeci/35e4b7b84de48954b014 to your computer and use it in GitHub Desktop.
deneme // source http://jsbin.com/gesema/2
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<meta name="description" content="deneme" />
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
a {
background-color: lightblue;
color: maroon;
text-decoration: none;
}
.selected {
font-weight: bold;
font-size: 120%;
background-color: green;
text-align: right;
}
</style>
</head>
<body bgcolor="pink">
Deneme 1 2 3
<p>Paragraph 1</p>
cdcdfvdf <a>gfbgf</a>
vbfggf<br/>
<a href="http://mu.edu.tr">bgfbgf</a>
bgfbgf
bgfbgf
<p>Paragraph 2</p>
dfvfdv
<p>Paragraph 3</p>
<script id="jsbin-javascript">
$("p").click(function(){
// alert("clicked");
$(this).css("border", "3px solid gray");
$("p").removeClass("selected");
$(this).addClass("selected");
});
for (i=1; i<=20; i++) {
document.writeln("2^" + i + " = " + Math.pow(2,i) + "<br>") ;
}
</script>
</body>
</html>
a {
background-color: lightblue;
color: maroon;
text-decoration: none;
}
.selected {
font-weight: bold;
font-size: 120%;
background-color: green;
text-align: right;
}
$("p").click(function(){
// alert("clicked");
$(this).css("border", "3px solid gray");
$("p").removeClass("selected");
$(this).addClass("selected");
});
for (i=1; i<=20; i++) {
document.writeln("2^" + i + " = " + Math.pow(2,i) + "<br>") ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment