fonteditor/demo/findBreakPoints.html
2015-04-06 13:40:03 +08:00

81 lines
1.6 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>查找拐点</title>
<script src="../dep/esl.js"></script>
<script src="../dep/jquery.min.js"></script>
<style>
body {
margin: 0;
padding: 0;
}
#points, #points-break {
position: absolute;
left: 0;
top: 0;
width: 800px;
height: 800px;
}
#points i,
#points-break i {
position: absolute;
width: 1px;
height: 1px;
background: #eee;
}
#points-break i {
background: #333;
}
#points-break i.break {
width: 2px;
height: 2px;
background: red;
}
#points-break i.tangency {
width: 4px;
height: 4px;
background: blue;
}
#points-break i.apex {
width: 2px;
height: 2px;
background: cyan;
}
#points-break i.inflexion {
width: 2px;
height: 2px;
background: green;
}
#points-break i[data-visited] {
width: 3px;
height: 3px;
border-radius: 3px;
}
</style>
</head>
<body>
<div id="points"></div>
<div id="points-break"></div>
<script>
require.config({
baseUrl: '../src',
paths: {
demo: '../demo/js',
}
});
define('jquery', $);
</script>
<script>require(['demo/findBreakPoints'])</script>
</body>
</html>