Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hiding regular hours by default #355

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

karenytu
Copy link

I changed ocf.berkeley.edu/docs/services/lab/ and made the regular weekly hours hidden by default. The reasoning for this change is because Sahil said that people would ignore the actual hours above the regular weekly hours and get confused about lab opening times...

Screenshots of the page on load and after button click are attached.
hours_hidden
hours_shown

<h3>Regular Weekly Hours</h3>
<h3>Regular Weekly Hours</h3>
<button class = "btn btn-primary" id = "weekly_hours_btn" onclick="toggle_weekly_hours()" style="opacity:0.3;">Show</button>
<div id = "weekly_hours" style="display:none;">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird spacing around some of the = signs

$("#weekly_hours").hide();
}
}
</script>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use something from Bootstrap instead of reinventing it ourselves?

https://getbootstrap.com/docs/3.3/javascript/#collapse-example looks like basically what you want. Plus we get nice transitions this way.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(to clarify, we already have all the bootstrap css/js, so it should be as simple as adding the right classes and hooking things up; the example there should help)

@kpengboy
Copy link
Member

@karenytu just a friendly reminder about this

@kkuehlz
Copy link
Member

kkuehlz commented Jul 1, 2018

@karenytu bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants