Explorar el Código

0107: Running Pi-Hole Ad-Blocker in a VirtualBox VM

i12bretro hace 4 años
padre
commit
8ca5503e26
Se han modificado 1 ficheros con 9 adiciones y 5 borrados
  1. 9 5
      0107.html

+ 9 - 5
0107.html

@@ -33,9 +33,13 @@
             $(document).on('click','input.copy-text',function(){
               theButton = $(this);
 														$('input.copy-text').attr('src','images/clipboard.png');
-							              $('span.copy-animation').removeClass('copy-animation');
+							              $('span.copy-animation,span.copy-animation-ps').removeClass('copy-animation copy-animation-ps');
               try {
-                $('#'+ theButton.attr('rel')).addClass('copy-animation');
+                if($('#'+ theButton.attr('rel')).parent('div').hasClass('PS')){
+                  $('#'+ theButton.attr('rel')).addClass('copy-animation-ps');
+                } else {
+                  $('#'+ theButton.attr('rel')).addClass('copy-animation');
+                }
                 navigator.clipboard.writeText(theButton.data('clipboard-text').replace(/<[^>]*>?/gm, ''));
 																theButton.attr('src','images/clipboard_active.png');
 								              } catch(err) {
@@ -57,8 +61,8 @@
             });
 
             if(window.self !== window.top){
-              window.parent.$('iframe.stepsFrame').height((this['scrollingElement']['scrollHeight']+20) +'px');
-            }
+															window.parent.$('iframe.stepsFrame').height((this['scrollingElement']['scrollHeight']+20) +'px');
+							            }
           });
         </script>
         <link href="css/steps.css" rel="stylesheet" type="text/css" />
@@ -154,7 +158,7 @@
 	</li>
 	<li>Enter and confirm the new password</li>
 	<li>Click the Applications button &gt; Internet &gt; Chromium Web Browser</li>
-	<li>Navigate to http://<vm ip="" name="" or="">localhost/admin</vm></li>
+	<li>Navigate to http://DNSorIP/admin</vm></li>
 	<li>Click Login</li>
 	<li>Authenticate with the admin password</li>
 </ol>