2011-07-16 23:33:46 +04:00
|
|
|
<!--
|
|
|
|
* @author Niklas von Hertzen <niklas at hertzen.com>
|
|
|
|
* @created 16.7.2011
|
|
|
|
* @website http://hertzen.com
|
|
|
|
-->
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2011-07-16 23:34:11 +04:00
|
|
|
<title>Text-decoration:underline tests</title>
|
2011-07-16 23:33:46 +04:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
|
<link href="#" type="text/css" rel="stylesheet">
|
|
|
|
|
|
|
|
<script type="text/javascript" src="../external/jquery-1.6.2.min.js"></script>
|
|
|
|
<script type="text/javascript" src="../build/html2canvas.js"></script>
|
|
|
|
<script type="text/javascript" src="../build/jquery.plugin.html2canvas.js"></script>
|
|
|
|
<script type="text/javascript">
|
2011-07-16 23:34:11 +04:00
|
|
|
$(window).ready(function() {
|
|
|
|
$('body').empty();
|
|
|
|
$.each(['arial','verdana','tahoma','courier new'],function(i,e){
|
|
|
|
|
|
|
|
var div = $('<div />').css('font-family',e).appendTo('body');
|
|
|
|
|
|
|
|
for(var i=0;i<=20;i++){
|
|
|
|
$('<div />').text('Testing texts').css('margin-top',1).css('border','1px solid black').css('font-size',(16+i*6)).appendTo(div);
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window.setTimeout(function(){
|
|
|
|
$('body').html2canvas();
|
|
|
|
},100);
|
2011-07-16 23:33:46 +04:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.small{
|
|
|
|
font-size:14px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.medium{
|
|
|
|
font-size:18px;
|
|
|
|
}
|
|
|
|
.large{
|
|
|
|
font-size:24px;
|
|
|
|
}
|
2011-07-16 23:34:11 +04:00
|
|
|
|
2011-07-16 23:33:46 +04:00
|
|
|
div{
|
2011-07-16 23:34:11 +04:00
|
|
|
text-decoration:underline;
|
|
|
|
line-height:40px;
|
2011-07-16 23:33:46 +04:00
|
|
|
}
|
2011-07-16 23:34:11 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-07-16 23:33:46 +04:00
|
|
|
h2 {
|
|
|
|
clear:both;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
</head>
|
2011-07-16 23:34:11 +04:00
|
|
|
<body>
|
|
|
|
Creating content through JavaScript
|
2011-07-16 23:33:46 +04:00
|
|
|
</body>
|
|
|
|
</html>
|