mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Fix formatting
This commit is contained in:
parent
09bbc81470
commit
089b98430f
1 changed files with 23 additions and 23 deletions
|
@ -90,32 +90,32 @@ if($uri == "/")
|
||||||
<script src="http://<?php echo $_SERVER['SERVER_ADDR']; ?>/admin/js/other/jquery.min.js"></script>
|
<script src="http://<?php echo $_SERVER['SERVER_ADDR']; ?>/admin/js/other/jquery.min.js"></script>
|
||||||
<script src="http://<?php echo $_SERVER['SERVER_ADDR']; ?>/admin/js/pihole/queryads.js"></script>
|
<script src="http://<?php echo $_SERVER['SERVER_ADDR']; ?>/admin/js/pihole/queryads.js"></script>
|
||||||
<script>
|
<script>
|
||||||
function inIframe () {
|
function inIframe () {
|
||||||
try {
|
try {
|
||||||
return window.self !== window.top;
|
return window.self !== window.top;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try to detect if page is loaded within iframe
|
// Try to detect if page is loaded within iframe
|
||||||
if(inIframe())
|
if(inIframe())
|
||||||
{
|
{
|
||||||
// Within iframe
|
// Within iframe
|
||||||
// hide content of page
|
// hide content of page
|
||||||
$('#body').hide();
|
$('#body').hide();
|
||||||
// remove background
|
// remove background
|
||||||
document.body.style.backgroundImage = "none";
|
document.body.style.backgroundImage = "none";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Query adlists
|
// Query adlists
|
||||||
$( "#btnSearch" ).click();
|
$( "#btnSearch" ).click();
|
||||||
}
|
}
|
||||||
|
|
||||||
$( "#whitelisting" ).on( "click", function(){ $( "#whitelistingform" ).removeAttr( "hidden" ); });
|
$( "#whitelisting" ).on( "click", function(){ $( "#whitelistingform" ).removeAttr( "hidden" ); });
|
||||||
|
|
||||||
function add() {
|
function add() {
|
||||||
var domain = $("#domain");
|
var domain = $("#domain");
|
||||||
var pw = $("#pw");
|
var pw = $("#pw");
|
||||||
if(domain.val().length === 0){
|
if(domain.val().length === 0){
|
||||||
|
|
Loading…
Reference in a new issue