diff --git a/README.md b/README.md
index e8629f8..2cc0069 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ These highlighted words ARE case senstive. You can make them not case sensitive
Highlighted words will automatically highlight adjacent letters. So, for example, `NodeJS-generated` will all be highlighted green, as `NodeJS` is a keyword.
If a highlighted word finds adjacent paranthesis, then the entire parenthesis will be highlighted.
-For example `(Godot Engine is super cool)` will all be highlighted blue. So will `(My favorite UTAUloid is Teto)`. But, on the other hand, `(Don't you think Javascript sucks?)` will only have `Javascript` highlighted.
+For example `(Godot Engine is super cool)` will all be highlighted blue. So will `(My favorite utoid is Teto)`. But, on the other hand, `(Don't you think Javascript sucks?)` will only have `Javascript` highlighted.
### Dynamic HTML
In `pageUpdater.js`, is a dictionary that specifies keywords to look for. Then, if it finds those keywords, and replaces them with HTML.
diff --git a/constants.json b/constants.json
index 41e7601..37a57ee 100644
--- a/constants.json
+++ b/constants.json
@@ -335,7 +335,6 @@
{
"words": [
"CSS",
- ".css",
"Neow",
"The Defect"
],
diff --git a/pageUpdater.js b/pageUpdater.js
index ff821d5..9c707af 100644
--- a/pageUpdater.js
+++ b/pageUpdater.js
@@ -51,14 +51,6 @@ function firstToUpper(str) {
return str.charAt(0).toUpperCase() + str.slice(1)
}
-function onlyIfExists(string, check) {
- if (check) {
- return string
- } else {
- return ""
- }
-}
-
function makeHtmlSafe(str) {
return String(str).replace(/&/g, '&').replace(//g, '>').replace(/"/g, '"');
}
@@ -307,8 +299,9 @@ function converter(html, dynamic = true) {
for (var x = 0; x < sitesTable.length; x++) {
var siteName = sitesTable[x]
var siteData = sites[siteName]
- html += `${siteName}: ${siteData.name.replaceAll("Violet", "{Violet}")}`
-
+ if (siteData.url) {
+ html += `${siteName}: ${siteData.name.replaceAll("Violet", "{Violet}")}`
+ }
}
html += ""
}
diff --git a/static/ambience/ambient.js b/static/ambience/ambient.js
deleted file mode 100644
index 3f8e12c..0000000
--- a/static/ambience/ambient.js
+++ /dev/null
@@ -1,32 +0,0 @@
-function loop() {
- var date = new Date()
-
- var hour = date.getHours();
- hour = (hour < 10 ? "0" : "") + hour;
-
- var min = date.getMinutes();
- min = (min < 10 ? "0" : "") + min;
-
- var sec = date.getSeconds();
- sec = (sec < 10 ? "0" : "") + sec;
-
- $("#time").text(hour + ":" + min)
-
- setTimeout(() => {
- loop()
- }, 1000)
-}
-
-document.addEventListener("DOMContentLoaded", function() {
- loop()
-})
-
-$(document).on('keypress',function(e) {
- if(e.which == 102) {
- if ($.fullscreen.isFullScreen()) {
- $.fullscreen.exit()
- } else {
- $("body").fullscreen()
- }
- }
-});
\ No newline at end of file
diff --git a/static/ambience/fullscreen.js b/static/ambience/fullscreen.js
deleted file mode 100644
index de65877..0000000
--- a/static/ambience/fullscreen.js
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * jquery.fullscreen v0.6.0
- * https://github.com/private-face/jquery.fullscreen
- *
- * Copyright (c) 2012–2016 Vladimir Zhuravlev
- * Released under the MIT license
- * https://github.com/private-face/jquery.fullscreen/blob/master/LICENSE
- *
- * Date: 2016-08-25
- **/
-(function(global, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD
- define(['jquery'], function (jQuery) {
- return factory(jQuery);
- });
- } else if (typeof exports === 'object') {
- // CommonJS/Browserify
- factory(require('jquery'));
- } else {
- // Global
- factory(global.jQuery);
- }
-}(this, function($) {
-
-function defined(a){return"undefined"!=typeof a}function extend(a,b,c){var d=function(){};d.prototype=b.prototype,a.prototype=new d,a.prototype.constructor=a,b.prototype.constructor=b,a._super=b.prototype,c&&$.extend(a.prototype,c)}function native(a,b){var c;"string"==typeof a&&(b=a,a=document);for(var d=0;d37)&&defined(native("fullscreenElement"))&&(!defined(fsEnabled)||fsEnabled===!0),version=$.fn.jquery.split("."),JQ_LT_17=parseInt(version[0])<2&&parseInt(version[1])<7,FullScreenAbstract=function(){this.__options=null,this._fullScreenElement=null,this.__savedStyles={}};FullScreenAbstract.prototype={native:native,_DEFAULT_OPTIONS:{styles:{boxSizing:"border-box",MozBoxSizing:"border-box",WebkitBoxSizing:"border-box"},toggleClass:null},__documentOverflow:"",__htmlOverflow:"",_preventDocumentScroll:function(){this.__documentOverflow=document.body.style.overflow,this.__htmlOverflow=document.documentElement.style.overflow,$(this._fullScreenElement).is("body, html")||$("body, html").css("overflow","hidden")},_allowDocumentScroll:function(){document.body.style.overflow=this.__documentOverflow,document.documentElement.style.overflow=this.__htmlOverflow},_fullScreenChange:function(){this.__options&&(this.isFullScreen()?(this._preventDocumentScroll(),this._triggerEvents()):(this._allowDocumentScroll(),this._revertStyles(),this._triggerEvents(),this._fullScreenElement=null))},_fullScreenError:function(a){this.__options&&(this._revertStyles(),this._fullScreenElement=null,a&&$(document).trigger("fscreenerror",[a]))},_triggerEvents:function(){$(this._fullScreenElement).trigger(this.isFullScreen()?"fscreenopen":"fscreenclose"),$(document).trigger("fscreenchange",[this.isFullScreen(),this._fullScreenElement])},_saveAndApplyStyles:function(){var a=$(this._fullScreenElement);this.__savedStyles={};for(var b in this.__options.styles)this.__savedStyles[b]=this._fullScreenElement.style[b],this._fullScreenElement.style[b]=this.__options.styles[b];a.is("body")&&(document.documentElement.style.overflow=this.__options.styles.overflow),this.__options.toggleClass&&a.addClass(this.__options.toggleClass)},_revertStyles:function(){var a=$(this._fullScreenElement);for(var b in this.__options.styles)this._fullScreenElement.style[b]=this.__savedStyles[b];a.is("body")&&(document.documentElement.style.overflow=this.__savedStyles.overflow),this.__options.toggleClass&&a.removeClass(this.__options.toggleClass)},open:function(a,b){a!==this._fullScreenElement&&(this.isFullScreen()&&this.exit(),this._fullScreenElement=a,this.__options=$.extend(!0,{},this._DEFAULT_OPTIONS,b),this._saveAndApplyStyles())},exit:null,isFullScreen:null,isNativelySupported:function(){return IS_NATIVELY_SUPPORTED}};var FullScreenNative=function(){FullScreenNative._super.constructor.apply(this,arguments),this.exit=$.proxy(native("exitFullscreen"),document),this._DEFAULT_OPTIONS=$.extend(!0,{},this._DEFAULT_OPTIONS,{styles:{width:"100%",height:"100%"}}),$(document).bind(this._prefixedString("fullscreenchange")+" MSFullscreenChange",$.proxy(this._fullScreenChange,this)).bind(this._prefixedString("fullscreenerror")+" MSFullscreenError",$.proxy(this._fullScreenError,this))};extend(FullScreenNative,FullScreenAbstract,{VENDOR_PREFIXES:["","o","moz","webkit"],_prefixedString:function(a){return $.map(this.VENDOR_PREFIXES,function(b){return b+a}).join(" ")},open:function(a,b){FullScreenNative._super.open.apply(this,arguments);var c=native(a,"requestFullscreen");c.call(a)},exit:$.noop,isFullScreen:function(){return null!==native("fullscreenElement")},element:function(){return native("fullscreenElement")}});var FullScreenFallback=function(){FullScreenFallback._super.constructor.apply(this,arguments),this._DEFAULT_OPTIONS=$.extend({},this._DEFAULT_OPTIONS,{styles:{position:"fixed",zIndex:"2147483647",left:0,top:0,bottom:0,right:0}}),this.__delegateKeydownHandler()};extend(FullScreenFallback,FullScreenAbstract,{__isFullScreen:!1,__delegateKeydownHandler:function(){var a=$(document);a.delegate("*","keydown.fullscreen",$.proxy(this.__keydownHandler,this));var b=JQ_LT_17?a.data("events"):$._data(document).events,c=b.keydown;JQ_LT_17?b.live.unshift(b.live.pop()):c.splice(0,0,c.splice(c.delegateCount-1,1)[0])},__keydownHandler:function(a){return!this.isFullScreen()||27!==a.which||(this.exit(),!1)},_revertStyles:function(){FullScreenFallback._super._revertStyles.apply(this,arguments),this._fullScreenElement.offsetHeight},open:function(a){FullScreenFallback._super.open.apply(this,arguments),this.__isFullScreen=!0,this._fullScreenChange()},exit:function(){this.__isFullScreen&&(this.__isFullScreen=!1,this._fullScreenChange())},isFullScreen:function(){return this.__isFullScreen},element:function(){return this.__isFullScreen?this._fullScreenElement:null}}),$.fullscreen=IS_NATIVELY_SUPPORTED?new FullScreenNative:new FullScreenFallback,$.fn.fullscreen=function(a){var b=this[0];return a=$.extend({toggleClass:null,overflow:"hidden"},a),a.styles={overflow:a.overflow},delete a.overflow,b&&$.fullscreen.open(b,a),this};
-//# sourceMappingURL=jquery.fullscreen.min.js.mapreturn $.fullscreen;
-}));
\ No newline at end of file
diff --git a/static/ambience/index.html b/static/ambience/index.html
deleted file mode 100644
index 2b58283..0000000
--- a/static/ambience/index.html
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Violet's Purgatory Ambient Page
-
-
-
-
-
-
-
-
-
-
- {WEATHER_MODIFIER}
-
-
00:00
-
- {ACTIVITIES}
-
-
-
-
-
\ No newline at end of file
diff --git a/static/ambience/style.css b/static/ambience/style.css
deleted file mode 100644
index cd4159a..0000000
--- a/static/ambience/style.css
+++ /dev/null
@@ -1,19 +0,0 @@
-body {
- background-image: none;
- background-color: black;
- display: flex;
- align-items: center;
- margin: auto;
-
-}
-
-@media screen and (min-height: 500px) {
- html,
- body {
- height: 100%;
- }
-}
-
-#time {
- font-size: 5rem;
-}
\ No newline at end of file
diff --git a/static/main.js b/static/main.js
index 72b0841..5c50bc3 100644
--- a/static/main.js
+++ b/static/main.js
@@ -154,7 +154,7 @@ window.onbeforeunload = function () {
window.scrollTo(0, 0);
}
-document.addEventListener("DOMContentLoaded", function() {
+window.onload = function () {
$("#jsEnabled").text("true")
pfp = $(".pfp")
@@ -191,7 +191,7 @@ document.addEventListener("DOMContentLoaded", function() {
}
}
socketeer()
-})
+}
var lastPong = Date.now()