sdsd
This commit is contained in:
parent
571beef7a5
commit
8982714e9b
21 changed files with 31 additions and 31 deletions
|
@ -1,4 +1,4 @@
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
function eventasdf(value){
|
function eventasdf(value){
|
||||||
var content_id = value.getAttributeNode("data-content-id").value;
|
var content_id = value.getAttributeNode("data-content-id").value;
|
||||||
value.addEventListener("click", function(){jhkj(content_id)});
|
value.addEventListener("click", function(){jhkj(content_id)});
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
{% block fixedMobileBarJS %}
|
{% block fixedMobileBarJS %}
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
var prevScrollpos = window.pageYOffset;
|
var prevScrollpos = window.pageYOffset;
|
||||||
window.onscroll = function () {
|
window.onscroll = function () {
|
||||||
var currentScrollPos = window.pageYOffset;
|
var currentScrollPos = window.pageYOffset;
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
{% block fixedMobileBarJS %}
|
{% block fixedMobileBarJS %}
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
var prevScrollpos = window.pageYOffset;
|
var prevScrollpos = window.pageYOffset;
|
||||||
window.onscroll = function () {
|
window.onscroll = function () {
|
||||||
var currentScrollPos = window.pageYOffset;
|
var currentScrollPos = window.pageYOffset;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
const banModal = function(link, id, name) {
|
const banModal = function(link, id, name) {
|
||||||
document.getElementById("banModalTitle").innerHTML = `Ban @${name}`;
|
document.getElementById("banModalTitle").innerHTML = `Ban @${name}`;
|
||||||
document.getElementById("ban-modal-link").value = link;
|
document.getElementById("ban-modal-link").value = link;
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
{% if p and not (v and v.id==c.author_id) and (not v or v.highlightcomments) %}
|
{% if p and not (v and v.id==c.author_id) and (not v or v.highlightcomments) %}
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
comments = JSON.parse(localStorage.getItem("comment-counts")) || {}
|
comments = JSON.parse(localStorage.getItem("comment-counts")) || {}
|
||||||
lastCount = comments['{{p.id}}']
|
lastCount = comments['{{p.id}}']
|
||||||
if (lastCount && {{c.created_utc*1000}} > lastCount.t) {
|
if (lastCount && {{c.created_utc*1000}} > lastCount.t) {
|
||||||
|
@ -40,7 +40,7 @@ window.addEventListener('DOMContentLoaded', function() {
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
(() => {
|
(() => {
|
||||||
const date = new Date({{c.created_utc*1000}});
|
const date = new Date({{c.created_utc*1000}});
|
||||||
document.getElementById('timestamp-{{c.id}}').title = date.toString();
|
document.getElementById('timestamp-{{c.id}}').title = date.toString();
|
||||||
|
@ -817,7 +817,7 @@ window.addEventListener('DOMContentLoaded', function() {
|
||||||
{% include "expanded_image_modal.html" %}
|
{% include "expanded_image_modal.html" %}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
function poll_vote(cid, parentid) {
|
function poll_vote(cid, parentid) {
|
||||||
{% if v %}
|
{% if v %}
|
||||||
for(let el of document.getElementsByClassName('presult-'+parentid)) {
|
for(let el of document.getElementsByClassName('presult-'+parentid)) {
|
||||||
|
@ -852,6 +852,6 @@ window.addEventListener('DOMContentLoaded', function() {
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script defer src="/assets/js/popover.js?v=6"></script>
|
<script defer src="/assets/js/popover.js?v=7"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
|
@ -292,7 +292,7 @@
|
||||||
|
|
||||||
{% if v and v.agendaposter %}
|
{% if v and v.agendaposter %}
|
||||||
<script>
|
<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);
|
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=
|
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=
|
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=
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<script defer src="/assets/js/twitter.js" charset="utf-8">
|
<script defer src="/assets/js/twitter.js" charset="utf-8">
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
document.getElementById('twitter-widget-0').setAttribute('sandbox','')
|
document.getElementById('twitter-widget-0').setAttribute('sandbox','')
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<script defer src="https://platform.twitter.com/widgets.js" charset="utf-8">
|
<script defer src="https://platform.twitter.com/widgets.js" charset="utf-8">
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
document.getElementById('twitter-widget-0').setAttribute('sandbox','')
|
document.getElementById('twitter-widget-0').setAttribute('sandbox','')
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends "default.html" %}
|
{% extends "default.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
function removeFollower(event, username) {
|
function removeFollower(event, username) {
|
||||||
post_toast('/remove_follow/' + username);
|
post_toast('/remove_follow/' + username);
|
||||||
let table = document.getElementById("followers-table");
|
let table = document.getElementById("followers-table");
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends "default.html" %}
|
{% extends "default.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
function removeFollower(event, username) {
|
function removeFollower(event, username) {
|
||||||
post_toast('/unfollow/' + username);
|
post_toast('/unfollow/' + username);
|
||||||
let table = document.getElementById("followers-table");
|
let table = document.getElementById("followers-table");
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
{% if not v.fp %}
|
{% if not v.fp %}
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
function fp(fp) {
|
function fp(fp) {
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.open("POST", '{{request.host_url}}fp/'+fp, true);
|
xhr.open("POST", '{{request.host_url}}fp/'+fp, true);
|
||||||
|
@ -174,7 +174,7 @@ window.addEventListener('DOMContentLoaded', function() {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
if (!("standalone" in window.navigator) && window.navigator.standalone) {
|
if (!("standalone" in window.navigator) && window.navigator.standalone) {
|
||||||
if (window.innerWidth <= 737) {
|
if (window.innerWidth <= 737) {
|
||||||
document.getElementById('mobile-prompt').show()
|
document.getElementById('mobile-prompt').show()
|
||||||
|
@ -195,7 +195,7 @@ window.addEventListener('DOMContentLoaded', function() {
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<script defer src="https://js.pusher.com/beams/1.0/push-notifications-cdn.js"></script>
|
<script defer src="https://js.pusher.com/beams/1.0/push-notifications-cdn.js"></script>
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
const beamsClient = new PusherPushNotifications.Client({
|
const beamsClient = new PusherPushNotifications.Client({
|
||||||
instanceId: '02ddcc80-b8db-42be-9022-44c546b4dce6',
|
instanceId: '02ddcc80-b8db-42be-9022-44c546b4dce6',
|
||||||
});
|
});
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
block_user=function() {
|
block_user=function() {
|
||||||
|
|
||||||
var exileForm = document.getElementById("exile-form");
|
var exileForm = document.getElementById("exile-form");
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
</div>
|
</div>
|
||||||
{% if v.agendaposter %}
|
{% if v.agendaposter %}
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
const flip = (e) => {
|
const flip = (e) => {
|
||||||
e.preventDefault();
|
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.getElementsByTagName("body")[0].setAttribute("style", "-moz-transform: scale(-1, -1);-o-transform: scale(-1, -1);-webkit-transform: scale(-1, -1);transform: scale(-1, -1);");
|
||||||
|
|
|
@ -685,7 +685,7 @@
|
||||||
<script defer src="/assets/js/settings_profile.js?v=58"></script>
|
<script defer src="/assets/js/settings_profile.js?v=58"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
document.onpaste = function(event) {
|
document.onpaste = function(event) {
|
||||||
var focused = document.activeElement;
|
var focused = document.activeElement;
|
||||||
if (focused.id == 'bio-text') {
|
if (focused.id == 'bio-text') {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
document.getElementById('new_email').addEventListener('input', function () {
|
document.getElementById('new_email').addEventListener('input', function () {
|
||||||
document.getElementById("email-password").classList.remove("d-none");
|
document.getElementById("email-password").classList.remove("d-none");
|
||||||
document.getElementById("email-password-label").classList.remove("d-none");
|
document.getElementById("email-password-label").classList.remove("d-none");
|
||||||
|
|
|
@ -829,7 +829,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
(() => {
|
(() => {
|
||||||
const date = new Date({{p.created_utc*1000}});
|
const date = new Date({{p.created_utc*1000}});
|
||||||
document.getElementById('timestamp').title = date.toString();
|
document.getElementById('timestamp').title = date.toString();
|
||||||
|
@ -876,7 +876,7 @@ window.addEventListener('DOMContentLoaded', function() {
|
||||||
|
|
||||||
{% if not p.comment_count %}
|
{% if not p.comment_count %}
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
function poll_vote(cid) {
|
function poll_vote(cid) {
|
||||||
{% if v %}
|
{% if v %}
|
||||||
for(let el of document.getElementsByClassName('presult')) {
|
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 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 %}
|
{% set maxbugs = 20*p.award_count("shit") if p.award_count("shit") < 3 else 40 %}
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
new BugController({
|
new BugController({
|
||||||
imageSprite: "/assets/images/fly-sprite.webp",
|
imageSprite: "/assets/images/fly-sprite.webp",
|
||||||
canDie: false,
|
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 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 %}
|
{% set maxbugs = 20*p.award_count("fireflies") if p.award_count("fireflies") < 3 else 40 %}
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
new BugController({
|
new BugController({
|
||||||
imageSprite: "/assets/images/fireflies.webp",
|
imageSprite: "/assets/images/fireflies.webp",
|
||||||
canDie: false,
|
canDie: false,
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
(() => {
|
(() => {
|
||||||
const date = new Date({{p.created_utc*1000}});
|
const date = new Date({{p.created_utc*1000}});
|
||||||
document.getElementById('timestamp-{{p.id}}').title = date.toString();
|
document.getElementById('timestamp-{{p.id}}').title = date.toString();
|
||||||
|
@ -688,4 +688,4 @@ window.addEventListener('DOMContentLoaded', function() {
|
||||||
{% include "award_modal.html" %}
|
{% include "award_modal.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<script defer src="/assets/js/popover.js?v=6"></script>
|
<script defer src="/assets/js/popover.js?v=7"></script>
|
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
const TRANSFER_TAX = {% if v.patron or u.patron %}0{% else %}0.03{% endif %};
|
const TRANSFER_TAX = {% if v.patron or u.patron %}0{% else %}0.03{% endif %};
|
||||||
|
|
||||||
function updateTax(mobile=false) {
|
function updateTax(mobile=false) {
|
||||||
|
@ -74,7 +74,7 @@ window.addEventListener('DOMContentLoaded', function() {
|
||||||
|
|
||||||
{% if u.song %}
|
{% if u.song %}
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
var audio = new Audio('/songs/{{u.id}}');
|
var audio = new Audio('/songs/{{u.id}}');
|
||||||
audio.loop=true;
|
audio.loop=true;
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
{% block fixedMobileBarJS %}
|
{% block fixedMobileBarJS %}
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
var prevScrollpos = window.pageYOffset;
|
var prevScrollpos = window.pageYOffset;
|
||||||
window.onscroll = function () {
|
window.onscroll = function () {
|
||||||
var currentScrollPos = window.pageYOffset;
|
var currentScrollPos = window.pageYOffset;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
{% block fixedMobileBarJS %}
|
{% block fixedMobileBarJS %}
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
var prevScrollpos = window.pageYOffset;
|
var prevScrollpos = window.pageYOffset;
|
||||||
window.onscroll = function () {
|
window.onscroll = function () {
|
||||||
var currentScrollPos = window.pageYOffset;
|
var currentScrollPos = window.pageYOffset;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
{% block fixedMobileBarJS %}
|
{% block fixedMobileBarJS %}
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.onload = function() {
|
||||||
var prevScrollpos = window.pageYOffset;
|
var prevScrollpos = window.pageYOffset;
|
||||||
window.onscroll = function () {
|
window.onscroll = function () {
|
||||||
var currentScrollPos = window.pageYOffset;
|
var currentScrollPos = window.pageYOffset;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue