Removed tracking/stats, anything non-embed related
This commit is contained in:
@ -1,133 +0,0 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block head %}
|
||||
<title> TwitFix {{ page }}</title>
|
||||
<script>
|
||||
window.onload = () => {
|
||||
document.querySelector("#block>div").addEventListener('click', () => document.getElementById("block").style.display = "none");
|
||||
document.getElementById("another").addEventListener('click', () => window.location.reload());
|
||||
document.getElementById("copy").addEventListener('click', () => navigator.clipboard.writeText('{{ vidlink }}'));
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
@import url('https://fonts.googleapis.com/css2?family=Bowlby+One+SC&family=Paytone+One&display=swap');
|
||||
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@500&display=swap');
|
||||
html,
|
||||
body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
text-align: center;
|
||||
background: #222222;
|
||||
color: #e8e8e8;
|
||||
font-family: 'Paytone One', sans-serif;
|
||||
font-size: 4vmin;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-evenly;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
body div {
|
||||
font-size: 75%;
|
||||
}
|
||||
|
||||
video {
|
||||
box-sizing: border-box;
|
||||
height: auto;
|
||||
width: auto;
|
||||
max-width: 80%;
|
||||
max-height: 80%;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #8ebf42;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #e8e8e8;
|
||||
}
|
||||
|
||||
#block {
|
||||
position: fixed;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 99;
|
||||
background: #222222;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
#block>div {
|
||||
padding: 2vh 2vw;
|
||||
border: solid .5vmin #c5c5c5;
|
||||
border-radius: .5vmin;
|
||||
transition-duration: .15s;
|
||||
transition-timing-function: ease-in-out;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
#block>div:hover {
|
||||
transform: scale(1.02);
|
||||
border: solid .5vmin #8ebf42;
|
||||
}
|
||||
|
||||
#block>div:active {
|
||||
transform: scale(.98);
|
||||
}
|
||||
|
||||
#btns {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
gap: 1vmax;
|
||||
}
|
||||
|
||||
#btns div {
|
||||
cursor: pointer;
|
||||
border: solid .3vmin #c5c5c5;
|
||||
border-radius: .3vmin;
|
||||
padding: .3vmin;
|
||||
}
|
||||
|
||||
#btns div:hover {
|
||||
border: solid .3vmin #8ebf42;
|
||||
}
|
||||
</style>
|
||||
<link rel="alternate" href="{{ url }}/oembed.json?desc={{ urlUser }}&user={{ urlDesc }}&link={{ urlLink }}" type="application/json+oembed" title="{{ user }}">
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
<div id="block">
|
||||
<div>
|
||||
Potentially NSFW Content: Click here if you are over 18
|
||||
</div>
|
||||
</div>
|
||||
<div><a href="{{ repo }}">TwitFix</a> {{ page }} Video</div>
|
||||
<div>WARNING: Video content is not screened so it may contain NSFW Content</div>
|
||||
<video width="720" height="480" controls>
|
||||
<source src="{{ vidlink }}" type="video/mp4">
|
||||
</video>
|
||||
<div id="btns">
|
||||
<div id="another">Another?</div>
|
||||
<div id="copy">Copy Link!</div>
|
||||
</div>
|
||||
<div>
|
||||
<a href="{{ tweet }}">Original Tweet</a>
|
||||
<div>
|
||||
Original Author: {{ user }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
@ -1,76 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Twitfix Latest</title>
|
||||
<link rel="stylesheet" href={{ url_for('static', filename='style.css' ) }}>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Paytone+One&display=swap" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script src={{ url_for('static', filename='main.js' ) }}></script>
|
||||
|
||||
<div class="previmgcont" onclick="document.querySelector('.previmgcont').style.display = 'none'; "
|
||||
style="display: none;">
|
||||
<img loading=lazy class="previmg" alt="Image Preview">
|
||||
</div>
|
||||
|
||||
<div class="base">
|
||||
<div id="block">
|
||||
<p class="warn">Warning!!</p>
|
||||
<p>Twitfix only filters the content specified as NSFW.</p>
|
||||
<p>Following content might be NSFW.</p>
|
||||
<p>Prepare yourself mentally and pick one of the options</p>
|
||||
<p>Do you want to see the latest twitfix requests?</p>
|
||||
<br>
|
||||
<div class="boptions">
|
||||
<div onclick="cookieTime()">Yes, don't ask again!</div>
|
||||
<div onclick="forNow()">Yes, for now.</div>
|
||||
<div onclick="window.location.replace('https://github.com/robinuniverse/TwitFix')">No, please take me
|
||||
out of here</div>
|
||||
</div>
|
||||
</div>
|
||||
<a href="https://github.com/robinuniverse/TwitFix" class="top" rel="noreferrer" target="_blank">TwitFix
|
||||
Latest</a>
|
||||
<div class="bottom">
|
||||
<div class="info side">
|
||||
<div>TwitFix</div>
|
||||
<div class="Iinner">
|
||||
Basic flask server that serves fixed twitter video embeds to desktop discord by using either the
|
||||
Twitter API or Youtube-DL to grab tweet video information. This also automatically embeds the first
|
||||
link in the text of non video tweets (API Only).
|
||||
</div>
|
||||
<br>
|
||||
<div>TwitFix Latest</div>
|
||||
<div class="Iinner">
|
||||
Shows the most recent TwitFix API requests in a list like manner.
|
||||
</div>
|
||||
<br>
|
||||
<div class="Iinner">
|
||||
TwitFix by <a href="https://hirob.in/" target="_blank" rel="noopener noreferrer">Robin
|
||||
✨Universe</a><br><br>
|
||||
Site Design by <a href="https://twitter.com/doruksega" target="_blank"
|
||||
rel="noopener noreferrer">Doruk</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tweetCont">
|
||||
</div>
|
||||
<div class="settings side">
|
||||
<div>Settings</div>
|
||||
<div>
|
||||
<input type="checkbox" id="contwarn" name="contwarn">
|
||||
<label class="opt" for="contwarn">Skip Content Warning</label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="checkbox" id="notsafe" name="notsafe">
|
||||
<label class="opt" for="notsafe">Don't Hide NSFW Tweets</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -1,43 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>TwitFix Stats</title>
|
||||
<style>
|
||||
|
||||
</style>
|
||||
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
|
||||
<script type="text/javascript">
|
||||
google.charts.load('current', {'packages':['bar']});
|
||||
google.charts.setOnLoadCallback(drawStuff);
|
||||
|
||||
function drawStuff() {
|
||||
var data = new google.visualization.arrayToDataTable([
|
||||
['Move', 'requests'],
|
||||
["Cached Links Loaded", {{ embeds }}],
|
||||
["New Unique Links Cached", {{ linksCached }}],
|
||||
["API Calls", {{ api }}],
|
||||
["Direct Videos Downloaded", {{ downloadss }}]
|
||||
]);
|
||||
|
||||
var options = {
|
||||
width: 800,
|
||||
legend: { position: 'none' },
|
||||
axes: {
|
||||
x: {
|
||||
0: { side: 'top', label: 'Data Gathered for {{ date }}'} // Top x-axis.
|
||||
}
|
||||
},
|
||||
bar: { groupWidth: "90%" }
|
||||
};
|
||||
|
||||
var chart = new google.charts.Bar(document.getElementById('top_x_div'));
|
||||
// Convert the Classic options to Material options.
|
||||
chart.draw(data, google.charts.Bar.convertOptions(options));
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="center">
|
||||
<div id="top_x_div" style="width: 800px; height: 600px; display: block; margin: 0 auto;"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user