-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.wdgt.html
101 lines (94 loc) · 4.67 KB
/
index.wdgt.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
95
96
97
98
99
100
101
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:widget="http://wdgt.yandex.ru/ns/" >
<head>
<meta name="title" content="Лог для двоих" />
<meta name="description" content="Помогает свести счёты..." />
<meta name="height" content="300" />
<link rel="stylesheet" href="http://couplelog.appspot.com/couplelog.css"/>
<link rel="stylesheet" href="http://couplelog.appspot.com/couplelog.wdgt.css"/>
<script type="text/javascript" src="http://img.yandex.net/webwidgets/1/WidgetApi.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type="text/javascript" src="http://couplelog.appspot.com/couplelog.wdgt.js"></script>
<script type="text/javascript" src="http://couplelog.appspot.com/couplelogcollection.wdgt.js"></script>
<script type="text/javascript" src="http://couplelog.appspot.com/jquery.lint.js"></script>
<script type="text/javascript" src="http://couplelog.appspot.com/setup.js"></script>
<script type="text/javascript" src="http://couplelog.appspot.com/jquery.cookie.js"></script>
<script type="text/javascript" src="http://couplelog.appspot.com/addlog.wdgt.js"></script>
<script type="text/javascript" src="http://couplelog.appspot.com/likelogin.js"></script>
<script type="text/javascript" src="http://couplelog.appspot.com/raphael.js"></script>
<script type="text/javascript" src="http://couplelog.appspot.com/wdgt.setup.js"></script>
<script type="text/javascript">
var /*currentUser = 'veged',*/
logs = {
counter: 3,
'id1': {
id: 'id1',
title: 'Мытьё посуды',
type: 'self',
check: true,
he: {
user: 'veged',
count: 3,
action: 'Я помыл посуду.',
button: 'помыл'
},
she: {
user: 'lady_alice',
count: 5,
action: 'Я помыла посуду.',
button: 'помыла'
}
},
'id2': {
id: 'id2',
title: 'Хорошо',
type: 'self',
check: true,
he: {
user: 'veged',
count: 5,
action: 'Я сделал хорошо.',
button: 'сделал'
},
she: {
user: 'lady_alice',
count: 1,
action: 'Я сделала хорошо',
button: 'сделала'
}
},
'id3': {
id: 'id3',
title: 'Косяк!',
type: 'other',
check: true,
he: {
user: 'veged',
count: 5,
action: 'Она накосячила.',
button: 'накосячила'
},
she: {
user: 'lady_alice',
count: 1,
action: 'Он накосячил',
button: 'накосячил'
}
}
},
couplelogCollection = new CoupleLogCollection(logs);
$(function(){
couplelogCollection.likeLogin = new LikeLogin(couplelogCollection);
couplelogCollection.likeLogin.elem.hide();
couplelogCollection.setMode('cntnt');
couplelogCollection.likeLogin.setWho($.cookie('currentWho') || "Наблюдатель");
couplelogCollection.makeCurrent($.cookie('currentId'));
couplelogCollection.wdgtSetup = new WdgtSetup(couplelogCollection);
widget.adjustIFrameHeight();
});
</script>
</head>
<body>
</body>
</html>