forked from MarseyWorld/MarseyWorld
sdf
parent
7edabe847f
commit
62ce5d25bf
|
@ -12,7 +12,6 @@
|
|||
|
||||
{% block fixedMobileBarJS %}
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
var prevScrollpos = window.pageYOffset;
|
||||
window.onscroll = function () {
|
||||
var currentScrollPos = window.pageYOffset;
|
||||
|
@ -32,7 +31,6 @@
|
|||
}
|
||||
prevScrollpos = currentScrollPos;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
@ -40,7 +40,6 @@
|
|||
|
||||
{% block fixedMobileBarJS %}
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
var prevScrollpos = window.pageYOffset;
|
||||
window.onscroll = function () {
|
||||
var currentScrollPos = window.pageYOffset;
|
||||
|
@ -60,7 +59,6 @@
|
|||
}
|
||||
prevScrollpos = currentScrollPos;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
@ -760,12 +760,10 @@
|
|||
|
||||
{% include "expanded_image_modal.html" %}
|
||||
|
||||
<script src="/assets/js/popover.js?v=9"></script>
|
||||
<script src="/assets/js/comments.js?v=7"></script>
|
||||
<script src="/assets/js/popover.js?v=10"></script>
|
||||
<script src="/assets/js/comments.js?v=8"></script>
|
||||
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
|
||||
{% if p and (not v or v.highlightcomments) %}
|
||||
comments = JSON.parse(localStorage.getItem("comment-counts")) || {}
|
||||
lastCount = comments['{{p.id}}']
|
||||
|
@ -792,7 +790,6 @@
|
|||
{%endif%}
|
||||
{% endfor %}
|
||||
})()
|
||||
});
|
||||
|
||||
{% if not v %}
|
||||
function poll_vote(cid, parentid) {
|
||||
|
|
|
@ -288,7 +288,6 @@
|
|||
|
||||
{% if v and v.agendaposter %}
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
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=
|
||||
|
@ -336,7 +335,6 @@
|
|||
maxBugs: 1,
|
||||
mouseOver: "fly"
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<noscript>
|
||||
<style>
|
||||
|
|
|
@ -2,7 +2,5 @@
|
|||
<script src="/assets/js/twitter.js" charset="utf-8">
|
||||
</script>
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
document.getElementById('twitter-widget-0').setAttribute('sandbox','')
|
||||
};
|
||||
</script>
|
|
@ -2,7 +2,5 @@
|
|||
<script src="https://platform.twitter.com/widgets.js" charset="utf-8">
|
||||
</script>
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
document.getElementById('twitter-widget-0').setAttribute('sandbox','')
|
||||
});
|
||||
</script>
|
|
@ -1,13 +1,11 @@
|
|||
{% extends "default.html" %}
|
||||
{% block content %}
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
function removeFollower(event, username) {
|
||||
post_toast('/remove_follow/' + username);
|
||||
let table = document.getElementById("followers-table");
|
||||
table.removeChild(event.target.parentElement.parentElement);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<pre>
|
||||
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
{% extends "default.html" %}
|
||||
{% block content %}
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
function removeFollower(event, username) {
|
||||
post_toast('/unfollow/' + username);
|
||||
let table = document.getElementById("followers-table");
|
||||
table.removeChild(event.target.parentElement.parentElement);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<pre>
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
|
||||
{% if not v.fp %}
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
function fp(fp) {
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open("POST", '{{request.host_url}}fp/'+fp, true);
|
||||
|
@ -32,7 +31,6 @@
|
|||
fpPromise
|
||||
.then(fp => fp.get())
|
||||
.then(result => {if (result.visitorId != '{{v.fp}}') fp(result.visitorId);})
|
||||
});
|
||||
</script>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
@ -173,7 +171,6 @@
|
|||
</div>
|
||||
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
if (!("standalone" in window.navigator) && window.navigator.standalone) {
|
||||
if (window.innerWidth <= 737) {
|
||||
document.getElementById('mobile-prompt').show()
|
||||
|
@ -186,14 +183,12 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
{% if v %}
|
||||
<script src="https://js.pusher.com/beams/1.0/push-notifications-cdn.js"></script>
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
const beamsClient = new PusherPushNotifications.Client({
|
||||
instanceId: '02ddcc80-b8db-42be-9022-44c546b4dce6',
|
||||
});
|
||||
|
@ -202,7 +197,6 @@
|
|||
.then(() => beamsClient.addDeviceInterest('{{v.strid}}'))
|
||||
.then(() => beamsClient.getDeviceInterests())
|
||||
.catch(console.error);
|
||||
});
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
|
|
|
@ -125,13 +125,11 @@
|
|||
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
|
||||
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
var clipboard = new ClipboardJS('.copy-link');
|
||||
clipboard.on('success', function(e) {
|
||||
var myToast = new bootstrap.Toast(document.getElementById('toast-success'));
|
||||
myToast.show();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
{% endblock %}
|
|
@ -68,7 +68,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/assets/js/mobile_navigation_bar.js?v=54"></script>
|
||||
<script src="/assets/js/mobile_navigation_bar.js?v=55"></script>
|
||||
|
||||
<style>
|
||||
.btn-dead:hover, .active.btn-dead:hover, .active.btn-dead {
|
||||
|
|
|
@ -243,13 +243,11 @@
|
|||
<script>
|
||||
function formkey() {return '{{v.formkey}}';}
|
||||
|
||||
window.addEventListener("load",function(event) {
|
||||
var clipboard = new ClipboardJS('.copy-link');
|
||||
clipboard.on('success', function(e) {
|
||||
var myToast = new bootstrap.Toast(document.getElementById('toast-success'));
|
||||
myToast.show();
|
||||
});
|
||||
});
|
||||
|
||||
function emailVerifyText() {
|
||||
document.getElementById("email-verify-text").innerHTML = "Verification email sent! Please check your inbox.";
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
block_user=function() {
|
||||
|
||||
var exileForm = document.getElementById("exile-form");
|
||||
|
@ -40,7 +39,6 @@
|
|||
xhr.send(f)
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="row">
|
||||
|
|
|
@ -38,15 +38,12 @@
|
|||
</div>
|
||||
{% if v.agendaposter %}
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
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);");
|
||||
};
|
||||
|
||||
document.getElementById("submit-btn").onclick = flip;
|
||||
|
||||
});
|
||||
</script>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
|
@ -685,7 +685,6 @@
|
|||
<script src="/assets/js/settings_profile.js?v=58"></script>
|
||||
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
document.onpaste = function(event) {
|
||||
var focused = document.activeElement;
|
||||
if (focused.id == 'bio-text') {
|
||||
|
@ -699,7 +698,6 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
{% include "emoji_modal.html" %}
|
||||
|
|
|
@ -5,13 +5,11 @@
|
|||
{% block content %}
|
||||
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
document.getElementById('new_email').addEventListener('input', function () {
|
||||
document.getElementById("email-password").classList.remove("d-none");
|
||||
document.getElementById("email-password-label").classList.remove("d-none");
|
||||
document.getElementById("emailpasswordRequired").classList.remove("d-none");
|
||||
});
|
||||
});
|
||||
const twoStepModal = new bootstrap.Modal(document.getElementById('2faModal'))
|
||||
</script>
|
||||
|
||||
|
|
|
@ -58,7 +58,6 @@
|
|||
</div>
|
||||
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
(() => {
|
||||
{% if (not v or v.highlightcomments) %}
|
||||
showNewCommentCounts('{{p.id}}', {{p.comment_count}})
|
||||
|
@ -73,7 +72,6 @@
|
|||
{%endif%}
|
||||
{%endif%}
|
||||
})()
|
||||
});
|
||||
</script>
|
||||
|
||||
{% set ups=p.upvotes %}
|
||||
|
@ -657,5 +655,5 @@
|
|||
|
||||
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
|
||||
|
||||
<script src="/assets/js/popover.js?v=9"></script>
|
||||
<script src="/assets/js/submission_listing.js?v=4"></script>
|
||||
<script src="/assets/js/popover.js?v=10"></script>
|
||||
<script src="/assets/js/submission_listing.js?v=5"></script>
|
|
@ -71,7 +71,6 @@
|
|||
|
||||
{% if u.song %}
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
var audio = new Audio('/songs/{{u.id}}');
|
||||
audio.loop=true;
|
||||
|
||||
|
@ -97,7 +96,6 @@
|
|||
document.getElementById('userpage').addEventListener('click', () => {
|
||||
if (audio.paused) audio.play();
|
||||
}, {once : true});
|
||||
});
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
{% block fixedMobileBarJS %}
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
var prevScrollpos = window.pageYOffset;
|
||||
window.onscroll = function () {
|
||||
var currentScrollPos = window.pageYOffset;
|
||||
|
@ -24,7 +23,6 @@
|
|||
}
|
||||
prevScrollpos = currentScrollPos;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
{% block fixedMobileBarJS %}
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
var prevScrollpos = window.pageYOffset;
|
||||
window.onscroll = function () {
|
||||
var currentScrollPos = window.pageYOffset;
|
||||
|
@ -24,7 +23,6 @@
|
|||
}
|
||||
prevScrollpos = currentScrollPos;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
{% block fixedMobileBarJS %}
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
var prevScrollpos = window.pageYOffset;
|
||||
window.onscroll = function () {
|
||||
var currentScrollPos = window.pageYOffset;
|
||||
|
@ -24,7 +23,6 @@
|
|||
}
|
||||
prevScrollpos = currentScrollPos;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue