Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Fix:#266 Fixed two scroll up buttons in privacy page #267

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
<div class="col-lg-1 col-md-1 col-sm-1 col-xs-1 privacy-empty-container">&nbsp;</div>
<div class="privacy-content col-lg-9 col-md-8 col-sm-12 col-xs-12">

<img class="scroll-to-top" *ngIf="visible" src="assets/images/arrow_scroll.png" (click)="scrollToTop();" />
<div class="fw-regular privacy-title align-center" id="privacy-policy-title">Privacy Policy</div>
<p class="privacy-section-content">
This privacy policy has been compiled to better serve those who are concerned with how their 'Personally Identifiable Information' (PII) is being used online. PII, as described in US privacy law and information security, is information that can be used on its own or with other information to identify, contact, or locate a single person, or to identify an individual in context. Please read our privacy policy carefully to get a clear understanding of how we collect, use, protect or otherwise handle your Personally Identifiable Information in accordance with our website.
Expand Down
12 changes: 1 addition & 11 deletions src/app/components/privacy-policy/privacy-policy.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,7 @@
color: $blue-lighter !important;
font-weight: $fw-regular;
}
.scroll-to-top {
position: fixed;
top: 80%;
right: 4%;
height: 50px;
cursor: pointer;
z-index: 4 !important;
&:hover {
height: 55px;
}
}

.privacy-title {
margin-top: 10px;
font-size: $fs-34;
Expand Down
6 changes: 0 additions & 6 deletions src/app/components/privacy-policy/privacy-policy.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,4 @@ export class PrivacyPolicyComponent implements OnInit {
this.highlightSectionTitle(ELEMENT_ID);
}

/**
* Scrolls to the top of the page
*/
scrollToTop() {
this.document.getElementById('privacy-policy-title').scrollIntoView({behavior: 'smooth'});
}
}