mirror of
https://github.com/leanote/leanote-android.git
synced 2025-10-19 00:44:08 +00:00
make title font size bigger
This commit is contained in:
@@ -30,14 +30,13 @@
|
|||||||
|
|
||||||
html, body {
|
html, body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
margin: 0px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="title" style="outline: 0px solid transparent;" class="without-border" contenteditable="true"></div>
|
<h3 id="title" style="outline: 0px solid transparent;" class="without-border" contenteditable="true"></h3>
|
||||||
<hr id="hr" />
|
<hr id="hr" />
|
||||||
<div id="content" style="outline: 0px solid transparent;"></div>
|
<div id="content" style="outline: 0px solid transparent;"></div>
|
||||||
<p id="dummyP" style="display:none;"></p>
|
<p id="dummyP" style="display:none;"></p>
|
||||||
@@ -56,10 +55,17 @@
|
|||||||
|
|
||||||
window.onload = function () {
|
window.onload = function () {
|
||||||
var dummyP = $('#dummyP');
|
var dummyP = $('#dummyP');
|
||||||
var pMargin = parseInt(dummyP.css('marginTop'));
|
|
||||||
var hr = $('#hr');
|
var hr = $('#hr');
|
||||||
var hrHeight = hr.outerHeight() + parseInt(hr.css('marginTop')) + parseInt(hr.css('marginBottom'));
|
var body = $('body');
|
||||||
var contentHeight = window.innerHeight - pMargin - $('#title').outerHeight() - hrHeight;
|
var contentHeight = window.innerHeight
|
||||||
|
- parseInt(body.css('marginTop'))
|
||||||
|
- parseInt(body.css('marginBottom'))
|
||||||
|
- parseInt(dummyP.css('marginTop'))
|
||||||
|
- $('#title').outerHeight()
|
||||||
|
- hr.outerHeight()
|
||||||
|
- parseInt(hr.css('marginTop'))
|
||||||
|
- parseInt(hr.css('marginBottom'));
|
||||||
|
|
||||||
$('#content').css('height', contentHeight + 'px');
|
$('#content').css('height', contentHeight + 'px');
|
||||||
tinymce.init({
|
tinymce.init({
|
||||||
selector: 'div#content',
|
selector: 'div#content',
|
||||||
|
Reference in New Issue
Block a user