-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
35 lines (35 loc) · 719 Bytes
/
index.html
File metadata and controls
35 lines (35 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html>
<head><meta charset="utf-8">
<title>js</title>
<style>
.column{float:left;background:#bee;width:160px;margin:8px;padding:8px}
</style>
<script src="edjs.js"></script>
<script>
$(function(){
$(document).on("keyup",function(e){
e=e||window.event;
var e=e.charCode||e.keyCode;
if(e==27)alert("Esc");
});
$.fn.extend({
equalheight:function(){
return this.each(function(){
var tall=0;
$(this).children().each(function(){
tall=Math.max($(this).height(),tall);
}).css({"height":tall+'px'});
});
}
});
$('.equal').equalheight();
});
</script>
</head><body><h1></h1>
<div class="equal">
<div class="column">Text1</div>
<div class="column">Text2</div>
<div class="column">Text3</div>
</div>
</body></html>