-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
143 lines (126 loc) · 4.5 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Twitter</title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link href="./css/default.css" rel="stylesheet" />
</head>
<body class="yui3-skin-sam">
<!-- QUNIT FIXTURE -->
<div id="container">
<header>
<h1>Twitter</h1>
</header>
<section id="user-profile">
<img src="" width="73" height="73" />
<h2>@Username</h2>
<p class="user-tweets">Tweets: <span>0</span></p>
<p class="followers">Followers: <span>0</span></p>
<p class="following">Following: <span>0</span></p>
</section>
<section id="feed">
<ul id="tweets" class="normal-tweet show-promoted-tweets">
<li class="tweet promoted-tweet" data-user-name="appendTo">
<div class="image">
<img height="48" width="48" src="http://twitter.com/api/users/profile_image?screen_name=appendTo" alt="" />
</div>
<div class="content">
<div class="user">
<a class="user-name" href="http://twitter.com/appendTo" title="appendTo">appendTo</a>
<div class="full-name">appendTo</div>
</div>
<div class="text">A tweet here, a tweet there, a tweet everyewhere...</div>
<div class="time-stamp" data-time="1322631934000">3 minutes ago</div>
</div>
</li>
<li class="tweet promoted-tweet" data-user-name="dougneiner">
<div class="image">
<img height="48" width="48" src="http://twitter.com/api/users/profile_image?screen_name=dougneiner" alt="" />
</div>
<div class="content">
<div class="user">
<a class="user-name" href="http://twitter.com/dougneiner" title="dougneiner">dougneiner</a>
<div class="full-name">Doug Neiner</div>
</div>
<div class="text">I live where beauty meets design...</div>
<div class="time-stamp" data-time="1322631934000">17 minutes ago</div>
</div>
</li>
<li class="tweet normal-tweet" data-user-name="redwolves">
<div class="image">
<img height="48" width="48" src="http://twitter.com/api/users/profile_image?screen_name=redwolves" alt="" />
</div>
<div class="content">
<div class="user">
<a class="user-name" href="http://twitter.com/redwolves" title="redwolves">redwolves</a>
<div class="full-name">Ralph Whitbeck</div>
</div>
<div class="text">Now sit right back and you'll hear a tale...</div>
<div class="time-stamp" data-time="1322631934000">32 minutes ago</div>
</div>
</li>
</ul>
<div id="compose">
<textarea></textarea>
<button class="send">Send</button>
<button class="refresh">Refresh</button>
<select class="refreshCount">
<option>05</option>
<option>10</option>
<option>25</option>
<option>50</option>
<option>100</option>
</select>
</div>
<div id="notification">This is a notification.</div>
</section>
<footer>
<div>A progressive demo for training labs</div>
</footer>
</div>
<!-- /QUNIT FIXTURE -->
<script src="./libs/jquery-1.7.1.min.js"></script>
<script src="./libs/jquery-ui-1.8.16/js/jquery-ui-1.8.16.custom.min.js"></script>
<script src="./libs/amplify.min.js"></script>
<script src="./libs/jquery.mockjax.js"></script>
<script src="./labs/common/common.js"></script>
<script src="./labs/01-find-something/lab.js"></script>
<script src="./labs/02-jquery-methods/lab.js"></script>
<script src="./labs/04-manipulation/lab.js"></script>
<script src="./labs/05-selector-and-dom-performance/lab.js"></script>
<script src="./labs/06-events/lab.js"></script>
<script src="./labs/07-ajax/lab.js"></script>
<script src="./labs/08-animation/lab.js"></script>
<script src="./labs/09-advanced-events/lab.js"></script>
<script src="./labs/10-plugins/lab.js"></script>
<script src="./labs/13-contextual-jquery-selectors/lab.js"></script>
<script src="./labs/15-ui-widget-factory/lab.js"></script>
<script>
$( function() {
var userName = amplify.store( "userName" ),
template = lesson.helpers.template;
if ( !userName ) {
userName = prompt( "What is your Twitter username?", "appendTo" );
amplify.store( "userName", userName );
}
$( "#user-profile" )
.find( "img" )
.attr( "src", template( lesson.data.profileImageTemplate, { userName: userName } ) )
.end()
.find( "h2" )
.html( template( lesson.data.profileLinkTemplate, { userName: userName } ) );
$.each( lesson, function ( lesson, exercises ) {
$.each( exercises, function ( exercise, method ) {
if ( /^exercise_/.test( exercise ) ) {
method( $.noop );
}
});
});
});
</script>
</script>
</body>
</html>