Trying some changes for fb canvas

This commit is contained in:
Kasper Rynning-Tønnesen
2017-03-01 16:16:46 +01:00
parent 744ca2c219
commit 82d734f96e
6 changed files with 22 additions and 12 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -383,7 +383,7 @@ function initfp(){
channel_list = $("#channel-list-container").html();
share_link_modifier_frontpage();
if(window.location.hostname != "fb.zoff.me") share_link_modifier_frontpage();
if(window.location.hostname == "zoff.me") add = "https://zoff.me";
else add = window.location.hostname;

View File

@@ -58,8 +58,6 @@ if(localStorage.debug === undefined){
localStorage.debug = debug;
}
console.log(window.location);
var image_timeout;
var result_html;
var empty_results_html;
@@ -319,7 +317,7 @@ function init(){
onepage_load();
};
share_link_modifier_channel();
if(window.location.hostname != "fb.zoff.me") share_link_modifier_channel();
if(window.location.hostname == "zoff.me") add = "https://zoff.me";
else add = window.location.hostname;

View File

@@ -280,6 +280,12 @@
</div>
</main>
<?php include("public/php/footer.php"); ?>
<?php
$subdomain = array_shift((explode(".",$_SERVER['HTTP_HOST'])));
if($subdomain == "fb"){}
else {
include("public/php/footer.php");
}
?>
</body>
</html>

View File

@@ -166,6 +166,12 @@ if(isset($_GET['chan'])){
</div>
</main>
<?php include("public/php/footer.php"); ?>
<?php
$subdomain = array_shift((explode(".",$_SERVER['HTTP_HOST'])));
if($subdomain == "fb"){}
else {
include("public/php/footer.php");
}
?>
</body>
</html>