Michelle Bu 11 жил өмнө
parent
commit
01d3772524

+ 1 - 1
docs/index.html

@@ -1,6 +1,6 @@
 <head>
 <head>
   <title>PeerJS Documentation</title>
   <title>PeerJS Documentation</title>
-  <meta name="viewport" content="width=device-width, user-scalable=false;">
+  <meta name="viewport" content="width=device-width, maximum-scale=1">
   <link href='http://fonts.googleapis.com/css?family=Lato:300,400,700,900' rel='stylesheet' type='text/css'>
   <link href='http://fonts.googleapis.com/css?family=Lato:300,400,700,900' rel='stylesheet' type='text/css'>
   <link href="./style.css" rel="stylesheet" type="text/css">
   <link href="./style.css" rel="stylesheet" type="text/css">
   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

+ 2 - 5
docs/index.js

@@ -29,8 +29,8 @@ $(document).ready(function() {
       $show.hide();
       $show.hide();
       $hide.hide();
       $hide.hide();
     } else {
     } else {
-      $api.removeClass('fullscreen');
       $start.removeClass('full');
       $start.removeClass('full');
+      $api.removeClass('fullscreen');
       $show.show();
       $show.show();
       $hide.show();
       $hide.show();
     }
     }
@@ -49,17 +49,15 @@ $(document).ready(function() {
       $hide.hide();
       $hide.hide();
       $show.show();
       $show.show();
     }
     }
-    $start.removeClass('hidden');
   }
   }
 
 
   function showAPI() {
   function showAPI() {
-    $api.removeClass('hidden');
     if (width >= THRESHOLD) {
     if (width >= THRESHOLD) {
       $start.removeClass('full');
       $start.removeClass('full');
       $show.hide();
       $show.hide();
       $hide.show();
       $hide.show();
     }
     }
-    $start.addClass('hidden');
+    $api.removeClass('hidden');
   }
   }
 
 
   $('body').on('click', '.left', function() {
   $('body').on('click', '.left', function() {
@@ -67,7 +65,6 @@ $(document).ready(function() {
       showAPI();
       showAPI();
     } else if ($api.attr('class').indexOf('fullscreen') === -1) {
     } else if ($api.attr('class').indexOf('fullscreen') === -1) {
       // Now the headers are only links.
       // Now the headers are only links.
-      console.log($api.attr('class'));
       hideAPI();
       hideAPI();
     }
     }
   });
   });

+ 2 - 1
docs/style.css

@@ -74,7 +74,7 @@ header.right {
   overflow-x: hidden;
   overflow-x: hidden;
   box-sizing: border-box;
   box-sizing: border-box;
   -moz-box-sizing: border-box;
   -moz-box-sizing: border-box;
-  transition: all 300ms;
+  transition: left 300ms;
 }
 }
 
 
 .api.fullscreen {
 .api.fullscreen {
@@ -147,6 +147,7 @@ h1 .title {
   display: inline-block;
   display: inline-block;
   font-size: 15px;
   font-size: 15px;
   text-transform: uppercase;
   text-transform: uppercase;
+  font-variant: small-caps;
   background-color: #E2A62E;
   background-color: #E2A62E;
   padding: 2px 4px;
   padding: 2px 4px;
   line-height: 15px;
   line-height: 15px;

+ 1 - 1
docs/template.html

@@ -1,6 +1,6 @@
 <head>
 <head>
   <title>PeerJS Documentation</title>
   <title>PeerJS Documentation</title>
-  <meta name="viewport" content="width=device-width, user-scalable=false;">
+  <meta name="viewport" content="width=device-width, maximum-scale=1">
   <link href='http://fonts.googleapis.com/css?family=Lato:300,400,700,900' rel='stylesheet' type='text/css'>
   <link href='http://fonts.googleapis.com/css?family=Lato:300,400,700,900' rel='stylesheet' type='text/css'>
   <link href="./style.css" rel="stylesheet" type="text/css">
   <link href="./style.css" rel="stylesheet" type="text/css">
   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>