From 1548544d211005e0bf6e1bf2479aef165458a670 Mon Sep 17 00:00:00 2001 From: Anna Sobiepanek Date: Tue, 22 Jun 2010 08:10:09 -0400 Subject: [PATCH] Revert "Merge branch 'review' of github.com:annasob/popcorn-js into 0.1" This reverts commit b6a2893d42ce3330b227c435c428280bb6e5c311, reversing changes made to 6c6ea05091e4ac57b5376946590e6f946db07b52. --- README | 6 ++---- popcorn.js | 10 +++------- xml/webMadeMovies.xml | 33 +++++++++++++++------------------ 3 files changed, 20 insertions(+), 29 deletions(-) diff --git a/README b/README index ce334cb..6b9bfaf 100644 --- a/README +++ b/README @@ -11,13 +11,11 @@ Bug Tracking https://processing-js.lighthouseapp.com/projects/52212-popcornjs/overview IMPORTANT! - NOTE FOR DEVELOPERS - - Please read the guidelines before pushing your code to the repository. The - function(s) you are working on may already be finished and queued for push. + Please read the guidelines before pushing your code to the repository. The function(s) you are working on may already be finished and queued for push. GUIDELINES https://processing-js.lighthouseapp.com/projects/52212/project-workflow - + IRC CHANNEL Join the development team at irc://irc.mozilla.org/popcorn for more info diff --git a/popcorn.js b/popcorn.js index e99f279..6eed955 100644 --- a/popcorn.js +++ b/popcorn.js @@ -57,13 +57,9 @@ }; // Simple function to convert 0:05 to 0.5 in seconds - var toSeconds = function(time) { + var to_secs = function(time) { var t = time.split(":"); - if (t.length === 3) { - return parseInt(t[0] * 60, 10) + parseFloat(t[1], 10) + parseFloat(t[2] / 30, 10); - } else if (t.length === 4) { - return parseInt(t[0] * 3600, 10) + parseInt(t[1] * 60, 10) + parseFloat(t[2], 10) + parseFloat(t[3] / 30, 10); - } + return parseInt(t[0] * 60, 10) + parseInt(t[1], 10); }; //////////////////////////////////////////////////////////////////////////// @@ -85,7 +81,7 @@ var key = params[i].item(j).nodeName, data = params[i].item(j).nodeValue; if (key === "in" || key === "out") { - this.params[key] = toSeconds(data); + this.params[key] = to_secs(data); } else { this.params[key] = data; } diff --git a/xml/webMadeMovies.xml b/xml/webMadeMovies.xml index c323832..da74059 100644 --- a/xml/webMadeMovies.xml +++ b/xml/webMadeMovies.xml @@ -1,26 +1,23 @@ - Hello! My name is Celine Celine - And I help the Internet be easier - by making things easier - My name is Mona Kasra - and I'm building a better internet + Hello! My name is Celine Celine + And I help the Internet be easier + by making things easier + My name is Mona Kasra + and I'm building a better internet - Celine Celine - Celine Celine2 - Celine Celine3 - Celine Celine4 - Bryan - Mona Kasra - Caleb - Dave - Noah - Celine Celine + Celine Celine + Bryan + Mona Kasra + Caleb + Dave + Noah + Celine Celine - - - + + + -- 2.43.0