Walmart Scintilla new templates and removed their category buttons from homepage.
This commit is contained in:
@ -7,7 +7,8 @@
|
||||
|
||||
function showSurveyPopup() {
|
||||
setTimeout(function() {
|
||||
document.querySelector(".survey-popup-trigger").click()
|
||||
if (document.querySelector(".survey-popup-trigger"))
|
||||
document.querySelector(".survey-popup-trigger").click()
|
||||
}, 500)
|
||||
}
|
||||
|
||||
@ -107,15 +108,14 @@
|
||||
<script> console.log("Homepage: This is a basic user!") </script>
|
||||
{% assign enrolled_courses = courses.enrolled %}
|
||||
{% include "basic_group_homepage", items: enrolled_courses %}
|
||||
{% include "lps_in_progress" %}
|
||||
|
||||
{% else %}
|
||||
<script> console.log("Homepage: This is a non-basic user!") </script>
|
||||
{% include "sub_navigation" %}
|
||||
{% include "nonbasic_group_users_homepage" %}
|
||||
{% include "lps_in_progress" %}
|
||||
{% include "homepage_topics" %}
|
||||
|
||||
|
||||
{% comment %} {% include "homepage_topics" %} {% endcomment %}
|
||||
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% include "footer" %}
|
||||
@ -209,39 +209,26 @@
|
||||
|
||||
<script>
|
||||
if (window.location.pathname == "/app") {
|
||||
document
|
||||
.querySelector(".np-sub-navigation")
|
||||
.classList
|
||||
.add("homepage-nav")
|
||||
document
|
||||
.querySelector(".np-header")
|
||||
.classList
|
||||
.add("homepage-nav")
|
||||
if (document.querySelector(".np-sub-navigation"))
|
||||
document.querySelector(".np-sub-navigation").classList.add("homepage-nav")
|
||||
|
||||
if (document.querySelector(".np-header"))
|
||||
document.querySelector(".np-header").classList.add("homepage-nav")
|
||||
}
|
||||
|
||||
document.querySelector(".np-hidden-desktop .dropdown-arrow").addEventListener("click", function(e) {
|
||||
if (e
|
||||
.target
|
||||
.parentElement
|
||||
.classList
|
||||
.contains("open")) {
|
||||
e
|
||||
.target
|
||||
.parentElement
|
||||
.classList
|
||||
.remove("open")
|
||||
} else {
|
||||
e
|
||||
.target
|
||||
.parentElement
|
||||
.classList
|
||||
.add("open")
|
||||
if (e.target.parentElement.classList.contains("open")) {
|
||||
e.target.parentElement.classList.remove("open")
|
||||
}
|
||||
else {
|
||||
e.target.parentElement.classList.add("open")
|
||||
}
|
||||
})
|
||||
|
||||
window.onload = function() {
|
||||
var stickySubNav = document.querySelector('.np-sub-navigation');
|
||||
var headerOffset = findOffset(stickySubNav);
|
||||
if (stickySubNav)
|
||||
headerOffset = findOffset(stickySubNav);
|
||||
|
||||
window.onscroll = function() {
|
||||
var bodyScrollTop = document.documentElement.scrollTop || document.body.scrollTop;
|
||||
@ -380,7 +367,7 @@
|
||||
|
||||
<style>
|
||||
.np-homepage-ongoing {
|
||||
|
||||
|
||||
margin-bottom:56px;
|
||||
}
|
||||
.left-content-title {
|
||||
@ -388,18 +375,19 @@
|
||||
padding-left: 20px;
|
||||
line-height: 15px;
|
||||
margin: 20px 0;
|
||||
|
||||
|
||||
}
|
||||
.content-by-product {
|
||||
height: auto;
|
||||
height: auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.upcomongevents {
|
||||
height: 350px;
|
||||
height: auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#seemore:hover, #seemorecertificates:hover {
|
||||
#seemoreevents:hover, #seemorecertificates:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
.np-homepage-hero {
|
||||
@ -464,7 +452,7 @@
|
||||
}
|
||||
|
||||
.np-homepage-row-wrapper {
|
||||
|
||||
|
||||
margin-bottom: 56px;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user