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
+2 -2
View File
File diff suppressed because one or more lines are too long
+4 -4
View File
File diff suppressed because one or more lines are too long
+1 -1
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;
+1 -3
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;
+7 -1
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>
+7 -1
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>