Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drupal Upstream
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASC IRIS Web Services
Drupal Upstream
Commits
ad308d6a
Unverified
Commit
ad308d6a
authored
3 years ago
by
Michael Lee
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request
#451
from ASCWebServices/canini-2
mobile javascript updates for sidebars
parents
3d671237
6273a8af
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
web/themes/asc_bootstrap/js/scripts.js
+24
-12
24 additions, 12 deletions
web/themes/asc_bootstrap/js/scripts.js
with
24 additions
and
12 deletions
web/themes/asc_bootstrap/js/scripts.js
+
24
−
12
View file @
ad308d6a
...
...
@@ -23,28 +23,40 @@ jQuery(document).ready(function(){
jQuery
(
"
.path-people .main-container aside
"
).
css
({
'
min-height
'
:(
jQuery
(
"
.path-people .main-container section
"
).
height
()
+
'
px
'
)});
}
if
(
jQuery
(
"
.page-node-type-newsletter-article .main-container section
"
).
height
()
>
jQuery
(
"
.page-node-type-newsletter-article .main-container aside
"
).
height
())
{
jQuery
(
"
.page-node-type-newsletter-article .main-container aside
"
).
css
({
'
min-height
'
:(
jQuery
(
"
.page-node-type-newsletter-article .main-container section
"
).
height
()
+
'
px
'
)});
if
(
jQuery
(
"
.page-node-type-newsletter-article .main-container aside .region-sidebar-menu
"
).
css
(
'
display
'
)
!=
'
none
'
)
{
if
(
jQuery
(
"
.page-node-type-newsletter-article .main-container section
"
).
height
()
>
jQuery
(
"
.page-node-type-newsletter-article .main-container aside
"
).
height
())
{
jQuery
(
"
.page-node-type-newsletter-article .main-container aside
"
).
css
({
'
min-height
'
:(
jQuery
(
"
.page-node-type-newsletter-article .main-container section
"
).
height
()
+
'
px
'
)});
}
}
if
(
jQuery
(
"
.page-node-type-research .main-container section
"
).
height
()
>
jQuery
(
"
.page-node-type-research aside
"
).
height
())
{
jQuery
(
"
.page-node-type-research .main-container aside
"
).
css
({
'
min-height
'
:(
jQuery
(
"
.page-node-type-research .main-container section
"
).
height
()
+
'
px
'
)});
if
(
jQuery
(
"
.page-node-type-research .main-container aside .region-sidebar-menu
"
).
css
(
'
display
'
)
!=
'
none
'
)
{
if
(
jQuery
(
"
.page-node-type-research .main-container section
"
).
height
()
>
jQuery
(
"
.page-node-type-research aside
"
).
height
())
{
jQuery
(
"
.page-node-type-research .main-container aside
"
).
css
({
'
min-height
'
:(
jQuery
(
"
.page-node-type-research .main-container section
"
).
height
()
+
'
px
'
)});
}
}
if
(
jQuery
(
"
.page-node-type-gallery .main-container section
"
).
height
()
>
jQuery
(
"
.page-node-type-gallery aside
"
).
height
())
{
jQuery
(
"
.page-node-type-gallery .main-container aside
"
).
css
({
'
min-height
'
:(
jQuery
(
"
.page-node-type-gallery .main-container section
"
).
height
()
+
'
px
'
)});
if
(
jQuery
(
"
.page-node-type-gallery .main-container aside .region-sidebar-menu
"
).
css
(
'
display
'
)
!=
'
none
'
)
{
if
(
jQuery
(
"
.page-node-type-gallery .main-container section
"
).
height
()
>
jQuery
(
"
.page-node-type-gallery aside
"
).
height
())
{
jQuery
(
"
.page-node-type-gallery .main-container aside
"
).
css
({
'
min-height
'
:(
jQuery
(
"
.page-node-type-gallery .main-container section
"
).
height
()
+
'
px
'
)});
}
}
if
(
jQuery
(
"
.page-node-type-course .main-container section
"
).
height
()
>
jQuery
(
"
.page-node-type-course aside
"
).
height
())
{
jQuery
(
"
.page-node-type-course .main-container aside
"
).
css
({
'
min-height
'
:(
jQuery
(
"
.page-node-type-course .main-container section
"
).
height
()
+
'
px
'
)});
if
(
jQuery
(
"
.page-node-type-course .main-container aside .region-sidebar-menu
"
).
css
(
'
display
'
)
!=
'
none
'
)
{
if
(
jQuery
(
"
.page-node-type-course .main-container section
"
).
height
()
>
jQuery
(
"
.page-node-type-course aside
"
).
height
())
{
jQuery
(
"
.page-node-type-course .main-container aside
"
).
css
({
'
min-height
'
:(
jQuery
(
"
.page-node-type-course .main-container section
"
).
height
()
+
'
px
'
)});
}
}
if
(
jQuery
(
"
.page-node-type-departments-centers .main-container section
"
).
height
()
>
jQuery
(
"
.page-node-type-departments-centers aside
"
).
height
())
{
jQuery
(
"
.page-node-type-departments-centers .main-container aside
"
).
css
({
'
min-height
'
:(
jQuery
(
"
.page-node-type-departments-centers .main-container section
"
).
height
()
+
'
px
'
)});
if
(
jQuery
(
"
.page-node-type-departments-centers .main-container aside
"
).
css
(
'
float
'
)
!=
'
none
'
)
{
if
(
jQuery
(
"
.page-node-type-departments-centers .main-container section
"
).
height
()
>
jQuery
(
"
.page-node-type-departments-centers aside
"
).
height
())
{
jQuery
(
"
.page-node-type-departments-centers .main-container aside
"
).
css
({
'
min-height
'
:(
jQuery
(
"
.page-node-type-departments-centers .main-container section
"
).
height
()
+
'
px
'
)});
}
}
if
(
jQuery
(
"
.page-node-type-academic-programs .main-container section
"
).
height
()
>
jQuery
(
"
.page-node-type-academic-programs aside
"
).
height
())
{
jQuery
(
"
.page-node-type-academic-programs .main-container aside
"
).
css
({
'
min-height
'
:(
jQuery
(
"
.page-node-type-academic-programs .main-container section
"
).
height
()
+
'
px
'
)});
if
(
jQuery
(
"
.page-node-type-academic-programs .main-container aside
"
).
css
(
'
float
'
)
!=
'
none
'
)
{
if
(
jQuery
(
"
.page-node-type-academic-programs .main-container section
"
).
height
()
>
jQuery
(
"
.page-node-type-academic-programs aside
"
).
height
())
{
jQuery
(
"
.page-node-type-academic-programs .main-container aside
"
).
css
({
'
min-height
'
:(
jQuery
(
"
.page-node-type-academic-programs .main-container section
"
).
height
()
+
'
px
'
)});
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment