=== modified file 'hooks/chroot' --- hooks/chroot 2013-03-14 11:26:54 +0000 +++ hooks/chroot 2013-03-25 07:54:36 +0000 @@ -9,4 +9,5 @@ apt-get purge --auto-remove -y ibus apt-get purge --auto-remove -y totem +mkdir -p /etc/skel/桌面 cp /usr/share/applications/firefox.desktop /etc/skel/桌面/ === added directory 'ubiquity-slideshow/slides/en_US' === added file 'ubiquity-slideshow/slides/en_US/accessibility.html' --- ubiquity-slideshow/slides/en_US/accessibility.html 1970-01-01 00:00:00 +0000 +++ ubiquity-slideshow/slides/en_US/accessibility.html 2013-03-26 08:15:10 +0000 @@ -0,0 +1,16 @@ +

Our wiki page

+ +
+ +
+ +
+

UbuntuKylin English the official home page, you can quickly locate and join each team, including: a team of developers, community team, quality assurance team, release team, documentation team.

+
+ +
+ + + +
+ === added file 'ubiquity-slideshow/slides/en_US/browse.html' --- ubiquity-slideshow/slides/en_US/browse.html 1970-01-01 00:00:00 +0000 +++ ubiquity-slideshow/slides/en_US/browse.html 2013-03-26 08:12:16 +0000 @@ -0,0 +1,33 @@ +

Popular Chinese office software

+ +
+ +
+ +
+

Most advanced text tools for Chinese creative, compatible with multiple formats documents, powerful graphic layout, a wealth of online resources library, so that your document production is both professional and relaxed.You can easily get WPS for UbuntuKylin on: www.ubuntukylin.com/download.html.

+
+ + + +
+ + + +
=== added file 'ubiquity-slideshow/slides/en_US/gethelp.html' --- ubiquity-slideshow/slides/en_US/gethelp.html 1970-01-01 00:00:00 +0000 +++ ubiquity-slideshow/slides/en_US/gethelp.html 2013-03-12 11:49:17 +0000 @@ -0,0 +1,15 @@ +

Thank you!

+ +
+ +
+ +
+

This installation will be completed in 20 minutes, if you have any questions, please visit www.ubuntukylin.com.

+
+ +
+ + + +
=== added directory 'ubiquity-slideshow/slides/en_US/icons' === added file 'ubiquity-slideshow/slides/en_US/icons/access.png' Binary files ubiquity-slideshow/slides/en_US/icons/access.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/access.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/chinese-calendar.png' Binary files ubiquity-slideshow/slides/en_US/icons/chinese-calendar.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/chinese-calendar.png 2013-03-12 11:49:17 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/chromium.png' Binary files ubiquity-slideshow/slides/en_US/icons/chromium.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/chromium.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/empathy.png' Binary files ubiquity-slideshow/slides/en_US/icons/empathy.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/empathy.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/evolution.png' Binary files ubiquity-slideshow/slides/en_US/icons/evolution.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/evolution.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/facebook.png' Binary files ubiquity-slideshow/slides/en_US/icons/facebook.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/facebook.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/fcitx.png' Binary files ubiquity-slideshow/slides/en_US/icons/fcitx.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/fcitx.png 2013-03-12 11:49:17 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/firefox.png' Binary files ubiquity-slideshow/slides/en_US/icons/firefox.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/firefox.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/flash.png' Binary files ubiquity-slideshow/slides/en_US/icons/flash.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/flash.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/gimp.png' Binary files ubiquity-slideshow/slides/en_US/icons/gimp.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/gimp.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/gwibber.png' Binary files ubiquity-slideshow/slides/en_US/icons/gwibber.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/gwibber.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/identica.png' Binary files ubiquity-slideshow/slides/en_US/icons/identica.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/identica.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/indicator-china-weather.png' Binary files ubiquity-slideshow/slides/en_US/icons/indicator-china-weather.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/indicator-china-weather.png 2013-03-12 11:49:17 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/inkscape.png' Binary files ubiquity-slideshow/slides/en_US/icons/inkscape.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/inkscape.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/languages.png' Binary files ubiquity-slideshow/slides/en_US/icons/languages.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/languages.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/libreoffice-calc.png' Binary files ubiquity-slideshow/slides/en_US/icons/libreoffice-calc.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/libreoffice-calc.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/libreoffice-impress.png' Binary files ubiquity-slideshow/slides/en_US/icons/libreoffice-impress.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/libreoffice-impress.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/libreoffice-writer.png' Binary files ubiquity-slideshow/slides/en_US/icons/libreoffice-writer.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/libreoffice-writer.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/movieplayer.png' Binary files ubiquity-slideshow/slides/en_US/icons/movieplayer.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/movieplayer.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/pitivi.png' Binary files ubiquity-slideshow/slides/en_US/icons/pitivi.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/pitivi.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/rhythmbox.png' Binary files ubiquity-slideshow/slides/en_US/icons/rhythmbox.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/rhythmbox.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/shotwell.png' Binary files ubiquity-slideshow/slides/en_US/icons/shotwell.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/shotwell.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/skype.png' Binary files ubiquity-slideshow/slides/en_US/icons/skype.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/skype.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/stellarium.png' Binary files ubiquity-slideshow/slides/en_US/icons/stellarium.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/stellarium.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/themes.png' Binary files ubiquity-slideshow/slides/en_US/icons/themes.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/themes.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/tomboy.png' Binary files ubiquity-slideshow/slides/en_US/icons/tomboy.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/tomboy.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/twitter.png' Binary files ubiquity-slideshow/slides/en_US/icons/twitter.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/twitter.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/ubuntuone.png' Binary files ubiquity-slideshow/slides/en_US/icons/ubuntuone.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/ubuntuone.png 2013-03-12 11:42:54 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/unity-china-music-scope.png' Binary files ubiquity-slideshow/slides/en_US/icons/unity-china-music-scope.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/unity-china-music-scope.png 2013-03-12 11:49:17 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/wps-office-etmain.png' Binary files ubiquity-slideshow/slides/en_US/icons/wps-office-etmain.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/wps-office-etmain.png 2013-03-26 06:07:30 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/wps-office-wppmain.png' Binary files ubiquity-slideshow/slides/en_US/icons/wps-office-wppmain.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/wps-office-wppmain.png 2013-03-26 06:08:36 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/icons/wps-office-wpsmain.png' Binary files ubiquity-slideshow/slides/en_US/icons/wps-office-wpsmain.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/icons/wps-office-wpsmain.png 2013-03-26 06:08:56 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/index.html' --- ubiquity-slideshow/slides/en_US/index.html 1970-01-01 00:00:00 +0000 +++ ubiquity-slideshow/slides/en_US/index.html 2013-03-25 08:03:18 +0000 @@ -0,0 +1,54 @@ + + + + + + ubiquity-slideshow-ubuntu + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+ + + +
+
+ + + + === added directory 'ubiquity-slideshow/slides/en_US/link' === added symlink 'ubiquity-slideshow/slides/en_US/link-core' === target is u'../../link-core' === added file 'ubiquity-slideshow/slides/en_US/link/arrow-back.png' Binary files ubiquity-slideshow/slides/en_US/link/arrow-back.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/link/arrow-back.png 2013-03-12 11:49:17 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/link/arrow-next.png' Binary files ubiquity-slideshow/slides/en_US/link/arrow-next.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/link/arrow-next.png 2013-03-12 11:49:17 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/link/background.png' Binary files ubiquity-slideshow/slides/en_US/link/background.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/link/background.png 2013-03-12 11:49:17 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/link/base.css' --- ubiquity-slideshow/slides/en_US/link/base.css 1970-01-01 00:00:00 +0000 +++ ubiquity-slideshow/slides/en_US/link/base.css 2013-03-12 11:49:17 +0000 @@ -0,0 +1,404 @@ +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, font, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td { + margin:0; + padding:0; + border:0; + outline:0; + font-size: 100%; + font-style:normal; + text-decoration:none; + font-weight:normal; + vertical-align:baseline; + background:transparent; +} +ol, ul { + list-style:none; +} + + + +html, body { + margin:0; + padding:0; + + background-color:#F7F6F6; + + font-family:'Ubuntu', 'UbuntuBeta', sans-serif; + font-size:12px; + line-height:1.4em; + + color:#333333; + + /* no reason to expose this extra stuff to the user */ + -webkit-user-select:none; + -moz-user-select:none; + user-select:none; + cursor:default; +} + +/* +Hyperlink-style text +*/ +a { + color:#DD4814; + text-decoration:none; + display:inline; +} + +.text a:hover { + text-decoration:underline; +} + +#wrapper { + position:absolute; + + width:752px; + height:100%; +} + +#slideshow { + width:752px; + min-height:442px; + height:100%; + overflow:hidden; +} +#slideshow > div { + position:absolute; + width:100%; + height:100%; +} + +.control-arrow { + display:block; + position:absolute; + + z-index:100; + top:218px; + height:64px; + width:33px; + + background-repeat:no-repeat; + cursor:pointer; +} +.control-arrow.disabled { + cursor:default; +} +.control-arrow:hover { + background-position: 0px -65px; +} +.control-arrow:active { + background-position: 0px -130px; +} +.control-arrow#prev-slide { + background-image:url('arrow-back.png'); + left:0px; +} +.control-arrow#next-slide { + background-image:url('arrow-next.png'); + left:719px; /* 752px - 33px */ +} + +/* Fixed container for a slide's title */ +.header { + display:table; /* this is a bit evil, but it lets us vertically centre stuff */ + position:absolute; + /* FIXME: better to use position:relative here and for #main. + Need to have a specific maximum height, though, + which isn't working with display:table */ + top:0px; + width:100%; + height:68px; + background-color:#3C3B37; +} + +.header > .slidetitle { + display:table-cell; + /*margin:10px 25px 10px 25px;*/ + padding:0px 25px; + vertical-align:middle; + + font-size:20px; /* applies to all lines except first */ + line-height:1em; + font-weight:normal; + color:#DED9CB; +} +.slidetitle:first-line { + font-size:36px; /* TODO: 24px? */ + line-height:32px; +} + +.main { + position:absolute; + top:70px; /* 68px + 2px margin */ + bottom:2px; + left:2px; + right:2px; + min-height:370px; /* 442px (from #slideshow) - 70px - 2px */ + + /* move this to #slideshow if we don't want the background image to move with slides */ + background-image:url('background.png'); +} + +.main.wide { + top:68px; + left:0px; + right:0px; + bottom:0px; + background-image:none; +} + +/* +A slide's body text goes inside here. +Inner space is 224px wide. +*/ +.main > .text { + position:absolute; + z-index:10; + top:25px; + left:36px; + width:248px; + bottom:35px; + min-height:329px; /* 369 - 25 - 15 (for bottom) */ + overflow:auto; +} + +.text > div { + margin-bottom:8px; + padding:6px 12px; + background-color:#F7F6F6; +} +.text > div:last-child { + margin-bottom:0px; +} + +.text > div > .subtitle { + padding-bottom:2px; + margin-bottom:5px; + font-size:inherit; + font-weight:normal; + text-decoration:none; + border-bottom:#333333 dotted 1px; +} + +.main.wide > .text { + top:25px; + width:350px; +} + +.main.wide > .text > div { + background:none; + font-size:16px; + line-height:1.2em; + color:#F7F6F6; + text-shadow:1px 1px 2px #333333; +} + +.featured ul { + display:table; +} +.featured li { + display:table-row; +} +.featured li > * { + padding-bottom:12px; +} +.featured li .icon { + display:table-cell; + width:24px; + height:auto; + padding-right:12px; +} +.featured li .caption { + display:table-cell; + vertical-align:middle; +} + +/* Expects screenshot to be 448x304 px */ +.main > .screenshot { + position:absolute; + top:25px; + right:-2px; /* offsets 2px margin of .main */ + + z-index:2; + + -webkit-box-shadow:#999999 0px 0px 5px; + -moz-box-shadow:#999999 0px 0px 5px; + box-shadow:#999999 0px 0px 5px; +} + +/* Expects screenshot to be 748x370 px */ +.main.wide > .background { + top:0px; + right:0px; + width:100%; + height:auto; + -webkit-box-shadow:none; + -moz-box-shadow:none; + box-shadow:none; + + z-index:0; +} + +.main.wide > .twitter-stream { + display:none; /* always revealed by javascript */ + + position:absolute; + width:334px; + height:304px; /* 304 - 22 (for .twitter-stream-input) */ + top:25px; + right:16px; + z-index:2; + + padding:0 6px; + + color:#eee; +} + +.twitter-stream .twitter-stream-header { + display:block; + padding:6px 2px 0px 2px; +} +.twitter-stream .twitter-stream-header h2 { + display:inline; + color:#fff; + + font-size:16px; +} +.twitter-stream .twitter-stream-header img { + opacity:0.6; + float:right; + + margin-left:22px; + + -webkit-transition:opacity 150ms linear; +} +.twitter-stream .twitter-stream-header:hover img { + opacity:0.8; +} + +.twitter-stream .twitter-stream-tweets { + overflow:hidden; + + height:100%; + + /* Warning: this is non-standard, only works in Webkit, could break at any time */ + -webkit-mask-image:-webkit-linear-gradient(top, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%); +} + +.twitter-stream .tweet { + padding:6px 2px; + border-bottom:1px dotted rgba(255, 255, 255, 0.2); +} +.tweet .tweet-avatar { + display:table-cell; + vertical-align:top; + padding:0 6px; +} + +.tweet .tweet-author-details { + display:inline-block; +} + +.tweet .tweet-author-name { + color:#fff; + font-weight:bold; +} +.tweet .tweet-author-id { + color:#bbb; + font-weight:normal; + margin-left:1em; + font-size:0.9em; +} + +.tweet .tweet-text { + display:block; +} + +.tweet .tweet-text a { + color:#bbb; +} + +.twitter-stream input.twitter-stream-input { + width:100%; + + -webkit-box-sizing:border-box; + padding:4px 2px 4px 22px; + + background-color:rgba(0, 0, 0, 0); + border:none; + outline:none; + color:#fff; + + background-image:url('twitter-bird-16.png'); + background-position:left center; + background-repeat:no-repeat; +} +.twitter-stream input.twitter-stream-input:focus { + background-color:rgba(0, 0, 0, 0.1); +} + +/* +This rule disables drag-and-drop for images. See bug #448703. +*/ +img { + -webkit-user-drag:none; +} + + + +/* RTL stuff */ +.rtl { + direction:rtl; +} + +.rtl .control-arrow#prev-slide { + background-image:url('arrow-next.png'); + left:719px; +} +.rtl .control-arrow#next-slide { + background-image:url('arrow-back.png'); + left:0px; /* 752px - 33px */ +} + +.rtl .main > .text { + left:auto; + right:36px; +} + +.rtl .main > .screenshot { + right:auto; + left:-2px; +} + +.rtl .featured li .icon { + padding-right:0px; + padding-left:12px; +} + +.rtl .main.wide > .twitter-stream { + right:auto; + left:16px; +} + +.rtl .twitter-stream .twitter-stream-header img { + float:left; + margin-left:0; + margin-right:22px; +} + +.rtl .twitter-stream input.twitter-stream-input { + padding:4px 22px 4px 2px; + background-position:right center; +} + +.l10n-string { + display:none; +} + === added file 'ubiquity-slideshow/slides/en_US/link/bullet-point.png' Binary files ubiquity-slideshow/slides/en_US/link/bullet-point.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/link/bullet-point.png 2013-03-12 11:49:17 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/link/twitter-bird-16.png' Binary files ubiquity-slideshow/slides/en_US/link/twitter-bird-16.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/link/twitter-bird-16.png 2013-03-12 11:49:17 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/link/twitter-logo-16.png' Binary files ubiquity-slideshow/slides/en_US/link/twitter-logo-16.png 1970-01-01 00:00:00 +0000 and ubiquity-slideshow/slides/en_US/link/twitter-logo-16.png 2013-03-12 11:49:17 +0000 differ === added file 'ubiquity-slideshow/slides/en_US/link/twitter.js' --- ubiquity-slideshow/slides/en_US/link/twitter.js 1970-01-01 00:00:00 +0000 +++ ubiquity-slideshow/slides/en_US/link/twitter.js 2013-03-12 11:49:17 +0000 @@ -0,0 +1,383 @@ +/* requires jquery.tweet.js */ + +/* TODO: Fix tweet slideDown animation to actually slide down instead of changing height */ + +function escapeHTML(text) { + return $('
').text(text).html(); +} + +function spliceText(text, indices) { + // Copyright 2010, Wade Simmons + // Licensed under the MIT license + var result = ""; + var last_i = 0; + var i = 0; + + for (i=0; i < text.length; ++i) { + var ind = indices[i]; + if (ind) { + var end = ind[0]; + var output = ind[1]; + if (i > last_i) { + result += escapeHTML(text.substring(last_i, i)); + } + result += output; + i = end - 1; + last_i = end; + } + } + + if (i > last_i) { + result += escapeHTML(text.substring(last_i, i)); + } + + return result; +} + +function Tweet(data) { + var tweet = this; + + var innerData = data; + if (data.retweeted_status) innerData = data.retweeted_status; + + var userID = innerData.from_user || innerData.user.id; + var userRealName = innerData.from_user_name || innerData.user.name; + var userScreenName = innerData.from_user || innerData.user.screen_name; + + var linkHashTag = function(hashTag) { + return 'https://twitter.com/search?q='+encodeURIComponent('#'+hashTag); + } + + var linkUser = function(userName) { + return 'https://twitter.com/'+encodeURIComponent(userName); + } + + var linkUserID = function(userID) { + return 'https://twitter.com/account/redirect_by_id?id='+encodeURIComponent(userID); + } + + var linkEntities = function(entities, text) { + entityIndices = {}; + + $.each(entities.media || [], function(i, entry) { + var link = ''; + entityIndices[entry.indices[0]] = [entry.indices[1], link]; + }); + + $.each(entities.urls || [], function(i, entry) { + var link = ''; + entityIndices[entry.indices[0]] = [entry.indices[1], link]; + }); + + $.each(entities.hashtags || [], function(i, entry) { + var link = ''; + entityIndices[entry.indices[0]] = [entry.indices[1], link]; + }); + + $.each(entities.user_mentions || [], function(i, entry) { + var link = ''; + entityIndices[entry.indices[0]] = [entry.indices[1], link]; + }); + + return spliceText(text, entityIndices); + } + var linkedText = linkEntities(innerData.entities, innerData.text); + + this.getHtml = function() { + var container = $('
'); + + var authorDetails = $(''); + authorDetails.attr('href', linkUserID(userID)); + + var authorName = $(''); + authorName.text(userRealName); + + var authorID = $(''); + authorID.text(userScreenName); + + authorDetails.append(authorName, authorID); + container.append(authorDetails); + + var text = $('
'); + text.html(linkedText); + container.append(text); + + return container; + } +} + +function TweetsList(container) { + var tweetsList = this; + + container = $(container); + var list = $('