Browse Source

Fix Tab Num variable

Accidently deleted the $ symbol.
causefx 9 years ago
parent
commit
d2d747f65d
2 changed files with 14 additions and 14 deletions
  1. 12 12
      index.php
  2. 2 2
      settings.php

+ 12 - 12
index.php

@@ -226,7 +226,7 @@ endif;
                 
                 }.refresh-preloader {
                     
-                    background: red;
+                    background: <?=$topbartext;?>;
                 
                 }.la-timer {
                     
@@ -294,7 +294,14 @@ endif;
                     
                     background-color: <?=$topbartext;?>;
                     
+                }.iframe {
+                    
+                    -webkit-overflow-scrolling: touch;
+
+                }.iframe iframe{
+
                 }
+                
             </style>
 
             <ul id="gn-menu" class="gn-menu-main">
@@ -412,7 +419,7 @@ endif;
             </ul>
 
             <!--Content-->
-            <div id="content" class="content" style=" overflow:hidden">
+            <div id="content" class="content" style="">
 
                 <!--Load Framed Content-->
                 
@@ -758,7 +765,7 @@ endif;
             
             
             if (defaultTab){
-                $("#content").html('<div class="iframe active" data-content-url="'+defaultTab+'"><iframe frameborder="0" style="width:100%; height:100%;" src="'+defaultTab+'"></iframe></div>');
+                $("#content").html('<div class="iframe active" data-content-url="'+defaultTab+'"><iframe scrolling="auto" sandbox="allow-forms allow-same-origin allow-pointer-lock allow-scripts allow-popups allow-modals" allowfullscreen="true" webkitallowfullscreen="true" frameborder="0" style="width:100%; height:100%;" src="'+defaultTab+'"></iframe></div>');
             }
             
             $('#content').css("height", $(window).height() - 56 + "px" );
@@ -779,7 +786,7 @@ endif;
                 activeFrame.attr('src', activeFrame.attr('src'));
                 
                 var refreshBox = $('#content').find('.active');
-                $("<div class='refresh-preloader'><div class='la-timer la-dark'><div></div></div></div>").appendTo(refreshBox).fadeIn(300);
+                $("<div class='refresh-preloader'><div class='la-timer la-dark'><div></div></div></div>").appendTo(refreshBox).fadeIn(10);
 
                 setTimeout(function(){
                     
@@ -792,8 +799,6 @@ endif;
                     });
                 
                 },1000);
-                
-                
 
             })
             
@@ -820,15 +825,10 @@ endif;
                     $("li[class^='tab-item active']").attr("class", "tab-item");
                     $(this).attr("class", "tab-item active");
 
-                    
-                    
-           
-  
-                    
                 }else {
                     console.log(thisid + " make new div");
                     $("div[class^='iframe active']").attr("class", "iframe hidden");
-                    $( '<div class="iframe active" data-content-url="'+thisid+'"><iframe frameborder="0" style="width:100%; height:100%;" src="'+thisid+'"></iframe></div>' ).appendTo( "#content" );
+                    $( '<div class="iframe active" data-content-url="'+thisid+'"><iframe scrolling="auto" sandbox="allow-forms allow-same-origin allow-pointer-lock allow-scripts allow-popups allow-modals" allowfullscreen="true" webkitallowfullscreen="true" frameborder="0" style="width:100%; height:100%;" src="'+thisid+'"></iframe></div>' ).appendTo( "#content" );
                     $('#content').css("height", $(window).height() - 56 + "px" );
                     $("div").find(".iframe").css("height", $(window).height() - 56 + "px" );
                     $("li[class^='tab-item active']").attr("class", "tab-item");

+ 2 - 2
settings.php

@@ -431,7 +431,7 @@ endif;
                                                     if($row['user'] == "true") : $userz = "checked"; else : $userz = ""; endif;
 
                                                     ?>
-                                                    <li id="item-<?=tabNum;?>" class="list-group-item" style="position: relative; left: 0px; top: 0px;">
+                                                    <li id="item-<?=$tabNum;?>" class="list-group-item" style="position: relative; left: 0px; top: 0px;">
 
                                                         <tab class="content-form form-inline">
 
@@ -890,7 +890,7 @@ endif;
                 dataType: "json",
                 success: function(github) {
                    
-                    var currentVersion = "0.93";
+                    var currentVersion = "0.931";
                     var githubVersion = github.tag_name;
                     var githubDescription = github.body;
                     var githubName = github.name;