-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
94 lines (93 loc) · 4.2 KB
/
index.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>jquery-eip demo</title>
<link type="text/css" rel="stylesheet" href="style.css"/>
</head>
<body>
<div id="loading">
<h2><span class="red">Loading...</span></h2>
</div>
<div id="enable_button" style="display:none">
<input type="button" name="enabled" value="disable edit in place"/>
</div>
<div id='content'>
<div id='top'>
<h1 class="eip">Edit-in-place jQuery Demo</h1>
<h3 class="eip">Click on things, see what happens.</h3>
</div>
<div id="left">
<h2 class="eip">Foo</h2>
<div class="eip">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed
do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
in reprehenderit in voluptate velit esse cillum dolore eu fugiat
nulla pariatur. Excepteur sint occaecat cupidatat non proident,
sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem
accusantium doloremque laudantium, totam rem aperiam, eaque
ipsa quae ab illo inventore veritatis et quasi architecto beatae
vitae dicta sunt explicabo. <a href="#" title="blah blah">Nemo
enim ipsam voluptatem quia voluptas sit</a> aspernatur aut odit
aut fugit, sed quia consequuntur magni dolores eos qui ratione
voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem
ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia
non numquam eius modi tempora incidunt ut labore et dolore magnam
aliquam quaerat voluptatem.</p>
</div>
</div>
<div id="right">
<h2 class="eip">Bar</h2> <div class="eip">
<p>Ut enim ad minima veniam, quis nostrum exercitationem ullam
corporis suscipit laboriosam, nisi ut aliquid ex ea commodi
consequatur?</p>
<ul>
<li>Quis autem vel eum.</li>
<li>Iure reprehenderit qui in ea voluptate.</li>
<li>Velit esse quam nihil molestiae consequatur.</li>
</ul>
<p><strong>Vel illum qui dolorem eum</strong> fugiat
quo voluptas nulla pariatur? At vero eos et accusamus et iusto
odio dignissimos ducimus qui blanditiis praesentium voluptatum
deleniti atque corrupti quos dolores et quas molestias excepturi
sint occaecati cupiditate non provident, similique sunt in culpa
qui officia deserunt mollitia animi, id est laborum et dolorum
fuga. Et harum quidem rerum facilis est et expedita distinctio.</p>
</div>
</div>
</div>
<script type="text/javascript" src="js/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
content_css: "style.css",
force_root_block: false,
mode: "none",
plugins: "safari",
theme: "advanced",
theme_advanced_toolbar_location: "external",
theme_advanced_buttons1: "cut,copy,paste,|,undo,redo,|,formatselect,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,outdent,indent,|,link,unlink,|,blockquote,sub,sup",
theme_advanced_buttons2: "",
theme_advanced_buttons3: ""
});
</script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.hoverlay.js"></script>
<script type="text/javascript" src="jquery.eip.js"></script>
<script type="text/javascript">
$(function() {
$(".eip").eip();
$("#loading").remove();
$("#enable_button").show();
$("input[name='enabled']").click(function() {
$.eip.enabled(! $.eip.enabled());
$(this).val(
($.eip.enabled() ? "disable" : "enable") + " edit in place"
);
});
});
</script>
</body>
</html>