mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Only show university info box on new plans page student tab (#8823)
GitOrigin-RevId: 057baae295443d9a924b4b0754cdb12ebe330976
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
.row.row-spaced-large.text-centered
|
||||
.row.row-spaced-large.text-centered(
|
||||
data-ol-plans-university-info-container
|
||||
hidden
|
||||
)
|
||||
.col-sm-8.col-sm-offset-2.col-xs-12.card.plans-v2-university-info
|
||||
h3.plans-v2-university-info-header #{translate('would_you_like_to_see_a_university_subscription')}
|
||||
p.plans-v2-university-info-text #{translate('student_and_faculty_support_make_difference')}
|
||||
|
||||
@@ -50,6 +50,8 @@ function selectTab(viewTab) {
|
||||
} else {
|
||||
toggleMonthlyAnnualSwitching(viewTab, currentMonthlyAnnualSwitchValue)
|
||||
}
|
||||
|
||||
toggleUniversityInfo(viewTab)
|
||||
}
|
||||
|
||||
function setUpTabSwitching() {
|
||||
@@ -90,6 +92,12 @@ function setUpGroupPlanPricingChange() {
|
||||
)
|
||||
}
|
||||
|
||||
function toggleUniversityInfo(viewTab) {
|
||||
const el = document.querySelector('[data-ol-plans-university-info-container]')
|
||||
|
||||
el.hidden = viewTab !== 'student'
|
||||
}
|
||||
|
||||
function selectViewFromHash() {
|
||||
try {
|
||||
const params = new URLSearchParams(window.location.hash.substring(1))
|
||||
|
||||
Reference in New Issue
Block a user