forked from dexteryy/CardKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathformpage.html
46 lines (40 loc) · 1.13 KB
/
formpage.html
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
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>demo</title>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="format-detection" content="telephone=no">
<link href="static/css/main.css" rel="stylesheet">
<style>
</style>
</head>
<body>
<form action="post_result.html" id="ajaxForm1">
<div class="ck-form-unit">
<div class="ckd-item">
<label class="ck-title">章节名</label>
<input type="text" value="" name="a" placeholder="章节名">
</div>
<div class="ckd-item">
<label class="ck-title">笔记内容</label>
<textarea name="b" placeholder="笔记内容"></textarea>
<label><em>注释</em></label>
</div>
</div>
</form>
<script>
console.info('iframe loaded');
parent.require([
'dollar',
'cardkit/app'
], function($, ck){
ck.modalCard.event.once('confirm', function(modal){
modal.showLoading();
$('#iframeForm1', document).bind('submit', function(e){
modal.hideLoading();
}).trigger('submit');
});
});
</script>
</body>