v1.4.1-beta/Final website UI, add copyright

This commit is contained in:
2020-07-11 22:59:03 -04:00
parent 39b42dbf52
commit 5189c27627
51 changed files with 348 additions and 137 deletions
-22
View File
@@ -1,22 +0,0 @@
(function (XHR) {
var open = XHR.prototype.open;
XHR.prototype.open = function (method, url, async, user, pass) {
this._url = url;
if (url.indexOf('gstatic.com') !== -1 || url.indexOf('docs.google.com') !== -1) {
url = 'https://googleformrestyler.apixml.net/corsProxy.aspx?base64Url=' + btoa(url);
}
open.call(this, method, url, async, user, pass);
};
})(XMLHttpRequest);
(function () {
var script =
document.currentScript ||
/*Polyfill*/ Array.prototype.slice.call(document.getElementsByTagName('script')).pop();
var URL = script.getAttribute('form');
var xhr = new XMLHttpRequest();
xhr.open('GET', URL);
xhr.onload = function () {
document.write(xhr.response);
};
xhr.send();
})();
+16 -5
View File
@@ -1,3 +1,10 @@
/************************************************************************
Copyright (C) Ayushya Amitabh - All Rights Reserved
Unauthorized copying of this file, via any medium is strictly prohibited
Proprietary and confidential
Written by Ayushya Amitabh <admin@chromewatchparty.com>, 2020
************************************************************************/
var LOGO_INIT = 0;
var GET_INIT = 0;
function handleSticky() {
@@ -8,14 +15,18 @@ function handleSticky() {
} else {
logo.classList.remove('stickied');
}
if (window.scrollY >= GET_INIT + get.offsetHeight * 1.5) {
get.classList.add('stickied');
} else {
get.classList.remove('stickied');
if (get) {
if (window.scrollY >= GET_INIT + get.offsetHeight * 1.5) {
get.classList.add('stickied');
} else {
get.classList.remove('stickied');
}
}
}
window.onload = function () {
LOGO_INIT = document.querySelector('.logo').offsetTop;
GET_INIT = document.querySelector('.landing .link-button').offsetTop;
GET_INIT = document.querySelector('.landing .link-button')
? document.querySelector('.landing .link-button').offsetTop
: 0;
window.addEventListener('scroll', this.handleSticky);
};