remotes/1693045480750635534/spooky-22
Aevann1 2021-12-01 01:25:16 +02:00
parent 0ce036e13a
commit 3c9b64e417
20 changed files with 30 additions and 30 deletions

View File

@ -12,7 +12,7 @@
{% block fixedMobileBarJS %}
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
var prevScrollpos = window.pageYOffset;
window.onscroll = function () {
var currentScrollPos = window.pageYOffset;

View File

@ -40,7 +40,7 @@
{% block fixedMobileBarJS %}
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
var prevScrollpos = window.pageYOffset;
window.onscroll = function () {
var currentScrollPos = window.pageYOffset;

View File

@ -1,6 +1,6 @@
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
const banModal = function(link, id, name) {
document.getElementById("banModalTitle").innerHTML = `Ban @${name}`;
document.getElementById("ban-modal-link").value = link;

View File

@ -28,7 +28,7 @@
{% if p and not (v and v.id==c.author_id) and (not v or v.highlightcomments) %}
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
comments = JSON.parse(localStorage.getItem("comment-counts")) || {}
lastCount = comments['{{p.id}}']
if (lastCount && {{c.created_utc*1000}} > lastCount.t) {
@ -40,7 +40,7 @@ window.addEventListener('DOMContentLoaded', function() {
{% endif %}
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
(() => {
const date = new Date({{c.created_utc*1000}});
document.getElementById('timestamp-{{c.id}}').title = date.toString();
@ -817,7 +817,7 @@ window.addEventListener('DOMContentLoaded', function() {
{% include "expanded_image_modal.html" %}
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
function poll_vote(cid, parentid) {
{% if v %}
for(let el of document.getElementsByClassName('presult-'+parentid)) {
@ -852,6 +852,6 @@ window.addEventListener('DOMContentLoaded', function() {
})
</script>
<script defer src="/assets/js/popover.js?v=6"></script>
<script defer src="/assets/js/popover.js?v=7"></script>
</body>

View File

@ -292,7 +292,7 @@
{% if v and v.agendaposter %}
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
var BugDispatch={options:{minDelay:500,maxDelay:1E4,minBugs:2,maxBugs:20,minSpeed:5,maxSpeed:10,maxLargeTurnDeg:150,maxSmallTurnDeg:10,maxWiggleDeg:5,imageSprite:"fly-sprite.webp",bugWidth:13,bugHeight:14,num_frames:5,zoom:10,canFly:!0,canDie:!0,numDeathTypes:3,monitorMouseMovement:!1,eventDistanceToBug:40,minTimeBetweenMultipy:1E3,mouseOver:"random"},initialize:function(a){this.options=mergeOptions(this.options,a);this.options.minBugs>this.options.maxBugs&&(this.options.minBugs=this.options.maxBugs);
this.modes=["multiply","nothing"];this.options.canFly&&this.modes.push("fly","flyoff");this.options.canDie&&this.modes.push("die");-1==this.modes.indexOf(this.options.mouseOver)&&(this.options.mouseOver="random");this.transform=null;this.transforms={Moz:function(a){this.bug.style.MozTransform=a},webkit:function(a){this.bug.style.webkitTransform=a},O:function(a){this.bug.style.OTransform=a},ms:function(a){this.bug.style.msTransform=a},Khtml:function(a){this.bug.style.KhtmlTransform=a},w3c:function(a){this.bug.style.transform=
a}};if("transform"in document.documentElement.style)this.transform=this.transforms.w3c;else{var b=["Moz","webkit","O","ms","Khtml"],c=0;for(c=0;c<b.length;c++)if(b[c]+"Transform"in document.documentElement.style){this.transform=this.transforms[b[c]];break}}if(this.transform){this.bugs=[];b="multiply"===this.options.mouseOver?this.options.minBugs:this.random(this.options.minBugs,this.options.maxBugs,!0);c=0;var d=this;for(c=0;c<b;c++){a=JSON.parse(JSON.stringify(this.options));var e=SpawnBug();a.wingsOpen=

View File

@ -2,7 +2,7 @@
<script defer src="/assets/js/twitter.js" charset="utf-8">
</script>
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
document.getElementById('twitter-widget-0').setAttribute('sandbox','')
});

View File

@ -2,7 +2,7 @@
<script defer src="https://platform.twitter.com/widgets.js" charset="utf-8">
</script>
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
document.getElementById('twitter-widget-0').setAttribute('sandbox','')
});

View File

@ -1,7 +1,7 @@
{% extends "default.html" %}
{% block content %}
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
function removeFollower(event, username) {
post_toast('/remove_follow/' + username);
let table = document.getElementById("followers-table");

View File

@ -1,7 +1,7 @@
{% extends "default.html" %}
{% block content %}
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
function removeFollower(event, username) {
post_toast('/unfollow/' + username);
let table = document.getElementById("followers-table");

View File

@ -9,7 +9,7 @@
{% if not v.fp %}
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
function fp(fp) {
var xhr = new XMLHttpRequest();
xhr.open("POST", '{{request.host_url}}fp/'+fp, true);
@ -174,7 +174,7 @@ window.addEventListener('DOMContentLoaded', function() {
</div>
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
if (!("standalone" in window.navigator) && window.navigator.standalone) {
if (window.innerWidth <= 737) {
document.getElementById('mobile-prompt').show()
@ -195,7 +195,7 @@ window.addEventListener('DOMContentLoaded', function() {
{% if v %}
<script defer src="https://js.pusher.com/beams/1.0/push-notifications-cdn.js"></script>
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
const beamsClient = new PusherPushNotifications.Client({
instanceId: '02ddcc80-b8db-42be-9022-44c546b4dce6',
});

View File

@ -6,7 +6,7 @@
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
block_user=function() {
var exileForm = document.getElementById("exile-form");

View File

@ -38,7 +38,7 @@
</div>
{% if v.agendaposter %}
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
const flip = (e) => {
e.preventDefault();
document.getElementsByTagName("body")[0].setAttribute("style", "-moz-transform: scale(-1, -1);-o-transform: scale(-1, -1);-webkit-transform: scale(-1, -1);transform: scale(-1, -1);");

View File

@ -685,7 +685,7 @@
<script defer src="/assets/js/settings_profile.js?v=58"></script>
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
document.onpaste = function(event) {
var focused = document.activeElement;
if (focused.id == 'bio-text') {

View File

@ -5,7 +5,7 @@
{% block content %}
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
document.getElementById('new_email').addEventListener('input', function () {
document.getElementById("email-password").classList.remove("d-none");
document.getElementById("email-password-label").classList.remove("d-none");

View File

@ -829,7 +829,7 @@
</div>
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
(() => {
const date = new Date({{p.created_utc*1000}});
document.getElementById('timestamp').title = date.toString();
@ -876,7 +876,7 @@ window.addEventListener('DOMContentLoaded', function() {
{% if not p.comment_count %}
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
function poll_vote(cid) {
{% if v %}
for(let el of document.getElementsByClassName('presult')) {
@ -915,7 +915,7 @@ window.addEventListener('DOMContentLoaded', function() {
{% set minbugs = 10*p.award_count("shit") if p.award_count("shit") < 3 else 20 %}
{% set maxbugs = 20*p.award_count("shit") if p.award_count("shit") < 3 else 40 %}
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
new BugController({
imageSprite: "/assets/images/fly-sprite.webp",
canDie: false,
@ -934,7 +934,7 @@ window.addEventListener('DOMContentLoaded', function() {
{% set minbugs = 10*p.award_count("fireflies") if p.award_count("fireflies") < 3 else 20 %}
{% set maxbugs = 20*p.award_count("fireflies") if p.award_count("fireflies") < 3 else 40 %}
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
new BugController({
imageSprite: "/assets/images/fireflies.webp",
canDie: false,

View File

@ -54,7 +54,7 @@
</div>
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
(() => {
const date = new Date({{p.created_utc*1000}});
document.getElementById('timestamp-{{p.id}}').title = date.toString();
@ -688,4 +688,4 @@ window.addEventListener('DOMContentLoaded', function() {
{% include "award_modal.html" %}
{% endif %}
<script defer src="/assets/js/popover.js?v=6"></script>
<script defer src="/assets/js/popover.js?v=7"></script>

View File

@ -35,7 +35,7 @@
{% if v %}
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
const TRANSFER_TAX = {% if v.patron or u.patron %}0{% else %}0.03{% endif %};
function updateTax(mobile=false) {
@ -74,7 +74,7 @@ window.addEventListener('DOMContentLoaded', function() {
{% if u.song %}
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
var audio = new Audio('/songs/{{u.id}}');
audio.loop=true;

View File

@ -4,7 +4,7 @@
{% block fixedMobileBarJS %}
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
var prevScrollpos = window.pageYOffset;
window.onscroll = function () {
var currentScrollPos = window.pageYOffset;

View File

@ -4,7 +4,7 @@
{% block fixedMobileBarJS %}
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
var prevScrollpos = window.pageYOffset;
window.onscroll = function () {
var currentScrollPos = window.pageYOffset;

View File

@ -4,7 +4,7 @@
{% block fixedMobileBarJS %}
<script>
window.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
var prevScrollpos = window.pageYOffset;
window.onscroll = function () {
var currentScrollPos = window.pageYOffset;