Closed Bug 501963 Opened 16 years ago Closed 15 years ago

"We're building" rotating with "We believe"

Categories

(www.mozilla.org :: General, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dina.shvayakova, Assigned: dina.shvayakova)

References

()

Details

Attachments

(3 files, 6 obsolete files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11 Build Identifier: "We're building..." appears instead of "We believe..." every 5 sec (and vice versa). It supposed to look like smbd's typing it. Reproducible: Always
Attached patch index-patch (obsolete) — Splinter Review
Attached patch screen-patch (obsolete) — Splinter Review
Attached patch mozilla.org.js-patch (obsolete) — Splinter Review
Attachment #386517 - Flags: review?(reed)
Attachment #386519 - Flags: review?(reed)
Comment on attachment 386517 [details] [diff] [review] index-patch This isn't <noscript> safe. If we're going to use JavaScript for this, we need to always display something and then change it later. Showing nothing just means people with JS disabled won't see anything at all.
Attachment #386517 - Flags: review?(reed) → review-
Attachment #386519 - Flags: review?(reed)
Attachment #386520 - Flags: review?(reed)
Comment on attachment 386520 [details] [diff] [review] mozilla.org.js-patch Reed, could you take a look over this patch before I check it in? If anyone else more familiar with JS than I am wants to review this, feel free.
Comment on attachment 386520 [details] [diff] [review] mozilla.org.js-patch Also need to make this localizable besides my comments above.
Attachment #386520 - Flags: review?(reed) → review-
Attached patch index.php.patch (obsolete) — Splinter Review
the default value ('We believe') has been added. now it is safe for user with JS disabled.
Attachment #387349 - Flags: review?(reed)
Comment on attachment 387349 [details] [diff] [review] index.php.patch Shouldn't you give it an id at least, or are you saying the <span> inside the <h1> with id moral? Probably be best to just give the <span> an id.
Attached patch index.php (obsolete) — Splinter Review
It is <noscript> safe. Text is localizable.
Attachment #386517 - Attachment is obsolete: true
Attachment #387349 - Attachment is obsolete: true
Attachment #387349 - Flags: review?(reed)
Attached patch mozilla.org.js (obsolete) — Splinter Review
Attachment #386520 - Attachment is obsolete: true
Hi tinawiel, I'd change the index.php code so that a) the initial 'display' style is given via ID, not with an attribute b) the page makes sense when CSS is turned off, i.e. don't mush both sentences into one <h1> tag. Either use two <h1> tags or two <p> tags or something like that. Other than that it looks pretty good. reed might have some other comments, I'm not too familiar with the js framework here.
It is a problem to show only one text with JS disabled and CSS disabled (ex: show 'We're building' but hide 'We believe' ) Is it okey to use <input type=hidden...> for this purpose? Or is it acceptable to show both "We're building" and "We believe" and the same time when JS and CSS are disabled ?
I think it makes sense to show both when CSS is off, with "We believe" placed before "We're building".
Attached patch index.phpSplinter Review
Attachment #387370 - Attachment is obsolete: true
Attached patch screen.cssSplinter Review
Attachment #386519 - Attachment is obsolete: true
Attached patch mozilla.org.jsSplinter Review
This is <noscript> and no-CSS safe. Text is localizable.
Attachment #387372 - Attachment is obsolete: true
Reed or fantasai, would one of you be able to review the latest set of patches for this? Now that the new design is up, it would be good to get the rotation working.
I'm not a JS person, so I don't claim to understand how $('#moral-one').css('display','block'); works, but assuming it does it all looks good to me. :) r=fantasai
Attachment #387788 - Flags: review?(reed)
Attachment #387789 - Flags: review?(reed)
Attachment #387790 - Flags: review?(reed)
Assignee: nobody → dina.shvayakova
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Comment on attachment 387788 [details] [diff] [review] index.php This will display both "morals" at the same time if JS is off. Is that really what we want? How does the page look with both of them displayed?
Attachment #387789 - Flags: review?(reed) → review+
Comment on attachment 387789 [details] [diff] [review] screen.css yeah, sure, r=reed
Comment on attachment 387790 [details] [diff] [review] mozilla.org.js waiting on an answer to my other comment before reviewing this... also need to get my testing environment back up to actually test it.
Re question #19, it would be helpful to have a screenshot to look at. Reed, is that something you could post when your testing environment is back up?
We can have one of them "display: none" via CSS, then let the JS rotate it from there.
Priority: -- → P3
We added this to the home page with the recent design refresh.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: