shooflenet/finalized/static/js_test.html

32 lines
761 B
HTML
Raw Normal View History

<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>A smart, organizing text editor</title>
<link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css"/>
<link href="/static/bootstrap/css/bootstrap-responsive.css" rel="stylesheet" type="text/css"/>
<link href="/static/shoofle.css" rel="stylesheet" type="text/css"/>
<script src="/static/jquery.min.js" type="text/javascript"></script>
</head>
<body>
<div class="block" id="editor" contentEditable>
<p>Hi!</p>
</div>
<script type="text/javascript">
var aaaaa = this;
function inject(name, value) {
aaaaa[name] = value;
}
$(document).ready(function() {
var sum = 0;
for (var i=0; i<17; i++) {
sum += i;
}
inject("some_sum", sum);
});
</script>
</body>
</html>