Skip to content

Commit

Permalink
footer information
Browse files Browse the repository at this point in the history
  • Loading branch information
avadhesh18 committed Apr 19, 2024
1 parent 31b602c commit dbe618b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion public/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,12 @@ let fakect = ' actv';
vidurl = postjson['secure_media']['reddit_video']['dash_url'];
hlsurl = postjson['secure_media']['reddit_video']['hls_url'];
fallbackurl = postjson['secure_media']['reddit_video']['fallback_url'];
const wiurl = postjson['secure_media']['reddit_video']['width']+"px";
const heurl = postjson['secure_media']['reddit_video']['height']+"px";
if(typeof wiurl != "undefined"){
const wiurl = "100%";
const heurl = "240px";
}
//returnpost +='<video id="v'+postjson['id']+'" src="'+vidurl+'" poster="'+postjson["thumbnail"]+'" width="100%" height="240" preload="metadata" onplay="playaud(\'a'+postjson['id']+'\')" onpause="pauseaud(\'a'+postjson['id']+'\')" onseeking="pauseaud(\'a'+postjson['id']+'\')" onseeked="seeked(\''+postjson['id']+'\')" controls> </video><audio src="'+urli+'/DASH_audio.mp4" id="a'+postjson['id']+'" controls></audio> ';
vidposter = postjson["preview"];
if(typeof vidposter == "undefined"){
Expand All @@ -427,7 +433,7 @@ let fakect = ' actv';

vidposter = postjson["preview"]["images"]["0"]["source"]["url"];
}
returnpost +='<video id="v'+postjson['id']+'" src="'+vidurl+'#t=0.001" data-fallback="'+fallbackurl+'" data-hls="'+hlsurl+'" poster="'+vidposter+'" width="100%" height="240" preload="metadata" class="reddit_hls" controls> </video>';
returnpost +='<video id="v'+postjson['id']+'" src="'+vidurl+'#t=0.001" data-fallback="'+fallbackurl+'" data-hls="'+hlsurl+'" poster="'+vidposter+'" width="100%" height="300" preload="metadata" class="reddit_hls" style="max-width:100%;" controls> </video>';
}
else {returnpost += 'crosspost';}
returnpost += '</div>';
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@

doit();
</script>
<div class="footer"><a rel="nofollow" href="https://www.buymeacoffee.com/overdevsapps" class="bmac"><img src="bmac.png" width="150" alt="donate"></a><br>If you use rdx for Reddit&reg; please provide <a href="contact.html">Feedback</a> and <a href="https://www.buymeacoffee.com/overdevsapps" rel="nofollow">Donate</a>.<br><br><small><a href="new.html">What's new?</a> | <a href="settings.html">Settings</a> | <a href="https://github.com/avadhesh18/rdx/">Star on Github</a></small></div> <div id="popitup" style="display:none;">
<div class="footer"><a rel="nofollow" href="https://www.buymeacoffee.com/overdevsapps" class="bmac"><img src="bmac.png" width="150" alt="donate"></a><br>If you use rdx for Reddit&reg; please provide <a href="contact.html">Feedback</a> and <a href="https://www.buymeacoffee.com/overdevsapps" rel="nofollow">Donate</a>.<br><br><small><a href="new.html">What's new?</a> | <a href="settings.html">Settings</a> | <a href="https://github.com/avadhesh18/rdx/">Github</a> | <a href="https://apps.apple.com/us/app/miai-create-your-ai-friend/id6475200501">Try my AI Chat app</a></small></div> <div id="popitup" style="display:none;">
<span onclick="document.getElementById('popitup').style.display='none'">Cancel</span>
<div id="helptext"></div><textarea class="cmntarea" id="commentText" placeholder="Write a reply!" required></textarea>
<input id="cmtid" value="" type="hidden"/> <input id="actype" value="" type="hidden"/> <button id="cmntbtn" onclick="apiAction();">Submit</button>
Expand Down
2 changes: 1 addition & 1 deletion run.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
$data = str_replace('<!--headhtml-->',$headhtml,$data);


$data = str_replace('</body>','<div class="footer"><a rel="nofollow" href="https://www.buymeacoffee.com/overdevsapps" class="bmac"><img src="bmac.png" width="150" alt="donate"></a><br>If you use rdx for Reddit&reg; please provide <a href="contact.html">Feedback</a> and <a href="https://www.buymeacoffee.com/overdevsapps" rel="nofollow">Donate</a>.<br><br><small><a href="new.html">What\'s new?</a> | <a href="settings.html">Settings</a> | <a href="https://github.com/avadhesh18/rdx/">Star on Github</a></small></div> <div id="popitup" style="display:none;">
$data = str_replace('</body>','<div class="footer"><a rel="nofollow" href="https://www.buymeacoffee.com/overdevsapps" class="bmac"><img src="bmac.png" width="150" alt="donate"></a><br>If you use rdx for Reddit&reg; please provide <a href="contact.html">Feedback</a> and <a href="https://www.buymeacoffee.com/overdevsapps" rel="nofollow">Donate</a>.<br><br><small><a href="new.html">What\'s new?</a> | <a href="settings.html">Settings</a> | <a href="https://github.com/avadhesh18/rdx/">Star on Github</a> | <a href="https://apps.apple.com/us/app/miai-create-your-ai-friend/id6475200501">Try my AI Chat app</a></small></div> <div id="popitup" style="display:none;">
<span onclick="document.getElementById(\'popitup\').style.display=\'none\'">Cancel</span>
<div id="helptext"></div><textarea class="cmntarea" id="commentText" placeholder="Write a reply!" required></textarea>
<input id="cmtid" value="" type="hidden"/> <input id="actype" value="" type="hidden"/> <button id="cmntbtn" onclick="apiAction();">Submit</button>
Expand Down

0 comments on commit dbe618b

Please sign in to comment.