# HG changeset patch # User veltr # Date 1360000457 -3600 # Node ID 1f574d93e1953a494fab69f4c0fbf3761e208f3a # Parent b1d083752b47e1c219f307a2b0683dc971aa22b0 First tests diff -r b1d083752b47 -r 1f574d93e195 .hgignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Mon Feb 04 18:54:17 2013 +0100 @@ -0,0 +1,3 @@ + +syntax: regexp +^\.project$ \ No newline at end of file diff -r b1d083752b47 -r 1f574d93e195 css/ipadsim.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/ipadsim.css Mon Feb 04 18:54:17 2013 +0100 @@ -0,0 +1,11 @@ +.iPad-simulator { + position: absolute; /* top: 50%; margin-top: -444px; */ + left: 50%; margin-left: -572px; + width: 1024px; height: 768px; border-radius: 30px; + padding: 0; border: 60px solid #333; +} + +.iPad-simulator:after { + content: ""; position: absolute; top: 364px; height: 40px; + width: 40px; left: 1034px; background: #666; border-radius: 20px; +} diff -r b1d083752b47 -r 1f574d93e195 css/reset.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/reset.css Mon Feb 04 18:54:17 2013 +0100 @@ -0,0 +1,77 @@ +/* http://meyerweb.com/eric/tools/css/reset/ + v2.0 | 20110126 + License: none (public domain) +*/ + +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, 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, +article, aside, canvas, details, embed, +figure, figcaption, footer, header, hgroup, +menu, nav, output, ruby, section, summary, +time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; +} +/* HTML5 display-role reset for older browsers */ +article, aside, details, figcaption, figure, +footer, header, hgroup, menu, nav, section { + display: block; +} +body { + line-height: 1; +} +ol, ul { + list-style: none; +} +blockquote, q { + quotes: none; +} +blockquote:before, blockquote:after, +q:before, q:after { + content: ''; + content: none; +} +table { + border-collapse: collapse; + border-spacing: 0; +} + +.clearfix:after { + content: "."; + display: block; + clear: both; + visibility: hidden; + line-height: 0; + height: 0; +} + +.clearfix { + display: inline-block; +} + +html[xmlns] .clearfix { + display: block; +} + +* html .clearfix { + height: 1%; +} +.clear{ + clear: both; +} + +input::-moz-focus-inner { + border: 0 none; + padding: 0; +} \ No newline at end of file diff -r b1d083752b47 -r 1f574d93e195 css/socialmedia.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/socialmedia.css Mon Feb 04 18:54:17 2013 +0100 @@ -0,0 +1,81 @@ +body { + font-family: "DIN 1451 Std Mittelschrift", Arial, sans-serif +} + +.start-head, .start-second-line { + clear: both; +} + +.title-block { + float: left; width: 258px; margin: 8px 0 0 8px; +} + +.start-head h1 { + font-size: 38px; line-height: 66px; +} + +.play-block { + width: 242px; height: 66px; +} + +.play-button { + float: left; margin: 8px; font-size: 38px; color: #fff; + background: #aaa; border-radius: 5px; padding: 0 8px 0 10px; + line-height: 50px; +} + +.duration { + float: right; font-size: 36px; margin: 0 8px; line-height: 66px; +} + +.explain-block { + width: 492px; height: 66px; +} + +.explain-block h3 { + text-align: center; font-size: 18px; line-height: 66px; +} + +.shadow-block { + float: left; background: #DDDDDD; box-shadow: 1px 1px 2px #000; margin: 8px 0 0 8px; +} + +.video-block { + float: left; background: #000000; width: 266px; height: 166px; margin-top: 8px; +} + +.description-block { + width: 242px; height: 166px; +} + +.description-block p { + margin: 8px; font-size: 12px; +} + +.topwords-block { + width: 492px; height: 166px; overflow: hidden; text-align: center; +} + +.topwords-block li, .topic-words li { + display: inline-block; background: #999; color: #fff; padding: 6px; margin: 6px 0 0 6px; font-size: 14px; border-radius: 4px; +} + +.start-bottom { + position: absolute; top: 248px; bottom: 0; overflow: hidden; +} + +.start-dataviz { + float: left; height: 100%; width: 266px; +} + +.topics-block { + float: left; width: 750px; +} + +.topic-column { + float: left; width: 250px; +} + +.topic { + width: 242px; text-align: center; +} diff -r b1d083752b47 -r 1f574d93e195 fakedata/data.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fakedata/data.json Mon Feb 04 18:54:17 2013 +0100 @@ -0,0 +1,2120 @@ +{ + "topics": [ + { + "index": 0, + "words": [ + { + "word": "garde des enfants", + "weight": 0.8484132512694337 + }, { + "word": "divorce", + "weight": 0.825767649291712 + }, { + "word": "célibat", + "weight": 0.6138011587997851 + }, { + "word": "famille", + "weight": 0.18115596803098843 + }, { + "word": "politique familiale", + "weight": 0.14291374680886493 + }, { + "word": "parent", + "weight": 0.011427571101469166 + }, { + "word": "droit de la famille", + "weight": 0.005141498794861978 + }, { + "word": "maternité", + "weight": 0.004466195167866208 + } + ] + }, { + "index": 1, + "words": [ + { + "word": "environnement", + "weight": 0.8557665945622677 + }, { + "word": "terre", + "weight": 0.4783179598514152 + }, { + "word": "barrage", + "weight": 0.16493307156749126 + }, { + "word": "cours d'eau", + "weight": 0.1093781590602296 + }, { + "word": "animal", + "weight": 0.10279993712228008 + }, { + "word": "mer", + "weight": 0.10017221647627089 + }, { + "word": "végétation", + "weight": 0.008127023350363242 + }, { + "word": "littoral", + "weight": 0.0030714460874147185 + } + ] + }, { + "index": 2, + "words": [ + { + "word": "droit de grève", + "weight": 0.8515794404296416 + }, { + "word": "patronat", + "weight": 0.633685009085165 + }, { + "word": "droit social", + "weight": 0.5072545065756294 + }, { + "word": "employeur", + "weight": 0.3093058799898949 + }, { + "word": "droits des salariés", + "weight": 0.13697998602779216 + }, { + "word": "syndicat", + "weight": 0.02567452570753582 + }, { + "word": "conflit social", + "weight": 0.0004475152378956419 + }, { + "word": "comité d'entreprise", + "weight": 0.0000022575513997615887 + } + ] + }, { + "index": 3, + "words": [ + { + "word": "répression", + "weight": 0.988992265190133 + }, { + "word": "crime", + "weight": 0.5024934606424404 + }, { + "word": "viol", + "weight": 0.4832728141905658 + }, { + "word": "délit", + "weight": 0.08033684986219053 + }, { + "word": "prise d'otage", + "weight": 0.03985705017325395 + }, { + "word": "trafic", + "weight": 0.0048001649076567406 + }, { + "word": "arrestation", + "weight": 0.00005706023182946803 + }, { + "word": "récidive", + "weight": 0.0000263461234519166 + } + ] + }, { + "index": 4, + "words": [ + { + "word": "relations Nord-Sud", + "weight": 0.8313268258173909 + }, { + "word": "convention de Lomé", + "weight": 0.289901109670575 + }, { + "word": "consulat", + "weight": 0.18441148355272247 + }, { + "word": "guérilla", + "weight": 0.12771402980110189 + }, { + "word": "guerre d'Algérie", + "weight": 0.0018669340851827792 + }, { + "word": "relations Est-Ouest", + "weight": 0.0004922392032877539 + }, { + "word": "déportation", + "weight": 0.00025684177279434734 + }, { + "word": "G7-G8", + "weight": 0.000003195536375493986 + } + ] + }, { + "index": 5, + "words": [ + { + "word": "prestation sociale", + "weight": 0.4930829211789966 + }, { + "word": "service social", + "weight": 0.42254505183148156 + }, { + "word": "allocation sociale", + "weight": 0.35938918570001716 + }, { + "word": "cotisation sociale", + "weight": 0.05380331505746307 + }, { + "word": "charges sociales", + "weight": 0.016808792298135436 + }, { + "word": "sécurité sociale", + "weight": 0.00971580447307411 + }, { + "word": "prévention", + "weight": 0.008694966841155272 + }, { + "word": "protection sociale", + "weight": 0.008417717416185596 + } + ] + }, { + "index": 6, + "words": [ + { + "word": "euro", + "weight": 0.34242052422094804 + }, { + "word": "inflation", + "weight": 0.307631738105831 + }, { + "word": "politique monétaire", + "weight": 0.28143770806590657 + }, { + "word": "système monétaire", + "weight": 0.24905595177724088 + }, { + "word": "deutschmark", + "weight": 0.024071806424535613 + }, { + "word": "déflation", + "weight": 0.013285037711661717 + }, { + "word": "marché monétaire", + "weight": 0.009614009875954519 + }, { + "word": "zone monétaire", + "weight": 0.0011698862839925844 + } + ] + }, { + "index": 7, + "words": [ + { + "word": "proposition de loi", + "weight": 0.10967014285607865 + }, { + "word": "projet de loi", + "weight": 0.04086242148457396 + }, { + "word": "pouvoir judiciaire", + "weight": 0.030635291842011136 + }, { + "word": "sénateur", + "weight": 0.029935927589307174 + }, { + "word": "réforme", + "weight": 0.01647157779067493 + }, { + "word": "député", + "weight": 0.0163732636624382 + }, { + "word": "indépendance", + "weight": 0.012632227292260365 + }, { + "word": "premier ministre", + "weight": 2.6346631766122867e-8 + } + ] + }, { + "index": 8, + "words": [ + { + "word": "hygiène", + "weight": 0.9532490109630041 + }, { + "word": "don d'organes", + "weight": 0.8687447726777557 + }, { + "word": "contraception", + "weight": 0.6550066929801825 + }, { + "word": "hôpital", + "weight": 0.31146326901523663 + }, { + "word": "famine", + "weight": 0.08810111328503446 + }, { + "word": "clinique", + "weight": 0.08760640719338537 + }, { + "word": "épidémie", + "weight": 0.04199998443778273 + }, { + "word": "alimentation", + "weight": 0.000020633923312634293 + } + ] + }, { + "index": 9, + "words": [ + { + "word": "parti conservateur", + "weight": 0.7674381519393274 + }, { + "word": "parti républicain", + "weight": 0.6826259484906163 + }, { + "word": "parti politique", + "weight": 0.5260975052923028 + }, { + "word": "droite", + "weight": 0.16825686816384752 + }, { + "word": "alliance politique", + "weight": 0.1325354708842263 + }, { + "word": "parti radical", + "weight": 0.072537934351094 + }, { + "word": "parti écologiste", + "weight": 0.047653438539491395 + }, { + "word": "parti travailliste", + "weight": 0.00001646576254906526 + } + ] + }, { + "index": 10, + "words": [ + { + "word": "langue maternelle", + "weight": 0.9797476163505623 + }, { + "word": "minorité culturelle", + "weight": 0.6661810653265666 + }, { + "word": "culture de masse", + "weight": 0.3802333181594383 + }, { + "word": "spectacle", + "weight": 0.06873917618538387 + }, { + "word": "langue", + "weight": 0.05618668241007589 + }, { + "word": "lecture", + "weight": 0.0487293343552723 + }, { + "word": "patrimoine culturel", + "weight": 0.033353796378880744 + }, { + "word": "langue régionale", + "weight": 0.020521949563209647 + } + ] + }, { + "index": 11, + "words": [ + { + "word": "suicide", + "weight": 0.9185802815840759 + }, { + "word": "problèmes sociaux", + "weight": 0.15674183494830554 + }, { + "word": "dopage", + "weight": 0.15265765557908384 + }, { + "word": "pédophilie", + "weight": 0.11010238062762537 + }, { + "word": "corruption", + "weight": 0.10056124218827805 + }, { + "word": "délinquance", + "weight": 0.0288673302571289 + }, { + "word": "harcèlement", + "weight": 0.005431759559056631 + }, { + "word": "criminalité", + "weight": 0.0007725579795684625 + } + ] + }, { + "index": 12, + "words": [ + { + "word": "saisie", + "weight": 0.6964770288830531 + }, { + "word": "procès", + "weight": 0.586017612856396 + }, { + "word": "sanction", + "weight": 0.42080842020745024 + }, { + "word": "juridiction suprême", + "weight": 0.10066070745189502 + }, { + "word": "prescription", + "weight": 0.02729212611696995 + }, { + "word": "condamnation", + "weight": 0.026270928384595084 + }, { + "word": "recours", + "weight": 0.021325327678864726 + }, { + "word": "système judiciaire", + "weight": 0.00022240589019942243 + } + ] + }, { + "index": 13, + "words": [ + { + "word": "délocalisation", + "weight": 0.6590510429196144 + }, { + "word": "industrie spatiale", + "weight": 0.5823949856213716 + }, { + "word": "industrie", + "weight": 0.4191366753080666 + }, { + "word": "industrie nucléaire", + "weight": 0.32443765785776973 + }, { + "word": "brevet", + "weight": 0.14160049755509177 + }, { + "word": "industrie du papier", + "weight": 0.01729288924637548 + }, { + "word": "industrialisation", + "weight": 0.0008031233769565543 + }, { + "word": "bien d'équipement", + "weight": 0.000734971470400781 + } + ] + }, { + "index": 14, + "words": [ + { + "word": "population rurale", + "weight": 0.7315948268376732 + }, { + "word": "jeune", + "weight": 0.44624320172111215 + }, { + "word": "métis", + "weight": 0.22493292378189592 + }, { + "word": "minorité", + "weight": 0.13021057909830933 + }, { + "word": "Noirs", + "weight": 0.12190962569830036 + }, { + "word": "Indiens", + "weight": 0.023279708014803908 + }, { + "word": "Kurdes", + "weight": 0.0004995708378664594 + }, { + "word": "population urbaine", + "weight": 0.00006070546903335667 + } + ] + } + ], + "segments": [ + { + "start": 0, + "duration": 96, + "tweet_count": 147, + "topics": [ + { + "topic": 4, + "weight": 0.4692424232079228 + }, { + "topic": 12, + "weight": 0.35420283066408437 + }, { + "topic": 8, + "weight": 0.17655474612799282 + } + ], + "end": 96 + }, { + "start": 96, + "duration": 104, + "tweet_count": 115, + "topics": [ + { + "topic": 1, + "weight": 0.4047722351241293 + }, { + "topic": 4, + "weight": 0.33905758589345153 + }, { + "topic": 12, + "weight": 0.25617017898241917 + } + ], + "end": 200 + }, { + "start": 200, + "duration": 115, + "tweet_count": 173, + "topics": [ + { + "topic": 1, + "weight": 0.6607016752529963 + }, { + "topic": 9, + "weight": 0.33929832474700367 + } + ], + "end": 315 + }, { + "start": 315, + "duration": 103, + "tweet_count": 151, + "topics": [ + { + "topic": 7, + "weight": 0.5910637647883011 + }, { + "topic": 1, + "weight": 0.2327911349168087 + }, { + "topic": 9, + "weight": 0.17614510029489014 + } + ], + "end": 418 + }, { + "start": 418, + "duration": 71, + "tweet_count": 132, + "topics": [ + { + "topic": 7, + "weight": 0.8159239779836441 + }, { + "topic": 9, + "weight": 0.1840760220163558 + } + ], + "end": 489 + }, { + "start": 489, + "duration": 90, + "tweet_count": 145, + "topics": [ + { + "topic": 7, + "weight": 0.8499800329733276 + }, { + "topic": 3, + "weight": 0.15001996702667245 + } + ], + "end": 579 + }, { + "start": 579, + "duration": 65, + "tweet_count": 128, + "topics": [ + { + "topic": 7, + "weight": 0.5993614456726015 + }, { + "topic": 1, + "weight": 0.28566555891997547 + }, { + "topic": 3, + "weight": 0.11497299540742299 + } + ], + "end": 644 + }, { + "start": 644, + "duration": 63, + "tweet_count": 88, + "topics": [ + { + "topic": 12, + "weight": 0.6072942683535173 + }, { + "topic": 7, + "weight": 0.3927057316464827 + } + ], + "end": 707 + }, { + "start": 707, + "duration": 92, + "tweet_count": 112, + "topics": [ + { + "topic": 12, + "weight": 0.7245843391975646 + }, { + "topic": 1, + "weight": 0.27541566080243546 + } + ], + "end": 799 + }, { + "start": 799, + "duration": 75, + "tweet_count": 126, + "topics": [ + { + "topic": 4, + "weight": 0.47371715022138794 + }, { + "topic": 12, + "weight": 0.3999529178301338 + }, { + "topic": 1, + "weight": 0.12632993194847816 + } + ], + "end": 874 + }, { + "start": 874, + "duration": 81, + "tweet_count": 130, + "topics": [ + { + "topic": 4, + "weight": 0.7085472282755256 + }, { + "topic": 14, + "weight": 0.29145277172447437 + } + ], + "end": 955 + }, { + "start": 955, + "duration": 63, + "tweet_count": 98, + "topics": [ + { + "topic": 9, + "weight": 0.5321882467366268 + }, { + "topic": 4, + "weight": 0.46781175326337315 + } + ], + "end": 1018 + }, { + "start": 1018, + "duration": 83, + "tweet_count": 113, + "topics": [ + { + "topic": 12, + "weight": 0.5404810869424284 + }, { + "topic": 9, + "weight": 0.4595189130575717 + } + ], + "end": 1101 + }, { + "start": 1101, + "duration": 119, + "tweet_count": 198, + "topics": [ + { + "topic": 12, + "weight": 0.6994698386754955 + }, { + "topic": 11, + "weight": 0.3005301613245045 + } + ], + "end": 1220 + }, { + "start": 1220, + "duration": 119, + "tweet_count": 120, + "topics": [ + { + "topic": 12, + "weight": 0.5110119899838041 + }, { + "topic": 11, + "weight": 0.34337639947917853 + }, { + "topic": 9, + "weight": 0.14561161053701732 + } + ], + "end": 1339 + }, { + "start": 1339, + "duration": 90, + "tweet_count": 103, + "topics": [ + { + "topic": 0, + "weight": 0.7473880287914934 + }, { + "topic": 12, + "weight": 0.25261197120850665 + } + ], + "end": 1429 + }, { + "start": 1429, + "duration": 78, + "tweet_count": 91, + "topics": [ + { + "topic": 1, + "weight": 0.4095110914952031 + }, { + "topic": 12, + "weight": 0.3122922410335654 + }, { + "topic": 0, + "weight": 0.27819666747123156 + } + ], + "end": 1507 + }, { + "start": 1507, + "duration": 118, + "tweet_count": 165, + "topics": [ + { + "topic": 14, + "weight": 0.4492324302260617 + }, { + "topic": 12, + "weight": 0.3686397301473311 + }, { + "topic": 1, + "weight": 0.18212783962660714 + } + ], + "end": 1625 + }, { + "start": 1625, + "duration": 104, + "tweet_count": 132, + "topics": [ + { + "topic": 14, + "weight": 0.5155783054608261 + }, { + "topic": 7, + "weight": 0.484421694539174 + } + ], + "end": 1729 + }, { + "start": 1729, + "duration": 116, + "tweet_count": 167, + "topics": [ + { + "topic": 11, + "weight": 0.3421186690458443 + }, { + "topic": 7, + "weight": 0.3376749647830288 + }, { + "topic": 14, + "weight": 0.32020636617112697 + } + ], + "end": 1845 + }, { + "start": 1845, + "duration": 68, + "tweet_count": 116, + "topics": [ + { + "topic": 11, + "weight": 0.5721113007733366 + }, { + "topic": 1, + "weight": 0.42788869922666345 + } + ], + "end": 1913 + }, { + "start": 1913, + "duration": 82, + "tweet_count": 139, + "topics": [ + { + "topic": 11, + "weight": 0.4116403638872372 + }, { + "topic": 13, + "weight": 0.3676857336254579 + }, { + "topic": 1, + "weight": 0.22067390248730484 + } + ], + "end": 1995 + }, { + "start": 1995, + "duration": 81, + "tweet_count": 147, + "topics": [ + { + "topic": 11, + "weight": 0.6816324699180916 + }, { + "topic": 10, + "weight": 0.31836753008190843 + } + ], + "end": 2076 + }, { + "start": 2076, + "duration": 101, + "tweet_count": 176, + "topics": [ + { + "topic": 11, + "weight": 0.40173338784285917 + }, { + "topic": 6, + "weight": 0.3883474953234237 + }, { + "topic": 10, + "weight": 0.20991911683371706 + } + ], + "end": 2177 + }, { + "start": 2177, + "duration": 63, + "tweet_count": 73, + "topics": [ + { + "topic": 2, + "weight": 0.498848096099255 + }, { + "topic": 11, + "weight": 0.29022422576783874 + }, { + "topic": 6, + "weight": 0.2109276781329062 + } + ], + "end": 2240 + }, { + "start": 2240, + "duration": 79, + "tweet_count": 126, + "topics": [ + { + "topic": 2, + "weight": 0.5924960752197065 + }, { + "topic": 7, + "weight": 0.4075039247802934 + } + ], + "end": 2319 + }, { + "start": 2319, + "duration": 69, + "tweet_count": 69, + "topics": [ + { + "topic": 2, + "weight": 0.6091661944741846 + }, { + "topic": 7, + "weight": 0.38343730723969216 + }, { + "topic": 1, + "weight": 0.007396498286123121 + } + ], + "end": 2388 + }, { + "start": 2388, + "duration": 88, + "tweet_count": 115, + "topics": [ + { + "topic": 2, + "weight": 0.9368295989691314 + }, { + "topic": 12, + "weight": 0.06317040103086856 + } + ], + "end": 2476 + }, { + "start": 2476, + "duration": 78, + "tweet_count": 106, + "topics": [ + { + "topic": 2, + "weight": 0.9979380046080125 + }, { + "topic": 5, + "weight": 0.0020619953919874994 + } + ], + "end": 2554 + }, { + "start": 2554, + "duration": 73, + "tweet_count": 89, + "topics": [ + { + "topic": 9, + "weight": 0.40157034535315733 + }, { + "topic": 2, + "weight": 0.36347648266675675 + }, { + "topic": 5, + "weight": 0.23495317198008597 + } + ], + "end": 2627 + }, { + "start": 2627, + "duration": 102, + "tweet_count": 188, + "topics": [ + { + "topic": 7, + "weight": 0.6079439082321082 + }, { + "topic": 2, + "weight": 0.1984637373609825 + }, { + "topic": 9, + "weight": 0.1935923544069094 + } + ], + "end": 2729 + }, { + "start": 2729, + "duration": 74, + "tweet_count": 133, + "topics": [ + { + "topic": 7, + "weight": 0.4867762893009746 + }, { + "topic": 2, + "weight": 0.4218162093935356 + }, { + "topic": 13, + "weight": 0.09140750130548982 + } + ], + "end": 2803 + }, { + "start": 2803, + "duration": 72, + "tweet_count": 80, + "topics": [ + { + "topic": 4, + "weight": 0.5320748135944813 + }, { + "topic": 7, + "weight": 0.46792518640551867 + } + ], + "end": 2875 + }, { + "start": 2875, + "duration": 116, + "tweet_count": 231, + "topics": [ + { + "topic": 4, + "weight": 0.5477892595664181 + }, { + "topic": 7, + "weight": 0.24049758740646857 + }, { + "topic": 6, + "weight": 0.21171315302711347 + } + ], + "end": 2991 + }, { + "start": 2991, + "duration": 100, + "tweet_count": 110, + "topics": [ + { + "topic": 4, + "weight": 0.8746981371267037 + }, { + "topic": 12, + "weight": 0.1253018628732962 + } + ], + "end": 3091 + }, { + "start": 3091, + "duration": 77, + "tweet_count": 140, + "topics": [ + { + "topic": 4, + "weight": 0.5433086770609828 + }, { + "topic": 0, + "weight": 0.4095139871266851 + }, { + "topic": 12, + "weight": 0.04717733581233207 + } + ], + "end": 3168 + }, { + "start": 3168, + "duration": 107, + "tweet_count": 113, + "topics": [ + { + "topic": 0, + "weight": 0.3984598800985333 + }, { + "topic": 4, + "weight": 0.308389247741106 + }, { + "topic": 8, + "weight": 0.2931508721603608 + } + ], + "end": 3275 + }, { + "start": 3275, + "duration": 72, + "tweet_count": 81, + "topics": [ + { + "topic": 2, + "weight": 0.38005516477034196 + }, { + "topic": 4, + "weight": 0.31415109919157863 + }, { + "topic": 0, + "weight": 0.30579373603807947 + } + ], + "end": 3347 + }, { + "start": 3347, + "duration": 70, + "tweet_count": 82, + "topics": [ + { + "topic": 2, + "weight": 0.6530581707588508 + }, { + "topic": 4, + "weight": 0.25270051440816105 + }, { + "topic": 5, + "weight": 0.09424131483298824 + } + ], + "end": 3417 + }, { + "start": 3417, + "duration": 68, + "tweet_count": 131, + "topics": [ + { + "topic": 2, + "weight": 0.6326784230428817 + }, { + "topic": 1, + "weight": 0.3673215769571183 + } + ], + "end": 3485 + }, { + "start": 3485, + "duration": 93, + "tweet_count": 152, + "topics": [ + { + "topic": 2, + "weight": 0.6856306375991221 + }, { + "topic": 5, + "weight": 0.3143693624008779 + } + ], + "end": 3578 + }, { + "start": 3578, + "duration": 60, + "tweet_count": 76, + "topics": [ + { + "topic": 2, + "weight": 0.41257905171531645 + }, { + "topic": 5, + "weight": 0.3472461914088191 + }, { + "topic": 8, + "weight": 0.24017475687586448 + } + ], + "end": 3638 + }, { + "start": 3638, + "duration": 96, + "tweet_count": 140, + "topics": [ + { + "topic": 6, + "weight": 0.6855355174296203 + }, { + "topic": 2, + "weight": 0.3144644825703796 + } + ], + "end": 3734 + }, { + "start": 3734, + "duration": 85, + "tweet_count": 86, + "topics": [ + { + "topic": 11, + "weight": 0.5585242457472721 + }, { + "topic": 6, + "weight": 0.44147575425272795 + } + ], + "end": 3819 + }, { + "start": 3819, + "duration": 114, + "tweet_count": 184, + "topics": [ + { + "topic": 5, + "weight": 0.3808889508195891 + }, { + "topic": 11, + "weight": 0.348026901691233 + }, { + "topic": 6, + "weight": 0.27108414748917786 + } + ], + "end": 3933 + }, { + "start": 3933, + "duration": 92, + "tweet_count": 133, + "topics": [ + { + "topic": 14, + "weight": 0.4700071620127015 + }, { + "topic": 11, + "weight": 0.3859398663744578 + }, { + "topic": 5, + "weight": 0.14405297161284072 + } + ], + "end": 4025 + }, { + "start": 4025, + "duration": 81, + "tweet_count": 127, + "topics": [ + { + "topic": 13, + "weight": 0.6658715491968875 + }, { + "topic": 14, + "weight": 0.33412845080311254 + } + ], + "end": 4106 + }, { + "start": 4106, + "duration": 88, + "tweet_count": 118, + "topics": [ + { + "topic": 13, + "weight": 0.5052848311008329 + }, { + "topic": 7, + "weight": 0.4947151688991672 + } + ], + "end": 4194 + }, { + "start": 4194, + "duration": 73, + "tweet_count": 103, + "topics": [ + { + "topic": 4, + "weight": 0.588000071502668 + }, { + "topic": 13, + "weight": 0.41199992849733197 + } + ], + "end": 4267 + }, { + "start": 4267, + "duration": 78, + "tweet_count": 104, + "topics": [ + { + "topic": 13, + "weight": 0.5482033398417668 + }, { + "topic": 4, + "weight": 0.3214620358709337 + }, { + "topic": 1, + "weight": 0.1303346242872995 + } + ], + "end": 4345 + }, { + "start": 4345, + "duration": 77, + "tweet_count": 77, + "topics": [ + { + "topic": 13, + "weight": 0.5626262828156425 + }, { + "topic": 12, + "weight": 0.2270014709608258 + }, { + "topic": 4, + "weight": 0.2103722462235315 + } + ], + "end": 4422 + }, { + "start": 4422, + "duration": 88, + "tweet_count": 153, + "topics": [ + { + "topic": 10, + "weight": 0.4990041670538605 + }, { + "topic": 13, + "weight": 0.38031805952523845 + }, { + "topic": 12, + "weight": 0.12067777342090112 + } + ], + "end": 4510 + }, { + "start": 4510, + "duration": 89, + "tweet_count": 173, + "topics": [ + { + "topic": 10, + "weight": 0.5534584690106242 + }, { + "topic": 7, + "weight": 0.4465415309893757 + } + ], + "end": 4599 + }, { + "start": 4599, + "duration": 71, + "tweet_count": 138, + "topics": [ + { + "topic": 4, + "weight": 0.39441419146582113 + }, { + "topic": 7, + "weight": 0.30656787508688077 + }, { + "topic": 10, + "weight": 0.2990179334472981 + } + ], + "end": 4670 + }, { + "start": 4670, + "duration": 84, + "tweet_count": 167, + "topics": [ + { + "topic": 4, + "weight": 0.8131809904125539 + }, { + "topic": 5, + "weight": 0.1868190095874461 + } + ], + "end": 4754 + }, { + "start": 4754, + "duration": 91, + "tweet_count": 141, + "topics": [ + { + "topic": 14, + "weight": 0.4491314608677595 + }, { + "topic": 5, + "weight": 0.28977687459548485 + }, { + "topic": 4, + "weight": 0.2610916645367557 + } + ], + "end": 4845 + }, { + "start": 4845, + "duration": 110, + "tweet_count": 201, + "topics": [ + { + "topic": 1, + "weight": 0.4315748688345844 + }, { + "topic": 5, + "weight": 0.3064829776477294 + }, { + "topic": 14, + "weight": 0.2619421535176861 + } + ], + "end": 4955 + }, { + "start": 4955, + "duration": 86, + "tweet_count": 112, + "topics": [ + { + "topic": 1, + "weight": 0.5333819269222287 + }, { + "topic": 5, + "weight": 0.3348212068702902 + }, { + "topic": 3, + "weight": 0.13179686620748085 + } + ], + "end": 5041 + }, { + "start": 5041, + "duration": 119, + "tweet_count": 226, + "topics": [ + { + "topic": 1, + "weight": 0.582507483938676 + }, { + "topic": 10, + "weight": 0.417492516061324 + } + ], + "end": 5160 + }, { + "start": 5160, + "duration": 112, + "tweet_count": 125, + "topics": [ + { + "topic": 1, + "weight": 0.8787228296084472 + }, { + "topic": 2, + "weight": 0.12127717039155282 + } + ], + "end": 5272 + }, { + "start": 5272, + "duration": 65, + "tweet_count": 80, + "topics": [ + { + "topic": 1, + "weight": 0.5803385795928864 + }, { + "topic": 0, + "weight": 0.3088564352942344 + }, { + "topic": 2, + "weight": 0.1108049851128791 + } + ], + "end": 5337 + }, { + "start": 5337, + "duration": 67, + "tweet_count": 122, + "topics": [ + { + "topic": 1, + "weight": 0.866649947960875 + }, { + "topic": 10, + "weight": 0.13335005203912492 + } + ], + "end": 5404 + }, { + "start": 5404, + "duration": 61, + "tweet_count": 91, + "topics": [ + { + "topic": 1, + "weight": 0.6197207881136626 + }, { + "topic": 7, + "weight": 0.325058345716748 + }, { + "topic": 10, + "weight": 0.05522086616958948 + } + ], + "end": 5465 + }, { + "start": 5465, + "duration": 81, + "tweet_count": 84, + "topics": [ + { + "topic": 10, + "weight": 0.6938736834805916 + }, { + "topic": 1, + "weight": 0.30612631651940836 + } + ], + "end": 5546 + }, { + "start": 5546, + "duration": 109, + "tweet_count": 142, + "topics": [ + { + "topic": 10, + "weight": 0.5923053097677939 + }, { + "topic": 4, + "weight": 0.22678847515276007 + }, { + "topic": 1, + "weight": 0.180906215079446 + } + ], + "end": 5655 + }, { + "start": 5655, + "duration": 86, + "tweet_count": 122, + "topics": [ + { + "topic": 10, + "weight": 0.5925092219509549 + }, { + "topic": 4, + "weight": 0.37354965041565097 + }, { + "topic": 2, + "weight": 0.0339411276333941 + } + ], + "end": 5741 + }, { + "start": 5741, + "duration": 72, + "tweet_count": 79, + "topics": [ + { + "topic": 10, + "weight": 0.7381120944290404 + }, { + "topic": 5, + "weight": 0.2618879055709596 + } + ], + "end": 5813 + }, { + "start": 5813, + "duration": 90, + "tweet_count": 150, + "topics": [ + { + "topic": 14, + "weight": 0.36050927908932656 + }, { + "topic": 10, + "weight": 0.35753419144318105 + }, { + "topic": 5, + "weight": 0.28195652946749233 + } + ], + "end": 5903 + }, { + "start": 5903, + "duration": 111, + "tweet_count": 127, + "topics": [ + { + "topic": 5, + "weight": 0.5996024672095276 + }, { + "topic": 14, + "weight": 0.21770772185828743 + }, { + "topic": 10, + "weight": 0.182689810932185 + } + ], + "end": 6014 + }, { + "start": 6014, + "duration": 65, + "tweet_count": 127, + "topics": [ + { + "topic": 5, + "weight": 0.9710766997639358 + }, { + "topic": 8, + "weight": 0.0289233002360642 + } + ], + "end": 6079 + }, { + "start": 6079, + "duration": 75, + "tweet_count": 105, + "topics": [ + { + "topic": 5, + "weight": 0.5613731472573106 + }, { + "topic": 8, + "weight": 0.2759190950449355 + }, { + "topic": 9, + "weight": 0.16270775769775378 + } + ], + "end": 6154 + }, { + "start": 6154, + "duration": 119, + "tweet_count": 233, + "topics": [ + { + "topic": 5, + "weight": 0.5308609870956844 + }, { + "topic": 6, + "weight": 0.46913901290431553 + } + ], + "end": 6273 + }, { + "start": 6273, + "duration": 107, + "tweet_count": 151, + "topics": [ + { + "topic": 9, + "weight": 0.4707123436282816 + }, { + "topic": 6, + "weight": 0.30260491922939503 + }, { + "topic": 5, + "weight": 0.22668273714232334 + } + ], + "end": 6380 + }, { + "start": 6380, + "duration": 63, + "tweet_count": 78, + "topics": [ + { + "topic": 3, + "weight": 0.577927949262428 + }, { + "topic": 9, + "weight": 0.42207205073757204 + } + ], + "end": 6443 + }, { + "start": 6443, + "duration": 95, + "tweet_count": 121, + "topics": [ + { + "topic": 11, + "weight": 0.6325754854682878 + }, { + "topic": 3, + "weight": 0.3674245145317121 + } + ], + "end": 6538 + }, { + "start": 6538, + "duration": 67, + "tweet_count": 114, + "topics": [ + { + "topic": 4, + "weight": 0.41667739129819803 + }, { + "topic": 3, + "weight": 0.31909992987215513 + }, { + "topic": 11, + "weight": 0.26422267882964684 + } + ], + "end": 6605 + }, { + "start": 6605, + "duration": 70, + "tweet_count": 73, + "topics": [ + { + "topic": 4, + "weight": 0.5782955434872685 + }, { + "topic": 6, + "weight": 0.21390963395119178 + }, { + "topic": 3, + "weight": 0.20779482256153958 + } + ], + "end": 6675 + }, { + "start": 6675, + "duration": 92, + "tweet_count": 115, + "topics": [ + { + "topic": 6, + "weight": 0.39395842861304153 + }, { + "topic": 8, + "weight": 0.33998496692818064 + }, { + "topic": 4, + "weight": 0.26605660445877777 + } + ], + "end": 6767 + }, { + "start": 6767, + "duration": 107, + "tweet_count": 147, + "topics": [ + { + "topic": 8, + "weight": 0.46572334864637294 + }, { + "topic": 6, + "weight": 0.35469765219624566 + }, { + "topic": 7, + "weight": 0.17957899915738135 + } + ], + "end": 6874 + }, { + "start": 6874, + "duration": 61, + "tweet_count": 90, + "topics": [ + { + "topic": 14, + "weight": 0.5507739030924493 + }, { + "topic": 8, + "weight": 0.4492260969075507 + } + ], + "end": 6935 + }, { + "start": 6935, + "duration": 84, + "tweet_count": 88, + "topics": [ + { + "topic": 0, + "weight": 0.5626126571615059 + }, { + "topic": 14, + "weight": 0.437387342838494 + } + ], + "end": 7019 + }, { + "start": 7019, + "duration": 105, + "tweet_count": 118, + "topics": [ + { + "topic": 8, + "weight": 0.6150768799828098 + }, { + "topic": 0, + "weight": 0.38492312001719026 + } + ], + "end": 7124 + }, { + "start": 7124, + "duration": 86, + "tweet_count": 138, + "topics": [ + { + "topic": 13, + "weight": 0.5218007923046069 + }, { + "topic": 8, + "weight": 0.4781992076953931 + } + ], + "end": 7210 + }, { + "start": 7210, + "duration": 89, + "tweet_count": 123, + "topics": [ + { + "topic": 8, + "weight": 0.6340098956772018 + }, { + "topic": 13, + "weight": 0.36599010432279827 + } + ], + "end": 7299 + }, { + "start": 7299, + "duration": 67, + "tweet_count": 114, + "topics": [ + { + "topic": 1, + "weight": 0.501635394600644 + }, { + "topic": 8, + "weight": 0.498364605399356 + } + ], + "end": 7366 + }, { + "start": 7366, + "duration": 104, + "tweet_count": 108, + "topics": [ + { + "topic": 7, + "weight": 0.7455530683709843 + }, { + "topic": 1, + "weight": 0.25444693162901566 + } + ], + "end": 7470 + }, { + "start": 7470, + "duration": 118, + "tweet_count": 232, + "topics": [ + { + "topic": 7, + "weight": 0.47448963321542986 + }, { + "topic": 0, + "weight": 0.3062577072955796 + }, { + "topic": 1, + "weight": 0.21925265948899053 + } + ], + "end": 7588 + }, { + "start": 7588, + "duration": 113, + "tweet_count": 119, + "topics": [ + { + "topic": 7, + "weight": 0.7169481026380462 + }, { + "topic": 5, + "weight": 0.2830518973619538 + } + ], + "end": 7701 + }, { + "start": 7701, + "duration": 91, + "tweet_count": 169, + "topics": [ + { + "topic": 5, + "weight": 0.4157199498354985 + }, { + "topic": 4, + "weight": 0.3109318787595896 + }, { + "topic": 7, + "weight": 0.273348171404912 + } + ], + "end": 7792 + }, { + "start": 7792, + "duration": 119, + "tweet_count": 177, + "topics": [ + { + "topic": 11, + "weight": 0.7250999053309896 + }, { + "topic": 5, + "weight": 0.27490009466901044 + } + ], + "end": 7911 + }, { + "start": 7911, + "duration": 95, + "tweet_count": 137, + "topics": [ + { + "topic": 9, + "weight": 0.3532727063319003 + }, { + "topic": 11, + "weight": 0.3339578690496432 + }, { + "topic": 5, + "weight": 0.3127694246184565 + } + ], + "end": 8006 + }, { + "start": 8006, + "duration": 93, + "tweet_count": 118, + "topics": [ + { + "topic": 9, + "weight": 0.6190102997152629 + }, { + "topic": 4, + "weight": 0.38098970028473705 + } + ], + "end": 8099 + }, { + "start": 8099, + "duration": 65, + "tweet_count": 118, + "topics": [ + { + "topic": 8, + "weight": 0.6705935902305199 + }, { + "topic": 9, + "weight": 0.32940640976948016 + } + ], + "end": 8164 + }, { + "start": 8164, + "duration": 77, + "tweet_count": 142, + "topics": [ + { + "topic": 8, + "weight": 0.4055415810262347 + }, { + "topic": 9, + "weight": 0.30341134920739343 + }, { + "topic": 12, + "weight": 0.29104706976637185 + } + ], + "end": 8241 + }, { + "start": 8241, + "duration": 104, + "tweet_count": 155, + "topics": [ + { + "topic": 2, + "weight": 0.6024967051522868 + }, { + "topic": 8, + "weight": 0.39750329484771324 + } + ], + "end": 8345 + }, { + "start": 8345, + "duration": 91, + "tweet_count": 112, + "topics": [ + { + "topic": 9, + "weight": 0.5274877892049645 + }, { + "topic": 2, + "weight": 0.47251221079503536 + } + ], + "end": 8436 + }, { + "start": 8436, + "duration": 115, + "tweet_count": 119, + "topics": [ + { + "topic": 3, + "weight": 0.3969629277162302 + }, { + "topic": 2, + "weight": 0.3068830998076491 + }, { + "topic": 9, + "weight": 0.29615397247612063 + } + ], + "end": 8551 + }, { + "start": 8551, + "duration": 91, + "tweet_count": 137, + "topics": [ + { + "topic": 2, + "weight": 0.4191095269865039 + }, { + "topic": 6, + "weight": 0.3200342517517054 + }, { + "topic": 3, + "weight": 0.2608562212617907 + } + ], + "end": 8642 + }, { + "start": 8642, + "duration": 114, + "tweet_count": 224, + "topics": [ + { + "topic": 10, + "weight": 0.45111352567015356 + }, { + "topic": 6, + "weight": 0.3755969429166312 + }, { + "topic": 2, + "weight": 0.17328953141321518 + } + ], + "end": 8756 + }, { + "start": 8756, + "duration": 104, + "tweet_count": 182, + "topics": [ + { + "topic": 0, + "weight": 0.4476284194925353 + }, { + "topic": 10, + "weight": 0.3049367719592031 + }, { + "topic": 6, + "weight": 0.2474348085482615 + } + ], + "end": 8860 + } + ], + "top_words": [ + { + "word": "répression", + "weight": 0.988992265190133 + }, { + "word": "langue maternelle", + "weight": 0.9797476163505623 + }, { + "word": "hygiène", + "weight": 0.9532490109630041 + }, { + "word": "suicide", + "weight": 0.9185802815840759 + }, { + "word": "don d'organes", + "weight": 0.8687447726777557 + }, { + "word": "environnement", + "weight": 0.8557665945622677 + }, { + "word": "droit de grève", + "weight": 0.8515794404296416 + }, { + "word": "garde des enfants", + "weight": 0.8484132512694337 + }, { + "word": "relations Nord-Sud", + "weight": 0.8313268258173909 + }, { + "word": "divorce", + "weight": 0.825767649291712 + }, { + "word": "parti conservateur", + "weight": 0.7674381519393274 + }, { + "word": "population rurale", + "weight": 0.7315948268376732 + }, { + "word": "saisie", + "weight": 0.6964770288830531 + }, { + "word": "parti républicain", + "weight": 0.6826259484906163 + }, { + "word": "minorité culturelle", + "weight": 0.6661810653265666 + }, { + "word": "délocalisation", + "weight": 0.6590510429196144 + }, { + "word": "contraception", + "weight": 0.6550066929801825 + }, { + "word": "patronat", + "weight": 0.633685009085165 + }, { + "word": "célibat", + "weight": 0.6138011587997851 + }, { + "word": "procès", + "weight": 0.586017612856396 + }, { + "word": "industrie spatiale", + "weight": 0.5823949856213716 + }, { + "word": "parti politique", + "weight": 0.5260975052923028 + }, { + "word": "droit social", + "weight": 0.5072545065756294 + }, { + "word": "crime", + "weight": 0.5024934606424404 + }, { + "word": "prestation sociale", + "weight": 0.4930829211789966 + }, { + "word": "viol", + "weight": 0.4832728141905658 + }, { + "word": "terre", + "weight": 0.4783179598514152 + }, { + "word": "jeune", + "weight": 0.44624320172111215 + }, { + "word": "service social", + "weight": 0.42254505183148156 + }, { + "word": "sanction", + "weight": 0.42080842020745024 + }, { + "word": "industrie", + "weight": 0.4191366753080666 + }, { + "word": "culture de masse", + "weight": 0.3802333181594383 + }, { + "word": "allocation sociale", + "weight": 0.35938918570001716 + }, { + "word": "euro", + "weight": 0.34242052422094804 + }, { + "word": "industrie nucléaire", + "weight": 0.32443765785776973 + }, { + "word": "hôpital", + "weight": 0.31146326901523663 + }, { + "word": "employeur", + "weight": 0.3093058799898949 + }, { + "word": "inflation", + "weight": 0.307631738105831 + }, { + "word": "convention de Lomé", + "weight": 0.289901109670575 + }, { + "word": "politique monétaire", + "weight": 0.28143770806590657 + } + ], + "duration": 8860 +} \ No newline at end of file diff -r b1d083752b47 -r 1f574d93e195 fakedata/generator.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fakedata/generator.html Mon Feb 04 18:54:17 2013 +0100 @@ -0,0 +1,226 @@ + + + + + + + + + \ No newline at end of file diff -r b1d083752b47 -r 1f574d93e195 js/startscreen-fake.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/startscreen-fake.js Mon Feb 04 18:54:17 2013 +0100 @@ -0,0 +1,85 @@ +$(function() { + + var colorset = ["#1f77b4 ", "#aec7e8 ", "#ff7f0e ", "#ffbb78 ", "#2ca02c ", "#98df8a ", "#d62728 ", "#ff9896 ", "#9467bd ", "#c5b0d5 ", "#8c564b ", "#c49c94 ", "#e377c2 ", "#f7b6d2 ", "#7f7f7f ", "#c7c7c7 ", "#bcbd22 ", "#dbdb8d ", "#17becf ", "#9edae5"] + + $.getJSON("fakedata/data.json", function(data) { + $(".topwords-block").html(data.top_words.reduce(function(mem, d) { + return mem + '
  • ' + d.word + '
  • ' + },"")); + + var nmmso = data.segments.length; + + data.topics.forEach(function(topic) { + topic.score = 0; + topic.curve = []; + for (var i = 0; i < nmmso; i++) { + topic.curve.push(0); + } + }); + + data.segments.forEach(function(mmso, i) { + mmso.topics.forEach(function(t) { + var score = t.weight * mmso.tweet_count; + data.topics[t.topic].curve[i] = score; + data.topics[t.topic].score += score; + }); + }); + + data.topics = data.topics.sort(function(a,b) { + return b.score - a.score; + }); + + var topicHtmls = ["", "", ""] + + data.topics.forEach(function(topic,i) { + var li = '
  • '; + topicHtmls[i % 3] += li; + }); + console.log(topicHtmls); + $(".topics-block").html(topicHtmls.reduce(function(mem,html) { + return mem + '' + },"")); + + $(".topic").mouseenter(function() { + var datavizheight = $(".start-dataviz").height(), + scale = datavizheight / data.duration, + topicid = parseInt($(this).attr("data-topic-id")), + topic; + for (var i = 0; i < data.topics.length; i++) { + if (data.topics[i].index == topicid) { + topic = data.topics[i]; + break; + } + } + if (!topic) { + return; + } + var color = colorset[topicid % colorset.length]; + $(".start-dataviz").html(topic.curve.reduce(function(mem, c, i) { + if (!c) { + return mem; + } else { + var mmso = data.segments[i]; + return mem + '
    ' + } + },"")); + })//.mouseleave(function() {$(".start-dataviz").empty(); }); + + }); +}); diff -r b1d083752b47 -r 1f574d93e195 lib/jquery.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/jquery.min.js Mon Feb 04 18:54:17 2013 +0100 @@ -0,0 +1,4 @@ +/*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.match(lt)||[],function(e,n){t[n]=!0}),t}function i(e,n,r,i){if(st.acceptData(e)){var o,a,s=st.expando,u="string"==typeof n,l=e.nodeType,c=l?st.cache:e,f=l?e[s]:e[s]&&s;if(f&&c[f]&&(i||c[f].data)||!u||r!==t)return f||(l?e[s]=f=K.pop()||st.guid++:f=s),c[f]||(c[f]={},l||(c[f].toJSON=st.noop)),("object"==typeof n||"function"==typeof n)&&(i?c[f]=st.extend(c[f],n):c[f].data=st.extend(c[f].data,n)),o=c[f],i||(o.data||(o.data={}),o=o.data),r!==t&&(o[st.camelCase(n)]=r),u?(a=o[n],null==a&&(a=o[st.camelCase(n)])):a=o,a}}function o(e,t,n){if(st.acceptData(e)){var r,i,o,a=e.nodeType,u=a?st.cache:e,l=a?e[st.expando]:st.expando;if(u[l]){if(t&&(r=n?u[l]:u[l].data)){st.isArray(t)?t=t.concat(st.map(t,st.camelCase)):t in r?t=[t]:(t=st.camelCase(t),t=t in r?[t]:t.split(" "));for(i=0,o=t.length;o>i;i++)delete r[t[i]];if(!(n?s:st.isEmptyObject)(r))return}(n||(delete u[l].data,s(u[l])))&&(a?st.cleanData([e],!0):st.support.deleteExpando||u!=u.window?delete u[l]:u[l]=null)}}}function a(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(Nt,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:wt.test(r)?st.parseJSON(r):r}catch(o){}st.data(e,n,r)}else r=t}return r}function s(e){var t;for(t in e)if(("data"!==t||!st.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function u(){return!0}function l(){return!1}function c(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function f(e,t,n){if(t=t||0,st.isFunction(t))return st.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return st.grep(e,function(e){return e===t===n});if("string"==typeof t){var r=st.grep(e,function(e){return 1===e.nodeType});if(Wt.test(t))return st.filter(t,r,!n);t=st.filter(t,r)}return st.grep(e,function(e){return st.inArray(e,t)>=0===n})}function p(e){var t=zt.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function d(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function h(e){var t=e.getAttributeNode("type");return e.type=(t&&t.specified)+"/"+e.type,e}function g(e){var t=nn.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function m(e,t){for(var n,r=0;null!=(n=e[r]);r++)st._data(n,"globalEval",!t||st._data(t[r],"globalEval"))}function y(e,t){if(1===t.nodeType&&st.hasData(e)){var n,r,i,o=st._data(e),a=st._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)st.event.add(t,n,s[n][r])}a.data&&(a.data=st.extend({},a.data))}}function v(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!st.support.noCloneEvent&&t[st.expando]){r=st._data(t);for(i in r.events)st.removeEvent(t,i,r.handle);t.removeAttribute(st.expando)}"script"===n&&t.text!==e.text?(h(t).text=e.text,g(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),st.support.html5Clone&&e.innerHTML&&!st.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Zt.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}function b(e,n){var r,i,o=0,a=e.getElementsByTagName!==t?e.getElementsByTagName(n||"*"):e.querySelectorAll!==t?e.querySelectorAll(n||"*"):t;if(!a)for(a=[],r=e.childNodes||e;null!=(i=r[o]);o++)!n||st.nodeName(i,n)?a.push(i):st.merge(a,b(i,n));return n===t||n&&st.nodeName(e,n)?st.merge([e],a):a}function x(e){Zt.test(e.type)&&(e.defaultChecked=e.checked)}function T(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Nn.length;i--;)if(t=Nn[i]+n,t in e)return t;return r}function w(e,t){return e=t||e,"none"===st.css(e,"display")||!st.contains(e.ownerDocument,e)}function N(e,t){for(var n,r=[],i=0,o=e.length;o>i;i++)n=e[i],n.style&&(r[i]=st._data(n,"olddisplay"),t?(r[i]||"none"!==n.style.display||(n.style.display=""),""===n.style.display&&w(n)&&(r[i]=st._data(n,"olddisplay",S(n.nodeName)))):r[i]||w(n)||st._data(n,"olddisplay",st.css(n,"display")));for(i=0;o>i;i++)n=e[i],n.style&&(t&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=t?r[i]||"":"none"));return e}function C(e,t,n){var r=mn.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function k(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;4>o;o+=2)"margin"===n&&(a+=st.css(e,n+wn[o],!0,i)),r?("content"===n&&(a-=st.css(e,"padding"+wn[o],!0,i)),"margin"!==n&&(a-=st.css(e,"border"+wn[o]+"Width",!0,i))):(a+=st.css(e,"padding"+wn[o],!0,i),"padding"!==n&&(a+=st.css(e,"border"+wn[o]+"Width",!0,i)));return a}function E(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=ln(e),a=st.support.boxSizing&&"border-box"===st.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=un(e,t,o),(0>i||null==i)&&(i=e.style[t]),yn.test(i))return i;r=a&&(st.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+k(e,t,n||(a?"border":"content"),r,o)+"px"}function S(e){var t=V,n=bn[e];return n||(n=A(e,t),"none"!==n&&n||(cn=(cn||st("